From d96b750e5662ff4a66f004a5e8916189442816a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Bigio?= Date: Thu, 15 Oct 2015 10:27:40 -0700 Subject: [PATCH] Fix bundle command with --dev Reviewed By: @vjeux Differential Revision: D2538070 fb-gh-sync-id: 3720de8e60d20d6becc60035095e29b3a480a017 --- packager/transformer.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packager/transformer.js b/packager/transformer.js index dc137c620..1dff51b8c 100644 --- a/packager/transformer.js +++ b/packager/transformer.js @@ -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,