Skip to content

Commit

Permalink
Fix breaking changing process/browser
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastienGllmt committed Nov 26, 2021
1 parent 16678e0 commit d443c73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/builder-webpack5/src/preview/iframe-webpack.config.ts
Expand Up @@ -214,7 +214,7 @@ export default async (options: Options & Record<string, any>): Promise<Configura
...stringifyProcessEnvs(envs),
NODE_ENV: JSON.stringify(process.env.NODE_ENV),
}),
new ProvidePlugin({ process: 'process/browser' }),
new ProvidePlugin({ process: 'process/browser.js' }),
isProd ? null : new WatchMissingNodeModulesPlugin(nodeModulesPaths),
isProd ? null : new HotModuleReplacementPlugin(),
new CaseSensitivePathsPlugin(),
Expand Down

0 comments on commit d443c73

Please sign in to comment.