Skip to content

Commit 5f3febe

Browse files
authored
fix: allow requiring in cjs context (#1465)
1 parent 6f0f3ae commit 5f3febe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/router/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
"default": "./index.js"
2222
}
2323
},
24-
"import": "./dist/vue-router.mjs"
24+
"import": "./dist/vue-router.mjs",
25+
"require": "./index.js"
2526
},
2627
"./dist/*": "./dist/*",
2728
"./vetur/*": "./vetur/*",

0 commit comments

Comments
 (0)