Fix bundle command with --dev

Reviewed By: @vjeux

Differential Revision: D2538070

fb-gh-sync-id: 3720de8e60d20d6becc60035095e29b3a480a017
This commit is contained in:
Martín Bigio 2015-10-15 10:27:40 -07:00 committed by facebook-github-bot-7
parent 0a6c851613
commit 034b1851e4
1 changed files with 1 additions and 3 deletions

View File

@ -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,