Skip to content

Commit 040abfb

Browse files
committed
增加原版__install__适配monitor
1 parent c3fcae4 commit 040abfb

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

react/config/webpack.config.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -472,14 +472,14 @@ export default function getWebpackCommonConfig(mode, env, envStr) {
472472
options: babelOptions,
473473

474474
},
475-
// {
476-
// test: /moduleInjects\.(js|jsx|ts|tsx)$/,
477-
// loader: 'string-replace-loader',
478-
// options: {
479-
// search: '__INSTALLS__',
480-
// replace: `${INSTALLS.map((install) => `import "${install}"`).join(';\n')}`,
481-
// },
482-
// },
475+
{
476+
test: /moduleInjects\.(js|jsx|ts|tsx)$/,
477+
loader: 'string-replace-loader',
478+
options: {
479+
search: '__INSTALLS__',
480+
replace: `${INSTALLS.map((install) => `import "${install}"`).join(';\n')}`,
481+
},
482+
},
483483
{
484484
test: /routesCollections\.(js|jsx|ts|tsx)$/,
485485
loader: 'string-replace-loader',

0 commit comments

Comments
 (0)