Skip to content

Commit

Permalink
Fix webpack process.* variable definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
shilman committed Jun 3, 2019
1 parent 640d2ad commit 23ea9ac
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 23ea9ac

Please sign in to comment.