Skip to content

Commit

Permalink
Fix webpack process.* variable definitions (#6946)
Browse files Browse the repository at this point in the history
Fix webpack `process.*` variable definitions
  • Loading branch information
shilman authored Jun 3, 2019
2 parents ca7bfe8 + 23ea9ac commit 0f77ba6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/core/src/server/preview/iframe-webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ export default ({
template: require.resolve(`../templates/index.ejs`),
}),
new DefinePlugin({
'process.env': stringified,
process: JSON.stringify(true),
process: { browser: true, env: stringified },
NODE_ENV: JSON.stringify(process.env.NODE_ENV),
}),
isProd ? null : new WatchMissingNodeModulesPlugin(nodeModulesPaths),
Expand Down

0 comments on commit 0f77ba6

Please sign in to comment.