mirror of https://github.com/status-im/metro.git
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:
parent
4a90d1178f
commit
300fa5b723
|
@ -52,7 +52,7 @@ exports.createBuildSetup = (
|
|||
|
||||
parallel({
|
||||
graph: cb => graphWithOptions(
|
||||
concat(defaults.runBeforeMainModule, entryPoints),
|
||||
entryPoints,
|
||||
cb,
|
||||
),
|
||||
moduleSystem: cb => graphOnlyModules(
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue