mirror of https://github.com/status-im/metro.git
Fix bundle command with --dev
Reviewed By: @vjeux Differential Revision: D2538070 fb-gh-sync-id: 3720de8e60d20d6becc60035095e29b3a480a017
This commit is contained in:
parent
0a6c851613
commit
034b1851e4
|
@ -16,9 +16,7 @@ const inlineRequires = require('fbjs-scripts/babel/inline-requires');
|
|||
function transform(src, filename, options) {
|
||||
const plugins = [];
|
||||
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
plugins.push('node-env-inline', 'dunderscore-dev-inline');
|
||||
} else if (process.env.NODE_ENV === 'test') {
|
||||
if (process.env.NODE_ENV === 'test') {
|
||||
plugins.push({
|
||||
position: 'after',
|
||||
transformer: inlineRequires,
|
||||
|
|
Loading…
Reference in New Issue