diff --git a/lib/core/src/server/preview/iframe-webpack.config.js b/lib/core/src/server/preview/iframe-webpack.config.js index 95b74bf96125..cd801cc4c0ca 100644 --- a/lib/core/src/server/preview/iframe-webpack.config.js +++ b/lib/core/src/server/preview/iframe-webpack.config.js @@ -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),