Cannot import the url
package in browser mode
#4535
Labels
feat: browser
Issues and PRs related to the browser runner
url
package in browser mode
#4535
Describe the bug
When the
url
package is imported, it's not transpiled to ESM, causing the following errors:I noticed #4337, but this is not quite the same because here
url
is installed as a dependency, and is imported as"url"
instead of"node:url"
, I would expect it to just work like a normal package.Reproduction
repo: https://github.com/guansss/repro-vitest-builtin
a.test.js
b.test.js
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: