Skip to content

Conversation

@cwyyue
Copy link
Collaborator

@cwyyue cwyyue commented Dec 8, 2025

pluginutils.createFilter 不支持文件带query匹配,稳定返回false,因此直接去除query

rollupFilter = pluginutils.createFilter(
rawConfig.include || defaultInclude,
rawConfig.exclude || defaultExclude
configOrPath.include || rawConfig.include || defaultInclude,
Copy link
Collaborator

@hiyuki hiyuki Dec 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

为啥需要加这个,我理解如果configOrPath是个config的话loadConfig就会直接作为结果返回了吧

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

loadConfig 里 config 和 path是互斥的,用了 config,就不再读 path了。这里本意是想对齐小程序的实现,先通过scan筛选文件,再走uno默认逻辑(即读取 uno.config 配置处理token)。

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