Skip to content

Commit

Permalink
增加配置:removeModuleScopePlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
luoluoTH committed Jan 5, 2024
1 parent 6d23bae commit a00c0b8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/renderer/src/main/config-overrides.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const {
addWebpackAlias,
addWebpackModuleRule,
overrideDevServer,
removeModuleScopePlugin,
watchAll
} = require('customize-cra')
const path = require('path')
Expand Down Expand Up @@ -45,6 +46,7 @@ module.exports = {
addWebpackExternals(
{ "./cptable": "var cptable" },
),
removeModuleScopePlugin(),
(config) => {
if (config.mode !== 'development') {
config.output.path = OUTPUT_PATH
Expand Down

0 comments on commit a00c0b8

Please sign in to comment.