Skip to content

fix: 修复customSplitting#40

Open
cherish553 wants to merge 1 commit intosanyuan0704:masterfrom
cherish553:master
Open

fix: 修复customSplitting#40
cherish553 wants to merge 1 commit intosanyuan0704:masterfrom
cherish553:master

Conversation

@cherish553
Copy link
Copy Markdown

import-meta-resolve 的 resolve中使用new URL,cwd拿到的地址目录解析,如果不携带 '/',则会解析出错误的地址
例如: new URL('./node_modules/react','file:///xx/project').href === 'file:///xx/node_modules/react'

@minbaby
Copy link
Copy Markdown

minbaby commented Aug 29, 2024

这个好像和 #41 有关系,应该是路径解析的问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants