What's Changed
Highlights
Support SourceMapDevToolPlugin
Support SourceMapDevToolPlugin
. With this enhancement, options such as output.devtoolModuleFilenameTemplate
, output.devtoolFallbackModuleFilenameTemplate
, and output.devtoolNamespace
are now fully supported.
Based on the devtoolModuleFilenameTemplate
option, you can follow this example to debug a webpack project in VS Code.
Performance Improvements ⚡
- perf: use hashset to compare ignore by @bvanjoi in #5366
- perf: reduce alloc by @bvanjoi in #5386
- perf: cleanup
ApiScanner
by @bvanjoi in #5390
Exciting New Features 🎉
- feat(runtime): add rspack version by @LingyuCoder in #5310
- feat(cli): support built-in rspack envs by @xc2 in #5272
- feat(compilation): introduce queue handles representing task_queue by @JSerFeng in #4785
- feat: improve SourceMapDevToolPlugin by @SyMind in #5108
- feat: not printing error code in error by @h-a-n-a in #5363
- feat: export hot entry from
@rspack/core
by @ahabhgk in #5362 - feat: handle webpack internal module source map by @SyMind in #5371
- feat: support compilation.hooks.runtimeModule by @LingyuCoder in #5370
- feat: concatenate plugin part one by @IWANABETHATGUY in #5237
- feat: progress plugin by @faga295 in #5008
- feat(compilation): add ImportModule and executeModule by @JSerFeng in #4718
Bug Fixes 🐞
- fix(parser): reserved binding name in strict mode by @LingyuCoder in #5319
- fix: stable version snapshot by @LingyuCoder in #5346
- fix: tree shaking size differentiation between webpack by @IWANABETHATGUY in #5349
- fix(asset): real content hash changed even if asset has not changed by @LingyuCoder in #5359
- fix: return type of
Compiler.shouldEmit
should be boolean by @Amour1688 in #5378 - fix(mf): different fallback module context by @ahabhgk in #5380
- fix(rspack_core): fix resolver returning broken missing dependencies by @Boshen in #5357
- fix: remove unnecessary return type of runtime module hook by @LingyuCoder in #5389
- fix: url-dependency pos error by @JSerFeng in #5397
- fix: remove unnecessary react-refresh from dev-server's dependencies by @LingyuCoder in #5404
- fix(renovate): fix cargo by @Boshen in #5413
- fix: use correct stats for child compilation by @ahabhgk in #5405
- fix(renovate): improve handling of certain packages by @Boshen in #5414
- fix: use
eval.as_string()
lazily by @bvanjoi in #5427 - fix: cannot block the current thread from within a runtime by @SyMind in #5428
Other Changes
- refactor: traceable magic comments warnings by @LingyuCoder in #5341
- refactor: traceable non supported warnings by @LingyuCoder in #5342
- chore: bump swc by @JSerFeng in #5308
- chore: remove a console.log from rspack tests that fills the screen by @Boshen in #5345
- refactor: cleanup common_js_import_dependency_scanner by @bvanjoi in #5347
- test: enable some diff test case by @bvanjoi in #5348
- refactor: traceable harmony scanner errors by @LingyuCoder in #5344
- refactor: align HarmonyExportHeaderDependency by @LingyuCoder in #5351
- chore: remove sinon from webpack-test by @Boshen in #5350
- refactor: remove load chunk with block runtime by @ahabhgk in #5335
- chore: remove unused puppeteer by @Boshen in #5353
- chore(diff): esm module by @LingyuCoder in #5290
- refactor: cleanup url_scanner by @bvanjoi in #5354
- refactor(compilation): Add callback to factorizeTask and make process dependencies happen after all dependencies get factorized by @JSerFeng in #4835
- refactor: remove async dependencies block identifier by @ahabhgk in #5356
- test: remove outdated tests by @h-a-n-a in #5355
- chore(diff): add esm export case by @LingyuCoder in #5300
- chore(diff): add esm import case by @LingyuCoder in #5302
- chore: remove logs from tests by @h-a-n-a in #5361
- refactor: cleanup ExportsInfoApiScanner by @bvanjoi in #5367
- chore: normalizing jsword by @IWANABETHATGUY in #5369
- chore: remove unused @types/webpack-dev-server from rspack devDependencies by @Boshen in #5333
- chore: remove duplicated test cases (tests/case.test.ts) by @h-a-n-a in #5373
- test(diff): add diff test case for harmony+commonjs mixed modules by @LingyuCoder in #5379
- chore: enable most of the tests from webpack-examples by @Boshen in #5376
- chore: snap.diff changed by @SyMind in #5382
- refactor: cleanup useless ast api by @bvanjoi in #5388
- chore: remove duplicated test cases (tests/configCase.test.ts) by @h-a-n-a in #5374
- chore: diff rspack/webpack test cases by @h-a-n-a in #5391
- chore: triage diff for configcases and cases by @h-a-n-a in #5396
- ci: setup renovatebot by @Boshen in #5406
- ci: only update github-actions and cargo dependencies by @Boshen in #5410
- chore: 🤖 remove redundant config by @IWANABETHATGUY in #5402
- chore(renovate): disable breaking changes upload / download actions by @Boshen in #5421
- chore(deps): update github-actions by @renovate in #5417
- chore(renovate): ignore ustr by @Boshen in #5424
- chore(deps): update github-actions (major) by @renovate in #5423
New Contributors
- @Amour1688 made their first contribution in #5378
- @renovate made their first contribution in #5417
Full Changelog: v0.5.1...v0.5.2