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) {
|
function transform(src, filename, options) {
|
||||||
const plugins = [];
|
const plugins = [];
|
||||||
|
|
||||||
if (process.env.NODE_ENV === 'production') {
|
if (process.env.NODE_ENV === 'test') {
|
||||||
plugins.push('node-env-inline', 'dunderscore-dev-inline');
|
|
||||||
} else if (process.env.NODE_ENV === 'test') {
|
|
||||||
plugins.push({
|
plugins.push({
|
||||||
position: 'after',
|
position: 'after',
|
||||||
transformer: inlineRequires,
|
transformer: inlineRequires,
|
||||||
|
|
Loading…
Reference in New Issue