Update worker to match command line args passed by Buck

Reviewed By: cpojer

Differential Revision: D4673955

fbshipit-source-id: 1886cef97a96efbe0e90b02b98f03544d5f3f155
This commit is contained in:
David Aurelio 2017-03-14 14:53:37 -07:00 committed by Facebook Github Bot
parent 4a90d1178f
commit 300fa5b723
2 changed files with 1 additions and 20 deletions

View File

@ -52,7 +52,7 @@ exports.createBuildSetup = (
parallel({
graph: cb => graphWithOptions(
concat(defaults.runBeforeMainModule, entryPoints),
entryPoints,
cb,
),
moduleSystem: cb => graphOnlyModules(

View File

@ -70,16 +70,6 @@ describe('build setup', () => {
});
});
it('places all modules from `defaults.runBeforeMainModule` after the polyfills', done => {
buildSetup(noEntryPoints, noOptions, (error, result) => {
const additionalModules =
Array.from(result.modules).slice(-defaults.runBeforeMainModule.length);
expect(additionalModules)
.toEqual(defaults.runBeforeMainModule.map(moduleFromPath));
done();
});
});
it('places all entry points at the end', done => {
const entryPoints = ['a', 'b', 'c'];
buildSetup(entryPoints, noOptions, (error, result) => {
@ -88,15 +78,6 @@ describe('build setup', () => {
done();
});
});
it('concatenates `runBeforeMainModule` and entry points as `entryModules`', done => {
const entryPoints = ['a', 'b', 'c'];
buildSetup(entryPoints, noOptions, (error, result) => {
expect(Array.from(result.entryModules)).toEqual(
defaults.runBeforeMainModule.concat(entryPoints).map(moduleFromPath));
done();
});
});
});
function moduleFromPath(path) {