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') {