From e658201a51963179ab86d2da38eb0a3fbad9e0b1 Mon Sep 17 00:00:00 2001 From: Zephraph Date: Mon, 19 Jun 2017 21:32:53 -0400 Subject: [PATCH] Fix issue with process object being clobbered (#193) * Fix issue with NODE_ENV not being output correctly in certain contexts * Publish - poi@9.0.4 * Fix an error causing double quotes * Publish - poi@9.0.5 * Only overwrite env * tweaks --- packages/poi/lib/create-config.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/poi/lib/create-config.js b/packages/poi/lib/create-config.js index 0668509d..2e71b185 100644 --- a/packages/poi/lib/create-config.js +++ b/packages/poi/lib/create-config.js @@ -214,9 +214,7 @@ module.exports = function ({ config.plugin('constants') .use(webpack.DefinePlugin, [merge({ - process: { - env - } + 'process.env': env }, define && stringifyObject(define))]) if (format === 'cjs') {