fix: 内置 webpack-virtual-modules 并修复 .mjs ESM 解析 (2.4.15) - #137
Merged
Merged
Conversation
避免 readme 插件在 watcher 未就绪时触发 fileWatchers 空指针;同时优先 import/module 条件解析 dual package,修复 motion-utils 等 .mjs 导出报错。 Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
webpack-virtual-modules@0.6.2内置到lib/webpack-virtual-modules/,移除外部依赖,修复 dev 编译时fileWatchers空指针craco-fix-plugin优先import/module条件解析,并为node_modules的.mjs增加fullySpecified: false规则,修复 dual package(如 motion-utils)导出报错2.4.14→2.4.15Test plan
npm test(21 passing)react-modalexample 本地npm start验证 readme 虚拟模块编译Made with Cursor