Skip to content

Commit

Permalink
Revert "fix(bundler-webpack): support node: prefix import (umijs#7994)…
Browse files Browse the repository at this point in the history
…" (umijs#8022)

This reverts commit 64d106f.
  • Loading branch information
sorrycc committed Apr 15, 2022
1 parent 6ebfaf4 commit 1aa26ba
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 18 deletions.
5 changes: 0 additions & 5 deletions packages/bundler-webpack/src/fixtures/node-prefix/expect.ts

This file was deleted.

3 changes: 0 additions & 3 deletions packages/bundler-webpack/src/fixtures/node-prefix/index.ts

This file was deleted.

10 changes: 0 additions & 10 deletions packages/bundler-webpack/src/getConfig/getConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -600,16 +600,6 @@ export default async function getConfig(
});
}

// node: prefix import
webpackConfig
.plugin('node-prefix-plugin')
.use(defaultWebpack.NormalModuleReplacementPlugin, [
/^node:/,
(resource: any) => {
resource.request = resource.request.replace(/^node:/, '');
},
]);

if (opts.chainWebpack) {
webpackConfig = await opts.chainWebpack(webpackConfig, {
type,
Expand Down

0 comments on commit 1aa26ba

Please sign in to comment.