v0.3.10
版本发布时间: 2023-11-02 16:10:16
web-infra-dev/rspack最新发布版本:v0.3.13(2023-11-15 21:30:09)
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 https://github.com/web-infra-dev/rspack/pull/4367
- feat: support passing query to loader by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/4418
- feat: enable deprecation warnings by default by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/4247
- feat: to support the monaco-editor-webpack-plugin by @SyMind in https://github.com/web-infra-dev/rspack/pull/4384
- feat: support weak of
import.meta.wabpackContext
by @bvanjoi in https://github.com/web-infra-dev/rspack/pull/4466 - feat: support
Compiler.compile
by @bvanjoi in https://github.com/web-infra-dev/rspack/pull/4499 - feat: support
module.parser.javascript.dynamicImportMode: "eager"
by @bvanjoi in https://github.com/web-infra-dev/rspack/pull/4510 - feat: replace top-level this in esm by @Austaras in https://github.com/web-infra-dev/rspack/pull/4497
Bug Fixes 🐞
- fix: export default as edge case in
HarmonyExportImportedSpecifierDependency
by @IWANABETHATGUY in https://github.com/web-infra-dev/rspack/pull/4402 - fix: do not stopped when decode base64 failed by @bvanjoi in https://github.com/web-infra-dev/rspack/pull/4403
- fix: cjs bare exports expression detect by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/4375
- fix: 🐛 pure expression dependency apply replace resouce,and get side effects state impl by @IWANABETHATGUY in https://github.com/web-infra-dev/rspack/pull/4407
- fix: use indirect call for TaggedTpl by @bvanjoi in https://github.com/web-infra-dev/rspack/pull/4412
- fix: fake namespace mode should fallthrough by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/4413
- fix: loader definition not being exported by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/4423
- fix: insert the path of html template to fileDependencies by @bvanjoi in https://github.com/web-infra-dev/rspack/pull/4425
- fix: import/export with string literal by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/4430
- fix: 🐛 export multiple export by @IWANABETHATGUY in https://github.com/web-infra-dev/rspack/pull/4444
- fix: use string as key for resolve.by_dependency by @bvanjoi in https://github.com/web-infra-dev/rspack/pull/4436
- fix: empty __resourceQuery replace by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/4451
- fix: nested member chain by @IWANABETHATGUY in https://github.com/web-infra-dev/rspack/pull/4448
- fix: mark regexp as None when it has g or y flag for context module by @bvanjoi in https://github.com/web-infra-dev/rspack/pull/4457
- fix: not replace require when it not resolved by @bvanjoi in https://github.com/web-infra-dev/rspack/pull/4468
- fix: side effects analyze in exported decl or expr by @IWANABETHATGUY in https://github.com/web-infra-dev/rspack/pull/4463
- fix: the scheduled GitHub action should not run on forked repositories by @SyMind in https://github.com/web-infra-dev/rspack/pull/4469
- fix: not print the warning when use child compiler by @bvanjoi in https://github.com/web-infra-dev/rspack/pull/4477
- fix: duplicate entrypoint files by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/4480
- fix: should have null as placeholder in stats chunks before chunkIds by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/4310
- fix: windows stats snapshot by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/4487
- fix: multiStats version by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/4491
- fix: remove unnecessary normalize for
output.chunk_loading_global
by @bvanjoi in https://github.com/web-infra-dev/rspack/pull/4484
Other Changes
- chore: remove useless rustup target install by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/4405
- chore: windows and macos add target before build by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/4417
- chore: component style remains consistent by @btea in https://github.com/web-infra-dev/rspack/pull/4286
- chore: upgrade napi by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/4428
- chore: follow up fix for rust test by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/4435
- chore: enable more webpack-test by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/4447
- chore: add ./x webpack for run tests against webpack-test suites by @hardfist in https://github.com/web-infra-dev/rspack/pull/4460
- chore: optimize CI running speed by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/4452
- chore: update rustc version by @bvanjoi in https://github.com/web-infra-dev/rspack/pull/4475
- chore: Adding the test toolkit which is used to diff the bundle results of rspack and webpack by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/4474
- chore: remove --no-frozen-lockfile when pnpm install by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/4482
- chore(runtime-diff): alignment of auto public path runtime module by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/4488
- chore(runtime diff): cases for runtime modules not need to change by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/4490
- revert: should have null as placeholder in stats chunks before chunkIds by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/4492
- chore: update pnpm lock file by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/4493
- chore: alignment of async runtime module by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/4494
- chore(runtime-diff): alignment of create fake namespace object runtime module by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/4498
- chore(runtime-diff): alignment of get main filename by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/4501
- chore: check pnpm lockfile on ci by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/4495
- chore(runtime-diff): alignment of global runtime module by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/4506
- chore(runtime-diff): alignment of get trusted type policy runtime module by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/4503
- refactor(plugin-react-refresh): using tsc to build by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/4486
- chore: release do not use local cache by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/4516
New Contributors
- @btea made their first contribution in https://github.com/web-infra-dev/rspack/pull/4286
- @SyMind made their first contribution in https://github.com/web-infra-dev/rspack/pull/4384
- @Austaras made their first contribution in https://github.com/web-infra-dev/rspack/pull/4497
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v0.3.8...v0.3.10