mirror of https://github.com/status-im/metro.git
Move preludes and require.js files to lib folder
Reviewed By: jeanlauliac Differential Revision: D6674423 fbshipit-source-id: e459e7e8c58b2282b8d341cf7a2d71429e7b7081
This commit is contained in:
parent
bdaddb2585
commit
2ab9c268b1
|
@ -529,8 +529,8 @@ class DeltaTransformer extends EventEmitter {
|
|||
|
||||
_getModuleSystemDependencies() {
|
||||
const prelude = this._bundleOptions.dev
|
||||
? path.resolve(__dirname, '../Resolver/polyfills/prelude_dev.js')
|
||||
: path.resolve(__dirname, '../Resolver/polyfills/prelude.js');
|
||||
? path.resolve(__dirname, '../lib/polyfills/prelude_dev.js')
|
||||
: path.resolve(__dirname, '../lib/polyfills/prelude.js');
|
||||
|
||||
const moduleSystem = defaults.moduleSystem;
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@ exports.assetExts = [
|
|||
|
||||
exports.sourceExts = ['js', 'json'];
|
||||
|
||||
exports.moduleSystem = require.resolve('./Resolver/polyfills/require.js');
|
||||
exports.moduleSystem = require.resolve('./lib/polyfills/require.js');
|
||||
|
||||
exports.platforms = ['ios', 'android', 'windows', 'web'];
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ const path = require('path');
|
|||
jasmine.DEFAULT_TIMEOUT_INTERVAL = 30 * 1000;
|
||||
|
||||
const INPUT_PATH = path.resolve(__dirname, '../basic_bundle');
|
||||
const POLYFILLS_PATH = path.resolve(__dirname, '../../Resolver/polyfills');
|
||||
const POLYFILLS_PATH = path.resolve(__dirname, '../../lib/polyfills');
|
||||
const ASSET_REGISTRY_PATH = path.resolve(
|
||||
__dirname,
|
||||
'../basic_bundle/AssetRegistry',
|
||||
|
|
Loading…
Reference in New Issue