纯commonjs包引用支持es6的包出现异常 #2596
eightHundreds
started this conversation in
General
Replies: 1 comment
-
我改回webpack了. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
whatwg-url是个纯commonjs的包,punycode 是支持es6的包
在 node_modules/whatwg-url/dist/url-state-machine.js:2。 使用require导入punycode,而实际上vite是读取punycode的es6版本的包。
whatwg-url将es6的包当做commonjs包去使用,导致异常
这行异常
node_modules/whatwg-url/dist/url-state-machine.js:172
Beta Was this translation helpful? Give feedback.
All reactions