Skip to content
This repository has been archived by the owner on Dec 6, 2021. It is now read-only.

Commit

Permalink
Fix issue with process object being clobbered (#193)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
zephraph authored and egoist committed Jun 20, 2017
1 parent be7828c commit e658201
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/poi/lib/create-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit e658201

Please sign in to comment.