Open MarvinXu opened 6 months ago
fixed?
No. I'm just having second thoughts on if it's a bug of this package😂. The output .mjs
can be run correctly with command node index.mjs
, it just can't be resolved in other projects.
it just can't be resolved in other projects.
Okay interesting. It seems esno does not likes import with file://
protocol. /cc @antfu just to be in context.
(opened to investigate if we can do anything to mitigate this)
BTW, vscode doesn't seem to resolve this path either. I'll have to remove file://
Environment
Win 11, WSL2 unbuild@2.0.0
Reproduction
npx unbuild --stub
Describe the bug
Output file
dist/index.mjs
have incorrect filepath ofjiti
(file://
points to Windows file system while the following path is in Linux subsystem)Additional context
No response
Logs
No response