Skip to content

Commit

Permalink
feat(bundler-webpack): requireHook add tapable (#12358)
Browse files Browse the repository at this point in the history
* feat(bundler-webpack): requireHook add tapable

* chore: add require.resolve
  • Loading branch information
xierenyuan committed May 16, 2024
1 parent 11ebbad commit 6b0bef4
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 47 deletions.
1 change: 1 addition & 0 deletions packages/bundler-webpack/src/requireHook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const hookPropertyMap = new Map([
['webpack/package.json', resolve('compiled/webpack/package')],
['webpack/lib/webpack', resolve('compiled/webpack')],
['webpack/lib/webpack.js', resolve('compiled/webpack')],
['tapable', require.resolve('@umijs/bundler-utils/compiled/tapable')],
]);

deepImports.forEach((item: string) => {
Expand Down
1 change: 0 additions & 1 deletion packages/preset-vue/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type { IApi } from 'umi';
import './requireHook';

export default (api: IApi) => {
api.describe({
Expand Down
46 changes: 0 additions & 46 deletions packages/preset-vue/src/requireHook.ts

This file was deleted.

0 comments on commit 6b0bef4

Please sign in to comment.