Fix breaking changing process/browser

This commit is contained in:
Sebastien Guillemot 2021-11-26 17:38:24 +09:00 committed by GitHub
parent 16678e0538
commit d443c73ba3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(),