From 034b1851e4d47210f98bd091f6cb08e98c59bf5d 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 --- transformer.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/transformer.js b/transformer.js index dc137c62..1dff51b8 100644 --- a/transformer.js +++ b/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,