-
Notifications
You must be signed in to change notification settings - Fork 108
feat: support unplugin context #1728
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
概述代码变更解析主要变更概述本次拉取请求引入了对 Mako 构建工具的重大改进,主要集中在插件上下文和钩子函数的增强。核心变更包括:
变更详情代码走查本次拉取请求引入了对 Mako 构建工具插件系统的显著改进。主要变更包括在多个文件中添加 变更
序列图sequenceDiagram
participant Plugin
participant PluginContext
participant BuildSystem
Plugin->>PluginContext: 创建上下文
Plugin->>BuildSystem: 调用钩子函数
BuildSystem->>PluginContext: 传递上下文信息
PluginContext-->>Plugin: 提供上下文方法
可能相关的 PR
建议的审阅者
诗歌庆祝
Tip CodeRabbit's docstrings feature is now available as part of our Early Access Program! Simply use the command Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
WalkthroughThis pull request introduces support for unplugin context by adding a Changes
|
| #[napi] | ||
| impl PluginContext { | ||
| #[napi] | ||
| pub fn warn(&self, msg: String) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ensure that the warn method in PluginContext handles logging in a thread-safe manner if used in concurrent environments.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1728 +/- ##
==========================================
- Coverage 54.92% 54.80% -0.12%
==========================================
Files 180 180
Lines 17931 18045 +114
==========================================
+ Hits 9848 9890 +42
- Misses 8083 8155 +72 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🧹 Nitpick comments (20)
e2e/fixtures/plugins.unplugin/plugins.config.js (1)
4-12: 使用replace.raw替换字符串。
这里将FOOOO替换为"fooooooo",可以直接满足自定义文本替换需求。确认是否需要更多的占位符或更多的替换规则以满足其他场景。crates/binding/src/js_hook.rs (1)
88-98: 为TsFnHooks引入新的ThreadsafeFunction签名这些字段大幅增加了对
PluginContext的支持,使得异步回调可以获得更多上下文信息。有几点需要关注:
- 调用时需确保传入的
PluginContext合理地被共享或克隆,避免竞争条件。- 返回类型中带有
Option<...>时,应在 TypeScript 侧或 Rust 端做空值判定,确保流程安全。此设计整体看来可读性尚可,若后续功能继续扩展,需进一步整理或抽象避免钩子过多变得臃肿。
crates/binding/src/js_plugin.rs (6)
9-9: 多余或缺少注释的确认在第 9 行新引入了
use napi_derive::napi;。请确认是否需要在文件顶部添加相关注释,说明#[napi]宏的使用场景。若已有注释可忽略。
146-155:generate_end与build_end的合并调用此处先后调用了
generate_end和build_end,实现对旧接口与新接口的兼容;建议在日后可考虑统一命名或合并逻辑,减少重复代码和认知成本。
158-160: 同时调用build_end钩子
build_end钩子现在与generate_end写在一起,调用顺序上可能引发混淆。若逻辑需要,保持即可;若可并至同一流程则可避免重复回调。
165-170:watch_changes增加上下文以处理文件变动可进一步考虑对
event值的枚举化处理,以减少字符串硬编码和潜在错误。
189-204:before_write_fs回调处理在写文件前调用
_on_generate_file,可在此处做额外的权限校验或路径规则过滤,防止不安全的文件写入。
234-240:transform中返回结果的容错处理当
hook.call(...)返回None时,目前逻辑会跳过处理;若要收集所有处理结果或错误原因,可在返回None时适当记录日志,便于排查。packages/mako/src/index.ts (3)
138-138: 判断并写入mako.config.json此处基于
process.env.DUMP_MAKO_CONFIG条件触发写入配置文件,可在后续考虑增加更灵活的命令行选项或配置项,避免对环境变量的过度依赖。
189-190: 为插件添加上下文包装在处理插件之前(行 189-190),即将要为插件的各个方法注入上下文。可在此处记录日志,方便调试插件注入。
301-301: 清理无用或重复的空行若无特殊需求,可删除多余的空行保持文件整洁。
e2e/fixtures/plugins.context/plugins.config.js (1)
3-7: 建议避免忽略.endsWith('.hoo')的判断结果
在loadInclude(path)中仅调用path.endsWith('.hoo')却没有使用其返回值。若想根据文件后缀进行过滤、可将逻辑改为return path.endsWith('.hoo')来确保只处理.hoo文件。scripts/mako.js (1)
21-24: 在捕获错误后可考虑输出更多上下文
console.error(e)可帮助定位错误,但若要诊断更复杂问题,考虑输出堆栈e.stack或更多上下文信息,以便快速排查。packages/mako/binding.d.ts (1)
273-277: 确认emitFile的参数是否满足需求
emitFile(originPath, outputPath)参数可用于输出文件,但若需支持多种文件类型或内容自定义,考虑增加相应的入参(如source或fileType)。crates/mako/src/plugins/bundless_compiler.rs (1)
133-133: 【避免直接使用 unwrap】
此处调用before_write_fs后紧跟unwrap()可能在发生错误时直接引发 panic,建议使用更安全的错误处理方式(如?或自定义错误处理),以免意外中断程序流程。- .before_write_fs(&to, content.as_ref(), &self.context) - .unwrap(); + if let Err(e) = self.context + .plugin_driver + .before_write_fs(&to, content.as_ref(), &self.context) + { + // 在此处理错误,避免导致程序崩溃 + eprintln!("before_write_fs 失败: {:?}", e); + }docs/config.zh-CN.md (2)
585-590: 【英文表达与标点改进】
这里的文档列出了钩子里可用的内置方法,整体较清晰,但部分英文描述如 “emit a error” 等细微处可改进为更准确的表达(e.g. “emit an error”)。
591-591: 【用词建议】
“Plugins 兼容 [unplugin]” 一句中,若想表意更自然,可在中文上下文直接沿用 “插件”,如“这些插件可与 [unplugin] 生态兼容”。docs/config.md (3)
585-585: 【用语统一性优化】
“this methods” 建议改为 “these methods”,以保证英文描述的语法一致性。
587-592: 【文档可读性提升】
列举的方法示例内容充足,但英文表述里出现 “emit a error”等小细节,可改为 “emit an error”,更符合常规用法。🧰 Tools
🪛 LanguageTool
[uncategorized] ~587-~587: Loose punctuation mark.
Context: ... string, source: string | Uint8Array }), emit a file -this.warn(message: strin...(UNLIKELY_OPENING_PUNCTUATION)
[misspelling] ~589-~589: Use “an” instead of ‘a’ if the following word starts with a vowel sound, e.g. ‘an article’, ‘an hour’.
Context: ...g -this.error(message: string), emit a error -this.parse(code: string), par...(EN_A_VS_AN)
593-593: 【语法小建议】
“Plugins is compatible with...” 建议改为 “Plugins are compatible with...”,以符合语言习惯。🧰 Tools
🪛 LanguageTool
[grammar] ~593-~593: Did you mean “are” or “were”?
Context: ...file (CURRENTLY NOT SUPPORTED) Plugins is compatible with [unplugin](https://unpl...(SENT_START_NNS_IS)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (2)
e2e/fixtures/plugins/node_modules/plugin/index.jsis excluded by!**/node_modules/**pnpm-lock.yamlis excluded by!**/pnpm-lock.yaml
📒 Files selected for processing (21)
crates/binding/src/js_hook.rs(2 hunks)crates/binding/src/js_plugin.rs(8 hunks)crates/mako/src/plugin.rs(2 hunks)crates/mako/src/plugins/bundless_compiler.rs(1 hunks)docs/config.md(1 hunks)docs/config.zh-CN.md(1 hunks)e2e/fixtures/plugins.context/expect.js(1 hunks)e2e/fixtures/plugins.context/mako.config.json(1 hunks)e2e/fixtures/plugins.context/plugin.js(1 hunks)e2e/fixtures/plugins.context/plugins.config.js(1 hunks)e2e/fixtures/plugins.context/src/foo.hoo(1 hunks)e2e/fixtures/plugins.context/src/index.tsx(1 hunks)e2e/fixtures/plugins.unplugin/expect.js(1 hunks)e2e/fixtures/plugins.unplugin/mako.config.json(1 hunks)e2e/fixtures/plugins.unplugin/plugins.config.js(1 hunks)e2e/fixtures/plugins.unplugin/src/index.tsx(1 hunks)package.json(2 hunks)packages/mako/binding.d.ts(1 hunks)packages/mako/binding.js(1 hunks)packages/mako/src/index.ts(4 hunks)scripts/mako.js(1 hunks)
✅ Files skipped from review due to trivial changes (4)
- e2e/fixtures/plugins.context/src/index.tsx
- e2e/fixtures/plugins.context/src/foo.hoo
- e2e/fixtures/plugins.context/mako.config.json
- e2e/fixtures/plugins.unplugin/mako.config.json
🧰 Additional context used
🪛 LanguageTool
docs/config.md
[uncategorized] ~587-~587: Loose punctuation mark.
Context: ... string, source: string | Uint8Array }), emit a file - this.warn(message: strin...
(UNLIKELY_OPENING_PUNCTUATION)
[misspelling] ~589-~589: Use “an” instead of ‘a’ if the following word starts with a vowel sound, e.g. ‘an article’, ‘an hour’.
Context: ...g - this.error(message: string), emit a error - this.parse(code: string), par...
(EN_A_VS_AN)
[grammar] ~593-~593: Did you mean “are” or “were”?
Context: ...file (CURRENTLY NOT SUPPORTED) Plugins is compatible with [unplugin](https://unpl...
(SENT_START_NNS_IS)
🔇 Additional comments (27)
e2e/fixtures/plugins.unplugin/src/index.tsx (3)
1-2: 在这里导入图标库和 React 看起来没问题。
这些导入语句符合项目需求,但请确保对应的依赖在项目中均已正确安装和配置,避免在构建或运行时出现找不到模块的错误。
4-4: console.log(FOOOO) 中变量未在代码内定义。
此处直接调用 FOOOO 变量会导致运行错误,除非它在编译或替换阶段由其他插件注入并替换为实际字符串值。如果确实依赖插件注入,这样写可以保留;但如果并没有在最终代码里替换,可能会引发报错。
5-5: 默认导出的函数式组件符合 React 习惯用法。
此处直接使用 <IconAccountBox /> 返回一个图标组件,写法简洁易读。可根据实际需要补充更多逻辑或属性。
e2e/fixtures/plugins.unplugin/plugins.config.js (2)
1-3: 导入 unplugin-replace 和 unplugin-icons 依赖正常。
请确保在 package.json 中已正确添加对这些依赖的版本号和说明,以保证安装和运行一致。
13-18: 使用 unplugin-icons 处理图标。
启用了 jsx: 'react' 并关闭自动安装 (autoInstall: false) 合理;如果需要自动增量加载图标,可考虑开启 autoInstall。
e2e/fixtures/plugins.unplugin/expect.js (1)
1-8: 测试脚本对编译结果进行断言。
content.includes('fooooooo'):验证字符串替换是否成功content.includes('fill: "currentColor",'):验证图标生成是否包含正确填充属性
测试内容覆盖较好,但可考虑增加更多断言以验证其他核心用例。
package.json (2)
28-28: 新增 @iconify-json/mdi 依赖。
在开发环境中安装该依赖可使项目支持 MDI 图标集,但请确认是否需要在生产环境中也进行相应配置。
59-60: 添加 unplugin-icons 和 unplugin-replace。
它们与本次提交的插件配置相呼应,依赖声明合理。若项目计划进一步扩展更多 icon 集或字符串替换功能,请同步更新文档。
crates/binding/src/js_hook.rs (2)
6-6: 引入 PluginContext 的用途检查
看起来在这里新引入了 use crate::js_plugin::PluginContext;。建议确认该引入在后续字段或方法中都有良好且一致的使用场景,避免多余依赖或反复修改。
85-86: 新增 ResolveIdFuncParams 类型
此处将 PluginContext 与额外参数组合成新的参数类型 ResolveIdFuncParams。在调用时,请确保对元组解构或使用方式一致,避免解构顺序混淆。
crates/binding/src/js_plugin.rs (6)
31-52: PluginContext 结构体与实现:线程安全与整合建议
已定义了 PluginContext 并实现了 warn、error、emit_file 等方法,方便在钩子回调中使用。以下建议可考虑:
- 为
warn、error添加更灵活的日志等级或允许自定义日志输出,避免后期统一日志系统时出现割裂。 - 如果多线程环境下可能同时调用
warn等方法,需再三确认println!使用符合并发安全需求(这与之前的评论类似,如需进一步完善可考虑在高并发环境下改用同步锁或日志库)。
69-73: build_start 钩子调用上下文
在 build_start 中将 PluginContext 克隆传递给 hook.call。这通常是正确的方式,但要确保在上下文中存放的资源,如 Arc<Context>,不会产生循环引用或泄漏。
78-95: load 方法中添加了额外 load_include 判断
逻辑上先检查 load_include 再执行 load,若返回 false 则直接跳过后续处理。这样做能减少不必要的加载,但要确保对 Some(false) 的场景在 TypeScript 侧也做好对应的注解与回退机制。
112-118: resolve_id 钩子的上下文传入
在这里通过元组 (PluginContext, String, String, ResolveIdParams) 拆解,建议在调用处明确区分 source、importer 等参数的含义,减少命名出错风险。整体逻辑可行,无明显问题。
180-184: write_bundle 新增上下文
与其他钩子调用逻辑类似,确认 context 内部共享状态不会对输出打包流程产生阻塞或死锁。
213-222: transform_include 的布尔判定
若此处返回 Some(false),则直接跳过后续的 transform 操作。在多插件场景中,要确保各插件对 transform_include 的理解一致,否则可能出现意外跳过。
packages/mako/src/index.ts (2)
2-2: 引入 os 模块
新增 import os from 'os'; 后主要用于生成临时文件等操作,请确保在不需要时不要产生冗余依赖。
321-335: adapterResult 工具函数
在此函数中对字符串或对象进行兼容处理,非常实用。若后续想支持更多类型(如 .css 或 .vue),建议将 type 的处理扩展为枚举或可配置方式,以方便维护。
e2e/fixtures/plugins.context/plugin.js (1)
1-6: 新建插件文件:对后缀名 .hoo 的基本检查
此处只对传入的 path 判定后缀 .hoo,但未返回任何内容或进行错误处理。若预期只做简单过滤,可在注释中说明用途;若后期要做更多处理,比如返回自定义结果,需在逻辑中补充对应实现。
e2e/fixtures/plugins.context/expect.js (1)
1-7: 测试断言逻辑
测试使用了 parseBuildResult 并检查了 files['test.txt'] 是否等于 'test',逻辑相对简单明了。可在后续根据更多测试场景,验证文件内容、插件加载正确性等,确保功能完整。
e2e/fixtures/plugins.context/plugins.config.js (1)
8-25: 注意 this.error() 会终止构建流程
在 load(path) 方法中,如果 path.endsWith('.hoo') 就会调用 this.error(...),这通常会抛出错误并终止构建流程。若预期只是警告或提示,建议改为更合适的日志级别或采用条件判断来避免影响正常打包过程。
scripts/mako.js (2)
10-10: 确认 --watch 选项处理逻辑
这里使用 process.argv.includes('--watch') 检查是否处于 watch 模式十分直观且简洁,适用于 Node.js 12+ 环境。
16-20: 在 watch 模式下保持进程存活
在 .then() 中对 !watch 退出进程的处理逻辑清晰直接;当启用 watch 时进程将不退出,从而持续监听文件变化。实现合理。
packages/mako/binding.js (1)
307-309: 导出 PluginContext 以支持更多上下文能力
将 PluginContext 随同 build 一并导出,有助于插件在外部调用时灵活使用上下文方法,符合插件体系的扩展需求。
crates/mako/src/plugin.rs (2)
187-192: 【新增参数设计合理】
新增的 before_write_fs 方法签名包含了 _context 参数,有助于在文件写入之前利用上下文信息完成更多逻辑。当前实现简单且无明显问题。
430-433: 【确认所有插件实现已同步更新】
在 PluginDriver 中为 before_write_fs 新增了 context 参数。确认所有自定义插件的实现也同步更新,否则可能出现编译或运行时错误。
docs/config.zh-CN.md (1)
583-583: 【文档表述无明显问题】
此处介绍针对 hook 函数可用的方法,内容清晰,无需改动。
| plugins.forEach((plugin: any) => { | ||
| Object.keys(plugin).forEach((key) => { | ||
| const oldValue = plugin[key]; | ||
| if (typeof oldValue === 'function') { | ||
| plugin[key] = (context: any, ...args: any[]) => { | ||
| let result = oldValue.apply( | ||
| { | ||
| // https://rollupjs.org/plugin-development/#this-parse | ||
| parse(_code: string) { | ||
| throw new Error('parse is not supported'); | ||
| }, | ||
| // https://rollupjs.org/plugin-development/#this-addwatchfile | ||
| addWatchFile(_file: string) { | ||
| throw new Error('addWatchFile is not supported'); | ||
| }, | ||
| // https://rollupjs.org/plugin-development/#this-emitfile | ||
| // only support asset type | ||
| emitFile(file: { | ||
| type: 'asset' | 'chunk' | 'prebuilt-chunk'; | ||
| name?: string; | ||
| fileName?: string; | ||
| source?: string | Uint8Array; | ||
| }) { | ||
| if (file.type !== 'asset') { | ||
| throw new Error('emitFile only support asset type'); | ||
| } | ||
| if (file.name && !file.fileName) { | ||
| throw new Error( | ||
| 'name in emitFile is not supported yet, please supply fileName instead', | ||
| ); | ||
| } | ||
| // Since assets_info in mako is a <origin_path, output_path> map, | ||
| // we need to generate a tmp file to store the content, and then emit it | ||
| // TODO: we should use a better way to handle this | ||
| const tmpFile = path.join( | ||
| os.tmpdir(), | ||
| Math.random().toString(36).substring(2, 15), | ||
| ); | ||
| fs.writeFileSync(tmpFile, file.source!); | ||
| context.emitFile(tmpFile, file.fileName!); | ||
| }, | ||
| warn( | ||
| message: | ||
| | string | ||
| | { message: string; pluginCode?: string; meta?: string }, | ||
| ) { | ||
| if (typeof message === 'object') { | ||
| const msg = [ | ||
| message.message, | ||
| message.pluginCode | ||
| ? `pluginCode: ${message.pluginCode}` | ||
| : '', | ||
| message.meta ? `meta: ${message.meta}` : '', | ||
| ] | ||
| .filter(Boolean) | ||
| .join('\n'); | ||
| context.warn(msg); | ||
| } else { | ||
| context.warn(message); | ||
| } | ||
| }, | ||
| error( | ||
| message: | ||
| | string | ||
| | { message: string; pluginCode?: string; meta?: string }, | ||
| ) { | ||
| if (typeof message === 'object') { | ||
| const msg = [ | ||
| message.message, | ||
| message.pluginCode | ||
| ? `pluginCode: ${message.pluginCode}` | ||
| : '', | ||
| message.meta ? `meta: ${message.meta}` : '', | ||
| ] | ||
| .filter(Boolean) | ||
| .join('\n'); | ||
| context.error(msg); | ||
| } else { | ||
| context.error(message); | ||
| } | ||
| }, | ||
| }, | ||
| [...args], | ||
| ); | ||
| // adapter mako hooks for unplugin | ||
| if (key === 'load' || key === 'transform') { | ||
| // if result is null, return the original code | ||
| if (result === null) { | ||
| result = args[0]; | ||
| } | ||
| const isPromise = typeof result === 'object' && result.then; | ||
| if (isPromise) { | ||
| result = result.then((result: any) => adapterResult(result)); | ||
| } else { | ||
| result = adapterResult(result); | ||
| } | ||
| } | ||
| if (key === 'resolveId') { | ||
| if (typeof result === 'string') { | ||
| result = { | ||
| id: result, | ||
| external: false, | ||
| }; | ||
| } | ||
| } | ||
| return result; | ||
| }; | ||
| } | ||
| }); | ||
| }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
插件钩子包装以适配 unplugin 风格
此段代码核心在于给每个插件的函数包装上下文对象并兼容 unplugin 接口风格,主要建议:
- 对
emitFile等方法限制仅支持asset类型的逻辑合理,但应明确告诉用户如何扩展其他类型。 warn和error中对message的结构化处理很好,能附带pluginCode与meta。若后期需要更复杂的报错机制,可做更深入封装。transform等方法若返回Promise,利用adapterResult进一步做结构适配,这种设计有利于保持统一的返回值类型;请注意可能出现的异步错误处理问题,建议捕获并记录。
* fix: env_replacer should not replace user defined variable in scope (#1577) * fix: env_replacer should not replace user defined variable in scope * test: add test cases for env_replacer * chore: code style * release: @umijs/mako@0.8.11 * chore: bundler-mako@0.8.11 * docs: add changelog for v0.8.11 * fix(tree-shaking): detect export var side effects (#1579) * test: ✅ add a failure test * fix: 🐛 add is pure detection in export var decl * fix: bad output when chunk_loading_global containing quotation mark (#1582) * chore: ➕ add a subdot cli tool script (#1585) * fix(win): copy don't work under windows (#1587) * fix(win): module id should be win_pathed (#1588) * feat(tree-shaking): optimize import namespace used all exports to partial used of source modules (#1584) * test: ✅ add failure test case * feat: ✨ add collect prop explicit field * feat: ✨ collect explicit member prop access to optizmize used export in dep module replace USE ALL export to partial used exports * fix: dedestructuring before collect ExplicitProps * test: ✅ add back trace env var * test: ✅ update test case * fix: 🐛 add globals and helpers --------- Co-authored-by: Jinbao1001 <nodewebli@gmail.com> * fix: merge mako config (#1578) * fix: merge mako config * fix: merge mako config * fix:clear deps should not panic when module not found (#1581) * fix:clear deps should not panic when module not found * chore: use tracing warn * fix: delete log * Revert "fix: merge mako config (#1578)" (#1589) This reverts commit c08821d. * fix: watch too many file error (#1550) * fix: watch too many file error * chore: delete print * chore: delete log * release: @umijs/mako@0.8.8-rc.1 * fix: conflict * feat: support numeric module Id (#1561) * feat: moduleIdStrategy support numberous * fix: typos * fix: typos * fix: change name * fix: typos * release: @umijs/mako@0.8.12 * chore: fix typo and doc (#1591) * fix: chunk_loading_global (#1590) * fix: bad entry output when chunk_loading_global containing singe quote * test: add test cases for chunk_loading_global * docs: update * chore: update lock * chore: remove useless dependencies (#1595) * refactor: 🔥 rm ci warn logs (#1596) * fix: devServer put static serve proxy after umi proxy middleware (#1558) * fix: fix umi load html file failed, * test: add umi devServer test case * fix: typo * fix: hmr on hyper-static-file error * fix: import expect.mjs error on github workflow. * fix: import expect.mjs error on github workflow. * fix: 🐛 expect for error case * fix: 🐛 dev.hmr dont stop * fix: 🐛 add OKAM env * fix: 🐛 wait for mako server * fix: 🐛 kill by children process * test: ✅ add umi.css * refactor: 🎨 unify expect file * feat: export killMakoDevServer from test-hmr.mjs, make it public for all test case * test: ✅ unify expect file * chore: ➕ use express-http-proxy for static proxy * feat: ✨ better mako static proxy * test: ✅ support umi dev test with local mako * chore: ⬆️ update pnpm-lock * chore: 🎨 * fix: 🐛 ignore children process killed error --------- Co-authored-by: huanyu.why <huanyu.why@antgroup.com> Co-authored-by: pshu <pishu.spf@antfin.com> * fix(tree-shaking): object spread transform should go before deconstructing (#1598) * fix: 🐛 deconstructing needs object spread transform first * test: ✅ add guardian syntax * release: @umijs/mako@0.8.13-canary.20240918.1 * chore: bundler-mako@0.8.13-canary.20240918.1 * chore: 🎨 thread name after mako (#1601) * refactor: 🎨 rayon is not friendly to js users * chore: ✏️ rename tokio worker with mako * revert: import namespace optimize (#1606) * Revert "fix(tree-shaking): object spread transform should go before deconstructing (#1598)" This reverts commit 9434d99. * Revert "feat(tree-shaking): optimize import namespace used all exports to partial used of source modules (#1584)" This reverts commit 81a52f8. * chore: 🔧 update mako clean script * release: @umijs/mako@0.8.13 * chore: bundler-mako@0.8.13 * docs: change log 0923 (#1607) * docs: 📝 change log * docs: 📝 change log 0923 * chore: ✏️ * fix: 🐛 turn off express-http-proxy's keep alive (#1612) * fix: 🐛 turn off express-http-proxy's keep alive * refactor: 🔥 remove timeout config * release: @umijs/mako@0.8.14 * chore: bundler-mako@0.8.14 * refactor: napi threadsafe function (#1608) * refactor: napi threadsafe function * chore: update binding typings * refactor: code pieces * fix: catch napi tsfn promise rejection * chore: update binding typings * docs: 📝 change log 20240925 (#1613) * feat: disable webp to base64 (#1602) * feat: init * fix: context * fix: no use * fix: typos * fix: typos * fix: typos * fix: typos * fix(bundler-mako): experimental config should be merged deeply (#1617) * refactor: config codes organization (#1618) * refactor: config codes organization * fix: typos * refactor: config parse error * fix: clickToComponent don't work (#1620) * fix: duplicate_package_checker panic when no package.json is supplied (#1621) * fix: file_stem index out of bound (#1623) * feat: add resolve_id plugin hook (#1625) * feat: add resolve_id plugin hook * chore: update docs * feat: add external * release: @umijs/mako@0.8.15 * chore: bundler-mako@0.8.15 * docs: changelog for 0.8.15 * chore: update the release instruction (#1627) * refactor: code-splitting config (#1629) * feat: add loadInclude plugin hook (#1630) * feat: add { isEntry } for resolve_id plugin hook (#1631) * feat/upgrade swc (#1444) * 🚧 * 🚧 a basic working version * chore: 🚨 lint happy * refactor: 🎨 adjust to new swc * refactor: 🎨 remove deprecated methods * chore: 🚨 lint happy * feat: ✨ update swc emotion * chore: 🔧 remove useless profile in sub crate * chore: 🔧 add back emotion plugin * refactor: 🎨 add back merge source map * test: ✅ hot update js file served by hyper static, it use text/javascript * chore: 🔧 lock update * chore: 🔧 clean up swc core feature * refactor: 🎨 fix breaking change of ctxt of span * fix: 🐛 ctxt apply mark * refactor: 🎨 use DUMMY CTXT instead of SyntaxContext::empty() * chore: ⬆️ temperal use mdxjs from kdy branch * feat: ✨ re-enable mdxjs * feat: ✨ swc_core 0.100.1 * chore: 🙈 ignore fmt in fixtures * chore: 🚨 lint happy * chore: ⬆️ swc_common * chore: ✏️ typo * release: @umijs/mako@0.8.1-canary.20240812.1 * chore: bundler-mako@0.8.1-canary.20240812.1 * chore: ⬆️ swc_core 0.100.6 * release: @umijs/mako@0.8.1-canary.20240814.2 * chore: bundler-mako@0.8.1-canary.20240814.2 * chore: 🚨 lint happy * chore: 🔧 CI build bindings * chore: 🔧 fix build docker * refactor: 🔥 remove aarch64-unknown-linux-gnu * chore: 🔧 create tar * chore: 🙈 * release: @umijs/mako@0.8.3-canary.20240820.1 * chore: bundler-mako@0.8.3-canary.20240820.1 * chore: 🔧 wrong donwload param * chore: 🔧 upload download actions should be same version * chore: 🔧 try codecov in ci * refactor: 🔥 remove unnecessary target * refactor: 🎨 use swc comments * fix: 🐛 after upgrade to swc_core it should remove paren before minifiy * refactor: 🎨 move dummy ctxt defintion to ast mod * chore: 🚨 lint happy * release: @umijs/mako@0.8.8-canary.20240902.1 * chore: bundler-mako@0.8.8-canary.20240902.1 * release: @umijs/mako@0.8.8-canary.20240903.3 * chore: bundler-mako@0.8.8-canary.20240903.3 * refactor: 🎨 use VisitMut + Fold code style * chore: ⬆️ update pnpm-lock * chore: 🙈 * revert: ⏪ delete musl bindin * release: @umijs/mako@0.8.9-canary.20240909.1 * chore: bundler-mako@0.8.9-canary.20240909.1 * release: @umijs/mako@0.8.11-canary.20240910.1 * chore: bundler-mako@0.8.11-canary.20240910.1 * fix: 🐛 use chars() instead of bytes() * fix: 🐛 unescape html entity by html escape crate * release: @umijs/mako@0.8.14-canary.20240924.1 * chore: bundler-mako@0.8.14-canary.20240924.1 * release: @umijs/mako@0.8.15-canary.20240927.1 * chore: bundler-mako@0.8.15-canary.20240927.1 * fix: hash not stable (&revert import * as optimize) (#1610) * Revert "revert: import namespace optimize (#1606)" This reverts commit a485358. * fix: hash not stable * fix: deps sort not stable * fix: deps sort not stable * fix: deps sort not stable * fix: delete binding * fix: var name * chore: iter to into * fix: format * release: @umijs/mako@0.9.0 * chore: bundler-mako@0.9.0 * docs: 📝 changelog 0.9.0 * fix: duplicate_package_checker panic when package.json has no version field (#1634) * feat: magic comment chunk name (#1628) * refactor: code-splitting config * feat: support magic comment chunk name basically * fix: magic comment chunk name for webworker * refactor: use ImportOptions to represent option from magic comments * fix: dep replacer when magic comments chunk name existed * test: update test cases for magic comments chunk name * fix: dep replacer when dynamic import depencies is missing * chore: remove useless codes * refactor: code styles * docs: add todo for ChunkId * test: fix visitors::dynamic_import::tests::test_dynamic_import * test: fix test::hmr * fix: dep replacer when dynamic import css modules or moduleIdStrategy is hashed * chore: remove meaning less changes * test: enable magic comment chunk name in fixtures/umi * docs: add docs for magic comment chunk name * feat: support webpackIgnore and makoIgnore magic comment (#1636) * feat: support webpackIgnore and makoIgnore magic comment * chore: fmt * chore: rename magic_comment_chunk_name to magic_comment * chore: fix typo * feat: add transform plugin hook (#1637) * feat: add transform plugin hook * docs: add docs * chore: fmt * chore: perf * feat: add transformInclude plugin hook (#1639) * feat: add transformInclude plugin hook * chore: fmt * Fix: import namespace optimize panic with nested for of stmt (#1640) * test: ✅ add import namespace optimize panic test case * fix: 🐛 fix nested for of stmt panic * release: @umijs/mako@0.9.2-canary.20241016.1 * chore: bundler-mako@0.9.2-canary.20241016.1 * release: @umijs/mako@0.9.2 * chore: bundler-mako@0.9.2 * docs: 📝 changelog 0.9.2 * feat: add buildEnd plugin hook (#1644) * feat: add enforce plugin hook (#1646) * feat: add enforce plugin hook * chore: code style * chore: code style * chore: fix lint * chore: 🎨 add missing binding type * release: @umijs/mako@0.9.3-canary.20241016.1 * chore: bundler-mako@0.9.3-canary.20241016.1 * feat: add writeBundle plugin hook (#1650) * feat: add watch_changes plugin hook (#1651) * feat: add watch_changes plugin hook * chore: fix lint * chore: fix ts define * fix: mako on windows don't work (#1652) * fix: devtool sourcemap explosion in windows (#1653) * chore: remove dead code * fix: should not re-group when span changed (#1654) * fix: umd should be import as cjs (#1642) * fix: umd should be import as cjs * refactor: 🎨 just short circuit typeof define to prevent define takes effect * revert: ⏪ binding.d.ts --------- Co-authored-by: pshu <pishu.spf@antfin.com> * fix: 🐛 add process.env.SOCKET_SERVER define to prevent process polyfilll (#1655) * release: @umijs/mako@0.9.3-canary.20241023.1 * chore: bundler-mako@0.9.3-canary.20241023.1 * release: @umijs/mako@0.9.3 * chore: bundler-mako@0.9.3 * docs: changelog for 0.9.3 * fix: hmr with magic comment chunk name (#1663) * feat: enable magicComment features by default (#1667) * feat(bundler-mako): add moduleIdStrategy to supportMakoConfigKeys (#1664) * fix: async module in circular dependence (#1659) * test: ✅ add test async module in circular dependencies * refactor: 🎨 handle async polution by traversal * refactor: 🎨 use default over expect * feat: compatible codeSplitting config with umi (#1669) * feat: compatible codeSplitting config with umi * test: fix e2e code-splitting.granular * fix: umi codeSplitting: depPerChunk * Feat/benchmark workflows (#1671) * feat: benchmark-workflows * fix: 修改Github Secrets * release: @umijs/mako@0.9.4 * chore: bundler-mako@0.9.4 * docs: 📝 changelog 0.9.4 * chore: Optional parameters (#1679) * chore: Optional parameters * Update index.ts * fix: skip module should skip async module (#1662) * release: @umijs/mako@0.9.5 * chore: bundler-mako@0.9.5 * docs: update changelog * docs: update changelog * feat(ssu): handle dependence changing while watching (#1690) * refactor: 🎨 add after update aspect for rebuild cached modules * refactor: 🎨 add next_build aspect in build_my_modify * feat: ✨ 区分 ssu firstbuild 和 updating 两者状态 * fix: pnpm workspace watch too many files (#1684) * fix: ✅ ts annotated declare variable treat as top level variable (#1682) * test: ✅ add ts declare annotated variable as top level * refactor: 🎨 mv clean syntax context to visitors folder * fix: 🐛 strip ts/tsx first, then do normal transform * feat: move ensure runtime to entry (#1660) * feat: ✨ add ensure2 replace in dynamic replace * feat: ✨ ensure 2 runtime * feat: ✨ add experimental centralEnsure config * refactor: 🎨 add struct ReslvedReplaceInfo * feat: ✨ add central ensure plugin * refactor: 🎨 extract module ensure map * refactor: 🎨 add back chunk id in replace info * refactor: 🎨 fix case one source with different import type * refactor: 🎨 extract hmr runtime update code aspect * release: @umijs/mako@0.9.6-canary.20241107.1 * chore: bundler-mako@0.9.6-canary.20241107.1 * feat: keep unresolved nodejs require (#1689) * fix: regexpr for nodejs intenal modules igonre * feat: not replace unresolved nodejs require to __mako_require__ * fix: define util require should be __mako_require__ * feat: add expreriental.keep_unresolved_node_require * feat: add expreriental.ignore_non_literal_require * chore: 🔥 remove unused fn * release: @umijs/mako@0.9.6 * chore: bundler-mako@0.9.6 * docs: changelog for 0.9.6 * fix(SSU): 🐛 in case external not avaible to all entries (#1698) * fix(SSU): 🐛 in case external not avaible to all entries * refactor: 🎨 explict ignore the error * fix: devserver response header add cacheControl no-cache (#1692) * fix: add no-cache * feat: add cross origin * fix: resonse header add cors and no_cache for all branch (#1699) * fix: judge devServer instead of writeToDisk * fix: add branch header * refactor: 🎨 static file with 0 ages --------- Co-authored-by: pshu <pishu.spf@antfin.com> * release: @umijs/mako@0.9.7 * chore: bundler-mako@0.9.7 * docs: 📝 update changelog for 0.9.7 * chore: ✏️ remove some if (#1706) * fix: optimization.concatenateModules dts lost (#1708) * refactor: 🔥 enter ensure 使用 chunk sync dep 减少首屏 chunk 数量 (#1707) * fix: 🐛 typing of stats (#1712) * fix: 🐛 detect circular deps output file content (#1715) * chore: update @umijs/mako typings * feat: ensure esm imports exists when mode is production (#1709) * feat: ensure esm imports exists when mode is production * release: @umijs/mako@0.9.8 * chore: bundler-mako@0.9.8 * docs: update docs * fix: node ignores (#1716) * feat: supports publicPath: auto (#1717) * feat: auto resolve entry file extension (#1718) * feat: auto resolve entry file extension * fix: remove useless clone * Fix/context module source with first empty quasis (#1719) * test: ✅ add first empty quasis template string module source case * fix: 🐛 first emtpy quasis case * fix: inline css config deserialize (#1720) * fix: node ignore should support node: prefixed only built-in modules (#1721) * release: @umijs/mako@0.9.9 * docs: suggest using volta to manage node and pnpm's version * chore: bundler-mako@0.9.9 * docs: update CHANGELOG.md * feat: supports umd export (#1723) * feat: supports umd export * fix: umd config binding typing * fix: typos * fix: umd export * chore: update typings * fix: replace the "typeof __webpack_require__" content (#1688) * fix: replace the "typeof __webpack_require__" content * fix: add some other webpack string name * fix: 增加对typeof 表达式的处理 * fix: delete log * fix: rename --------- Co-authored-by: shikuan.sk <shikuan.sk@antgroup.com> * fix: umd config deserialization (#1726) * feat: support case sensitive (#1714) * feat: add CaseSensitivePlugin * FIX: update path check * fix: clippy error * fix: 调整判断 * fix: 修复目录读取 * fix: 修改参数名称 * fix: 调整测试方式添加e2e断言,并增加配置项只有mac系统下才需要开启相关配置 * fix: 删除过滤条件 * fix: 删除多余测试文件,增加更新内容 * fix: 删除多余log * fix: 测试执行 * fix: 添加测试系统 * fix: 调整顺序 * fix: 添加测试系统 * fix: 非mac环境断言 * fix: 引用遗漏 * fix: 断言 * fix: 删除默认 * fix: 默认配置 * fix: 测试覆盖 * Revert "fix: 测试覆盖" This reverts commit b0a2e66. --------- Co-authored-by: shikuan.sk <shikuan.sk@antgroup.com> * refactor: 🔥 remove unecessary transform (#1727) * feat: output filename (#1725) * refactor: 🎨 add file name template and chunk name in ChunkFile struct * feat: ✨ add config to output#filename * feat: ✨ render filename when output#filename configed * feat: ✨ calc hash in ast impl for entry * test: ✅ add test case * test: ✅ add ut * chore: 🔧 disable codecov error * refactor: 🎨 remove clone * fix: 🐛 hash when necessary * chore: 🔧 add codecov.yml * release: @umijs/mako@0.9.10-canary.20241218.1 * chore: ⬆️ update pnpm-lock * feat: native plugin init (#1691) * feat: init rust plugin * chore: delete print * Rename cargo.toml to Cargo.toml * chore: update * fix: type * fix: plugin options string * fix: cfg test * release: @umijs/mako@0.10.0 * chore: bundler-mako@0.10.0 * docs: 📝 changelog 2024.12.20 * chore: 🔧 for quick setup dep to debug (#1733) * fix: support optional chaining in environment variable (#1730) * fix: support optional chaining in environment variable * test(): add edge cases for optional chaining in env_replacer * refactor: 🎨 no need to resolve empty url in css (#1732) * refactor: 🎨 no need to resolve empty url in css * refactor: 🎨 add test case * feat: support unplugin context (#1728) * feat: support plugin context * fix: napi context * chore: revert changes * chore: improve * feat: add error * feat: warn and error support object * feat: support emit_file * ci: fix test * chore: improve * chore: update test * chore: format * chore: don't support add watch file * feat: load and transform adapter, and add unplugin-replace example * chore: test unplugin-icons * chore: update pnpm-lock.yaml * docs: improve --------- Co-authored-by: xusd320 <xusd320@gmail.com> * fix: legacy octal escape is not permitted in strict mode (#1736) * fix: legacy octal escape is not permitted in strict mode * fix: e2e inline css * release: @umijs/mako@0.11.0 * chore: bundler-mako@0.11.0 * fix: pnpm lock * docs: 📝 changelog 2024.12.26 * Revert "feat: support unplugin context (#1728)" (#1737) This reverts commit 3dd6d9d. * release: @umijs/mako@0.11.1 * chore: bundler-mako@0.11.1 * feat: support unplugin context (#1741) * feat: support plugin context * fix: napi context * chore: revert changes * chore: improve * feat: add error * feat: warn and error support object * feat: support emit_file * ci: fix test * chore: improve * chore: update test * chore: format * chore: don't support add watch file * feat: load and transform adapter, and add unplugin-replace example * chore: test unplugin-icons * chore: update pnpm-lock.yaml * docs: improve --------- Co-authored-by: xusd320 <xusd320@gmail.com> * fix: #1007 (#1738) support BinaryExpression Co-authored-by: shikuan.sk <shikuan.sk@antgroup.com> * fix: win path problem with context module and require context (#1742) * chore(mako): add debug notice for local builds (#1743) * fix: normalize Windows paths in ModuleId constructors (#1744) * fix: normalize Windows paths in Compiler output path handling (#1745) * fix: typos * release: @umijs/mako@0.11.2 * chore: bundler-mako@0.11.2 * docs: update CHANGELOG.md * feat(create-mako): refactor create-mako (#1751) * chore: add issue and pull request templates for better contribution guidelines (#1753) * fix: ensure parent directories are created when writing to disk in MemoryChunkFileCache (#1755) * chore: release @umijs/tools * release: @umijs/mako@0.11.3 * chore: update the release introduction * ci: fix ci (#1758) * chore: upgrade @umijs/tools and do github release and changelog generate and translation by script * docs: changelog for 0.11.3 * chore: add check-ecosystem-usages script (#1759) * fix: analyze don't work in safari (#1761) * fix(mako): cli delay exit (#1762) * dep: @umijs/tools@0.1.23 * fix: load wasm (#1705) * fix: 修复load .wasm文件对importObject的处理 * fix: 删除没必要的输出 * fix: 修改生成的成员表达式js代码 * fix: 变量重命名 * fix: 修复代码lint报错 * test: 补充wasm_runtime测试用例 * chore: 补充import js方式的示例 * chore: 修改import js示例wasm产物格式 * chore: wasmparser依赖包在配置文件的位置 * chore: 删除多余的.wasm load逻辑 --------- Co-authored-by: xusd320 <xusd320@gmail.com> * fix: chunk groups' order when building mpa (#1763) * feat(copy): support advanced copy configuration with custom target paths (#1711) * feat(copy): support advanced copy configuration with custom target paths - Add CopyConfig enum to support both basic and advanced copy modes - Basic mode: maintains backward compatibility with string[] format - Advanced mode: supports {from: string, to: string} format for custom paths - Update copy plugin to handle both configuration formats - Ensure target directories are created automatically Example config: { 'copy': [ 'public', // basic mode { 'from': 'assets', 'to': 'static' } // advanced mode ] } * fix(copy): prevent path traversal in copy plugin Add path canonicalization and validation to ensure target paths remain within the destination directory * chore: Update `copy` config type in Mako bundler - Updated the type of the `copy` property in the `BuildParams` interface to support both `string` and `{ from: string; to: string }`. - Ensured the `copy` configuration is properly validated to handle both types. * docs: Update `copy` config type in documentation - Updated the `copy` property type in the configuration documentation to reflect the change from `string[]` to `(string | { from: string; to: string })[]`. - Clarified that the `copy` configuration can now accept both strings and objects with `from` and `to` properties. * test(copy): add e2e tests for copy plugin from/to pattern - Update config.copy test fixtures to cover from/to pattern - Add assertions for copied files in new location - Adjust copy plugin path validation * fix(copy): improve path validation and cleanup for copy plugin - Add directory cleanup when path validation fails - Use canonicalized paths for more reliable path validation - Add concatenateModules option type to BuildParams * fix: ci (#1768) * release: @umijs/mako@0.11.4 * chore: bump version * docs: 📝 changelog 2025.02.12 * chore: update changelog 2025.02.12 * fix: plugin context gc (#1769) * fix: mako已经支持了scss 但是没有支持module.scss文件 (#1770) Co-authored-by: shikuan.sk <shikuan.sk@antgroup.com> * feat: add module federation plugin (#1764) * feat: support module federation * feat: mf exposes to remote entries * chore: code styles * feat: mf container entry impl * fix: mf container entry * fix: mf runtime initOptions * feat: add containter references * feat: impl mf remote * feat: improve mf exposes * fix: mf exposes runtime factory * fix: mf plugin execution order * chore: update mf demo * feat: generate mf manifest in rust * fix: remote stats.json * refactor: code styles * chore: add some FIXME * refactor: mf plugin mods files * refactor: mf plugin mods files * chore: remove dead code * --wip-- [skip ci] * fix: remote stats.json * fix: typos * chore: simpify mf runtime codes fmt * refactor: mf containter plugin * feat: mf shared workaround * feat: mf shared workaround * fix: runtime template and remove some useless codes * fix: mf dev server * fix: mf shared config * feat: supports chunk group exclude * feat: mf patch code splitting * feat: mf shared manifest * feat: add config hash for mf shared module * chore: update mako typings * chore: code styles * chore: fix typo * chore: code styles * perf: improve performance * chore: code styles * chore: rename types * feat: add options to disable mf manifest * feat: entry config should be defined as BTreeMap * fix: mf shared consume and supports eager config * fix: mf shared eager * fix: not generate chunk for mf remote module * fix: typos * feat: add entry filename supports * chore: remove meaning less changes * fix: entry filename and mf config * release: @umijs/mako@0.11.4-canary.20250206.0 * fix: ignore shared dep when it is been external * Revert "release: @umijs/mako@0.11.4-canary.20250206.0" This reverts commit d3105d9. * release: @umijs/mako@0.11.4-canary.20250207.0 * fix: skip serialize mf manifest remoteEntry if none * fix: mf manifest remoteEntry address * Revert "release: @umijs/mako@0.11.4-canary.20250207.0" This reverts commit 6179982. * fix: typo * fix: mako mf manifest publicPath * fix: mf manifest panic * fix: mf typings * test: add e2e test for mf * fix: typo * chore: update README * fix: update mf bingding typings * fix: typings * fix: should not generate mf remotes runtime when remotes is empty * chore: remote wrong comment * feat: add chunk matcher for mf * fix: mf binding typings * chore: remove debug print statements * docs: update moduleFederation configuration docs * fix: mf config docs * chore: update CONTRIBUTING.md * release: @umijs/mako@0.11.5 * chore: update CHANGELOG.md and versions * feat: support to disable camel2DashComponentName of transformImport (#1773) * feat: support to disable camel2DashComponentName of transformImport * fix: typings * fix: 修复sass/less-loader的路径解析 (#1771) * fix: 支持webpack中sass-loader的路径解析 * chore: 调整目录 * chore: 移除注释等 * chore: 引入loader-runner * chore: sass-loader * chore: 修改loader返回空值处理 * test: 设置loader resolver的别名 * chore: update lock * fix: loader options * refactor: 提取插件代码 * fix: getResolve * fix: 修复runLoaders中的错误处理逻辑 * release: @umijs/mako@0.11.6 * fix: pnpm-lock * chore: update changelog for v0.11.6 * chore: update changelog for v0.11.6 * chore: update changelog for v0.11.6 * fix: watch less and sass dependencies (#1779) * chore: stash * chore: stash * feat: LessModuleGraph * feat: less-import-plugin * chore: 删除多余代码 * fix: 兼容url() * chore: plugin * feat: add beforeRebuild hook * ci: clippy format * fix: paths去重 * fix: rename _path * chore: rust层增加临时过滤文件方式 * chore: 提取createParallelLoader * refactor: before_rebuild hook (#1785) * refactor: before_rebuild hook -n * fix: typos * feat: postcss-loader (#1787) * feat: 支持postcss-loader * chore: 合并postcss到options传给render * chore: 更新.gitignore以排除less.postcss的node_modules目录 * feat: 添加PostCSS插件支持并更新相关类型定义 * refactor: 简化Less和Sass插件中的选项传递 * docs: 添加postcss支持的配置说明 * feat: 添加对PostCSS的支持,更新相关插件以集成postLoaders * feat: 更新Less和Sass插件以移除postLoaders,增强PostCSS支持 * test: 补充postcss测试用例 * fix: use transpiled hmr runtime (#1813) * fix: use transpiled hmr runtime (#1814) * release: @umijs/mako@0.11.7 * fix: package-lock.json * fix: use transpiled hmr runtime entry (#1815) * fix: disable parallel sassLoader because sassOptions.function cann't be shared cross workers (#1816) * release: @umijs/mako@0.11.8 * fix: package-lock.json * fix: package-lock.json * fix: typos * chore: update changelog for v0.11.8 * fix: less,sass,postcss loader panic (#1818) * release: @umijs/mako@0.11.9 * fix: package-lock.json * chore: update changelog for v0.11.9 * fix: worker threads panic on linux (#1823) * release: @umijs/mako@0.11.10 * fix: package-lock.json * chore: update changelog for v0.11.10 * fix: dev支持inline-source-map (#1859) Co-authored-by: dongqing.mdq <dongqing.mdq@antgroup.com> * release: @umijs/mako@0.11.11 * fix: package-lock.json * chore: update changelog for v0.11.11 * Update PULL_REQUEST_TEMPLATE.md * Update PULL_REQUEST_TEMPLATE.md * fix: less resolve alias (#1906) * docs: update README.md (#1907) * Update README.md * Apply suggestions from code review Co-authored-by: Peach <scdzwyxst@gmail.com> * Update README.md * Update README.md --------- Co-authored-by: Peach <scdzwyxst@gmail.com> * Update README.md * Update README.md * release: @umijs/mako@0.11.12 * feat: update pnpm log * chore: update changelog for v0.11.12 * fix: panic on docker linux (#1909) * doc: add openomy (#1910) * release: @umijs/mako@0.11.13 * chore: update changelog for v0.11.13 * chore: remove codecov * chore: update examples/multiple-entries-heavy * feat: support inline-source-map devtool option (#1965) Co-authored-by: hanzebang.hzb <hanzebang.hzb@antgroup.com> * chore: truncate old codes --------- Co-authored-by: pshu <pishu.spf@antfin.com> Co-authored-by: chencheng (云谦) <sorrycc@gmail.com> Co-authored-by: Jinbao1001 <nodewebli@gmail.com> Co-authored-by: money <hualigushi@163.com> Co-authored-by: eisonhower <why490078184@gmail.com> Co-authored-by: huanyu.why <huanyu.why@antgroup.com> Co-authored-by: PeachScript <scdzwyxst@gmail.com> Co-authored-by: Wu-kung <1434246346@qq.com> Co-authored-by: 聪小陈 <xiaohuoni@users.noreply.github.com> Co-authored-by: akitaSummer <akitasummer@outlook.com> Co-authored-by: Shi Kuan <shikuan1992@gmail.com> Co-authored-by: shikuan.sk <shikuan.sk@antgroup.com> Co-authored-by: yezao <75713784+yezaoshu@users.noreply.github.com> Co-authored-by: 御风 <18012261618@126.com> Co-authored-by: bqxbqx <132878537+BQXBQX@users.noreply.github.com> Co-authored-by: miaodongqing <dongqing_miao@163.com> Co-authored-by: dongqing.mdq <dongqing.mdq@antgroup.com> Co-authored-by: kiner-tang(星河) <1127031143@qq.com> Co-authored-by: hanzebang <46307343+hanzebang@users.noreply.github.com> Co-authored-by: hanzebang.hzb <hanzebang.hzb@antgroup.com>
Close #1238