Skip to content

Commit

Permalink
fix: replace prebundled package (#6800)
Browse files Browse the repository at this point in the history
  • Loading branch information
ClarkXia authored Feb 22, 2024
1 parent 511bfbc commit 0147ade
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/bundles/scripts/tasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,9 @@ const tasks = [
const fileContent = fs.readFileSync(sourcePath, 'utf8');
fs.writeFileSync(targetPath,
replaceDeps(fileContent, webpackDevServerDeps.concat([...commonDeps, '@rspack/core', 'webpack-dev-server']))
.replace(/webpack-dev-server\/client\/clients/g, '@ice/bundles/compiled/webpack-dev-server/client/clients'),
.replace(/webpack-dev-server\/client\/clients/g, '@ice/bundles/compiled/webpack-dev-server/client/clients')
.replace(/@rspack\/core\//g, '@ice/bundles/compiled/@rspack/core/')
.replace(/@rspack\/dev-server\//g, '@ice/bundles/compiled/@rspack/dev-server/'),
);
} else {
fs.copyFileSync(sourcePath, targetPath);
Expand Down

0 comments on commit 0147ade

Please sign in to comment.