Skip to content

Commit

Permalink
Merge pull request #16795 from SebastienGllmt/patch-1
Browse files Browse the repository at this point in the history
Core: Fix breaking change in process/browser
  • Loading branch information
shilman committed Nov 26, 2021
2 parents 16678e0 + d443c73 commit 4f23295
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 4f23295

Please sign in to comment.