Fix bundle command with --dev
Reviewed By: @vjeux Differential Revision: D2538070 fb-gh-sync-id: 3720de8e60d20d6becc60035095e29b3a480a017
This commit is contained in:
parent
36697ae6a1
commit
d96b750e56
|
@ -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