Highlights
monaco-editor-webpack-plugin support
Support monaco-editor-webpack-plugin, you can see example using monaco-editor-webpack-plugin in example-monaco-editor-webpack-plugin
WebWorkerTemplatePlugin and LimitChunkCountPlugin are supported at the same time. Really appreciate for @SyMind 's great work!
Optimized performance for builtin:swc-loader
builtin:swc-loader
can now pass AST back to rspack core. Check out performance between legacy transforming and transforming with builtin:swc-loader
Support Compiler.compile()
We have implemented support for Compiler.compile
to ensure smooth operation of childCompiler
Support dynamicImportMode: "eager"
For runtime that does not support dynamically loading JavaScript chunks, module.parser.javascript.dynamicImportMode: "eager"
is exactly what you're looking for.
What's Changed
Exciting New Features 🎉
- feat: support reuse AST passed from builtin loaders by @h-a-n-a in #4367
- feat: support passing query to loader by @h-a-n-a in #4418
- feat: enable deprecation warnings by default by @h-a-n-a in #4247
- feat: to support the monaco-editor-webpack-plugin by @SyMind in #4384
- feat: support weak of
import.meta.wabpackContext
by @bvanjoi in #4466 - feat: support
Compiler.compile
by @bvanjoi in #4499 - feat: support
module.parser.javascript.dynamicImportMode: "eager"
by @bvanjoi in #4510 - feat: replace top-level this in esm by @Austaras in #4497
Bug Fixes 🐞
- fix: export default as edge case in
HarmonyExportImportedSpecifierDependency
by @IWANABETHATGUY in #4402 - fix: do not stopped when decode base64 failed by @bvanjoi in #4403
- fix: cjs bare exports expression detect by @ahabhgk in #4375
- fix: 🐛 pure expression dependency apply replace resouce,and get side effects state impl by @IWANABETHATGUY in #4407
- fix: use indirect call for TaggedTpl by @bvanjoi in #4412
- fix: fake namespace mode should fallthrough by @ahabhgk in #4413
- fix: loader definition not being exported by @h-a-n-a in #4423
- fix: insert the path of html template to fileDependencies by @bvanjoi in #4425
- fix: import/export with string literal by @ahabhgk in #4430
- fix: 🐛 export multiple export by @IWANABETHATGUY in #4444
- fix: use string as key for resolve.by_dependency by @bvanjoi in #4436
- fix: empty __resourceQuery replace by @ahabhgk in #4451
- fix: nested member chain by @IWANABETHATGUY in #4448
- fix: mark regexp as None when it has g or y flag for context module by @bvanjoi in #4457
- fix: not replace require when it not resolved by @bvanjoi in #4468
- fix: side effects analyze in exported decl or expr by @IWANABETHATGUY in #4463
- fix: the scheduled GitHub action should not run on forked repositories by @SyMind in #4469
- fix: not print the warning when use child compiler by @bvanjoi in #4477
- fix: duplicate entrypoint files by @ahabhgk in #4480
- fix: should have null as placeholder in stats chunks before chunkIds by @JSerFeng in #4310
- fix: windows stats snapshot by @ahabhgk in #4487
- fix: multiStats version by @ahabhgk in #4491
- fix: remove unnecessary normalize for
output.chunk_loading_global
by @bvanjoi in #4484
Other Changes
- chore: remove useless rustup target install by @jerrykingxyz in #4405
- chore: windows and macos add target before build by @jerrykingxyz in #4417
- chore: component style remains consistent by @btea in #4286
- chore: upgrade napi by @h-a-n-a in #4428
- chore: follow up fix for rust test by @ahabhgk in #4435
- chore: enable more webpack-test by @ahabhgk in #4447
- chore: add ./x webpack for run tests against webpack-test suites by @hardfist in #4460
- chore: optimize CI running speed by @jerrykingxyz in #4452
- chore: update rustc version by @bvanjoi in #4475
- chore: Adding the test toolkit which is used to diff the bundle results of rspack and webpack by @LingyuCoder in #4474
- chore: remove --no-frozen-lockfile when pnpm install by @jerrykingxyz in #4482
- chore(runtime-diff): alignment of auto public path runtime module by @LingyuCoder in #4488
- chore(runtime diff): cases for runtime modules not need to change by @LingyuCoder in #4490
- revert: should have null as placeholder in stats chunks before chunkIds by @JSerFeng in #4492
- chore: update pnpm lock file by @jerrykingxyz in #4493
- chore: alignment of async runtime module by @LingyuCoder in #4494
- chore(runtime-diff): alignment of create fake namespace object runtime module by @LingyuCoder in #4498
- chore(runtime-diff): alignment of get main filename by @LingyuCoder in #4501
- chore: check pnpm lockfile on ci by @jerrykingxyz in #4495
- chore(runtime-diff): alignment of global runtime module by @LingyuCoder in #4506
- chore(runtime-diff): alignment of get trusted type policy runtime module by @LingyuCoder in #4503
- refactor(plugin-react-refresh): using tsc to build by @chenjiahan in #4486
- chore: release do not use local cache by @jerrykingxyz in #4516
New Contributors
- @btea made their first contribution in #4286
- @SyMind made their first contribution in #4384
- @Austaras made their first contribution in #4497
Full Changelog: v0.3.8...v0.3.10