Skip to content

Commit 17371ad

Browse files
committed
fix: swap require hook forEach orer
1 parent 09509b9 commit 17371ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/runtime/src/templates/requireHooks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ const resolveRequireHooks = () => {
8484

8585
// resolve require hooks with module paths
8686
requireHooks.forEach((mode) => {
87-
mode.forEach((hook, path) => {
87+
mode.forEach((path, hook) => {
8888
try {
8989
const resolvedPath = require.resolve(path, opts)
9090
mode.set(hook, resolvedPath)

0 commit comments

Comments
 (0)