Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

Commit

Permalink
fix(web): 修复生成环境找不到 React 的问题
Browse files Browse the repository at this point in the history
fix #1383
  • Loading branch information
yesmeck committed Nov 27, 2020
1 parent bb4a0f5 commit da2a136
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions packages/remax-cli/src/build/webpack/webBaseConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,6 @@ export default function webBaseConfig(config: Config, builder: Builder) {
config.plugin('webpack-bundle-analyzer').use(BundleAnalyzerPlugin);
}

if (process.env.NODE_ENV === 'production') {
config.externals({
react: 'React',
'react-dom': 'ReactDOM',
});
}

if (!builder.options.watch) {
config.plugin('mini-css-extract-plugin').use(MiniCssExtractPlugin, [
{
Expand Down

1 comment on commit da2a136

@vercel
Copy link

@vercel vercel bot commented on da2a136 Nov 27, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.