Skip to content

Commit

Permalink
chore: add require.resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
xierenyuan committed May 7, 2024
1 parent 7558ba0 commit 5bd1fc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/bundler-webpack/src/requireHook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +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', '@umijs/bundler-utils/compiled/tapable'],
['tapable', require.resolve('@umijs/bundler-utils/compiled/tapable')],
]);

deepImports.forEach((item: string) => {
Expand Down

0 comments on commit 5bd1fc3

Please sign in to comment.