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 DevTools 引起的运行错误
Browse files Browse the repository at this point in the history
  • Loading branch information
yesmeck committed Jun 17, 2020
1 parent e348d64 commit 15cf022
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/remax-cli/src/build/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export function run(options: Options): webpack.Compiler {
const api = new API();

const plugins = [...options.plugins];
if (process.env.NODE_ENV === 'development') {
if (process.env.NODE_ENV === 'development' && options.target !== Platform.web) {
plugins.push(devtools());
}
api.registerPlugins(plugins);
Expand Down

1 comment on commit 15cf022

@vercel
Copy link

@vercel vercel bot commented on 15cf022 Jun 17, 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.