Releases: web-infra-dev/rspack
v1.0.12
What's Changed
Exciting New Features π
- feat(cli): add exports field by @chenjiahan in #8119
- feat(rspack_core): use simple string parsing instead of regex by @shulaoda in #8113
Bug Fixes π
- fix: side effects optimize for dynamic reexports by @ahabhgk in #8125
- fix(json): only add RuntimeGlobals::MODULE for concatenation by @fi3ework in #8126
- fix: should not panic when passing
test
option to SourceMapDevToolPlugin by @inottn in #8136 - fix(core): should external package.json from bundle by @chenjiahan in #8140
Other Changes
- chore(workflow): merge website folder to the root pnpm workspace by @chenjiahan in #8114
- chore: upgrade rust to 1.81.0 nightly by @jerrykingxyz in #8111
- chore(create-rspack): bump Rslib 0.0.12 and adjust dirname by @chenjiahan in #8124
- test: not to display obsoleted snapshots when test with
-t
by @LingyuCoder in #8122 - chore(deps): update npm dependencies by @renovate in #8133
Full Changelog: v1.0.11...v1.0.12
v1.0.11
Highlights π‘
Faster Startup π
The Node.js code from @rspack/core
is now bundled into a single bundle, making Rspack startup 30ms faster.
Benchmark 1 (Rspack 1.0.10)
Time (mean Β± Ο): 370.5 ms Β± 12.1 ms [User: 412.9 ms, System: 68.1 ms]
Range (min β¦ max): 357.9 ms β¦ 395.1 ms 10 runs
Benchmark 2 (Rspack 1.0.11)
Time (mean Β± Ο): 335.4 ms Β± 2.6 ms [User: 380.3 ms, System: 59.0 ms]
Range (min β¦ max): 331.8 ms β¦ 339.1 ms 10 runs
What's Changed
Performance Improvements β‘
- perf: bundle
@rspack/core
for faster startup by @chenjiahan in #8072 - perf(rspack_core): replace
HASH_PLACEHOLDER_REGEX
with simple string parsing by @shulaoda in #7907 - perf: add cache for getting sideEffectState by @JSerFeng in #8070
Exciting New Features π
- feat(core): bump swc to 1.0.0 by @hardfist in #8104
- feat(rspack_plugin_copy): Set source_filename and copied flag when copying an asset by @ramon-villain in #8077
Bug Fixes π
- fix: avoid renaming the export name when outputting a library by @inottn in #8046
- fix(ci/preview-commit): remove predicate-quantifier by @shulaoda in #8091
- fix: return url in CreateScriptUrlRuntimeModule by @LingyuCoder in #8088
- fix: css module should not calculate id by @JSerFeng in #8084
- fix: avoid extra runtime for get javascript chunk filename by @inottn in #8099
- fix: generate code correctly for dynamically importing the same file by @inottn in #8100
Other Changes
- test: disable unstable test case of rspack-cli by @LingyuCoder in #8086
- chore: polish CSS HMR logs and correct the case by @chenjiahan in #8083
- chore(deps): update npm dependencies by @renovate in #7976
- refactor: remove connection id by @jerrykingxyz in #8089
- test(plugin-test): support for reference Rspack source modules by @chenjiahan in #8105
- refactor: add JSDoc & types to improve Rspack configuration.output types. by @GiveMe-A-Name in #8107
- chore(website/deps): bump Rspress 1.33.1 by @SoonIter in #8112
New Contributors
- @ramon-villain made their first contribution in #8077
Full Changelog: v1.0.10...v1.0.11
v1.0.10
What's Changed
Highlights
The swc_core
crate has been upgraded from version 0.106.1
to 0.109.1
. Fixed the source map error in SWC minifier when used with Sentry.
For a detailed comparison between swc versions, see the https://github.com/swc-project/swc/compare/[email protected][email protected].
Exciting New Features π
- feat: support dependencies in resolve hook callback by @SyMind in #7949
- feat(rspack_plugin_schemas): http import schema plugin by @ScriptedAlchemy in #7008
Bug Fixes π
- fix: the value of this.sourceMap in LoaderContext is incorrect when using SourceMapDevToolPlugin by @inottn in #7968
- fix: source map is not works with Sentry by @SyMind in #8080
- fix: should support
chunk.contentHash
in PathData ofcompilation.getPath
by @LingyuCoder in #8074 - fix: allow file names and directory names to contain brackets by @inottn in #8069
Other Changes
- refactor: add JSDoc to improve Rspack configuration.optimization types. by @GiveMe-A-Name in #8081
- chore(deps): update pnpm to v9.12.1 by @renovate in #8065
Full Changelog: v1.0.9...v1.0.10
v1.0.9
What's Changed
Exciting New Features π
Bug Fixes π
- fix(externals): distinguish "module" and "import" in "module-import" by @fi3ework in #7999
- fix: should set code generation hash to concatenated module by @LingyuCoder in #8062
- fix: should use chunk in path data of
compilation.getPath
by @LingyuCoder in #8032 - fix(type): be compitable to ts5.6 by @SoonIter in #8071
Document Updates π
- docs: upgrade breaking change description by @hardfist in #8012
- docs(progress-plugin): support custom handler by @9aoy in #8014
Other Changes
- chore: drop npm-run-all, make command npm client agnostic by @fi3ework in #8005
- chore: update teams.yml by @chenjiahan in #8020
- chore(ci): support pkg.pr.new by @shulaoda in #7757
- chore(deps): update dependency style-loader to v4 by @renovate in #8025
- chore(ci): skip preview if no relevant code changes by @shulaoda in #8023
- refactor: add JSDoc & types to improve configuration.resolve types. by @GiveMe-A-Name in #8029
- test: try to fix the randomly failed of @rspack/cli test cases by @LingyuCoder in #8030
- refactor: add JSDoc to improve configuration.externals types by @GiveMe-A-Name in #8013
- chore(deps): update crate-ci/typos action to v1.25.0 by @renovate in #8036
- chore(deps): update dependency coffee-loader to v5 by @renovate in #8047
- chore(website): remove unused dependencies by @renovate in #8048
- chore(deps): update cargo-bins/cargo-binstall action to v1.10.7 by @renovate in #8052
- chore(deps): update dependency jsdom to v25 by @renovate in #8053
- chore(deps): update pnpm to v9.12.0 by @renovate in #8054
- refactor: add JSDoc to improve Rspack configuration.entry|context|mode types by @GiveMe-A-Name in #8016
- chore(deps): update playwright to 1.47.0 by @SoonIter in #8063
- chore(deps): update crate-ci/typos action to v1.26.0 by @renovate in #8066
Full Changelog: v1.0.8...v1.0.9
v1.0.8
What's Changed
Highlights
- the Rust crate
swc_core
has been upgraded to 0.106.0 and swc minifier source map error has been fixed by @SyMind in #7991
Performance Improvements β‘
- perf: lazy create hash utils by @chenjiahan in #7961
Exciting New Features π
- feat: support
compilation.builtModules
by @LingyuCoder in #7984
Bug Fixes π
- fix: the progress values for the make and sealing statuses are inaccurate by @inottn in #7990
- fix: correctly display the progress bar when it reaches 100% by @inottn in #7989
- fix: use
HookMap
forruntimeRequirementInTree
by @colinaaa in #7987 - fix: swc minifier source map by @SyMind in #7991
- fix: generate params of runtime module by @LingyuCoder in #8000
- fix(modern-module): use module style export for non entry module by @fi3ework in #7996
- fix: dedup asset_contents to avoid multiple hash changes by @inottn in #8002
- fix(core): allow non-utf8 string in source code by @hardfist in #8009
Document Updates π
- docs: update team members, add @shulaoda by @chenjiahan in #7998
Other Changes
- refactor(core): add task name for tokio-console better display by @hardfist in #7966
- refactor(core): use separate tokio_console layer by @hardfist in #7982
- chore(deps): update dependency @swc/plugin-remove-console to v3 by @renovate in #7978
- chore(deps): update pnpm to v9.11.0 by @renovate in #7977
- chore(deps): update github-actions by @renovate in #7973
- chore: fix proxied typo by @chenjiahan in #7983
- refactor: import module hooks by @JSerFeng in #7967
- revert: refactor(core) add task name for tokio-console better display by @LingyuCoder in #7997
- refactor: add JSDoc to improve BannerPlugin options types by @GiveMe-A-Name in #8003
- refactor: add JSDoc & types to improve HtmlRspackPlugin, IgnorePlugin options types by @GiveMe-A-Name in #8004
Full Changelog: v1.0.7...v1.0.8
v1.0.7
What's Changed
Performance Improvements β‘
- perf: lazy require
browserslist
package by @chenjiahan in #7963
Bug Fixes π
- fix(core): ping @rspack/dev-server to 1.0.5 by @hardfist in #7969
- fix(create-rspack): missing vanilla-ts tsconfig.json by @chenjiahan in #7970
Document Updates π
- docs: addRuntimeModule and runtimeRequirementInTree by @LingyuCoder in #7938
Other Changes
- refactor: phases level switcher for incremental options by @ahabhgk in #7954
- refactor: remove mut options in plugin apply by @ahabhgk in #7958
- chore: migrate @rspack/dev-server to an independent repo by @LingyuCoder in #7959
- chore: not allow run typecheck when run node bin/rspack for other project by @hardfist in #7964
Full Changelog: v1.0.6...v1.0.7
v1.0.6
What's Changed
Caution
This version has a bug which requires install webpack together to work, use v1.0.7 instead
Highlights
Support ContextReplacementPlugin
For more information, please refer to the documentation ContextReplacementPlugin.
Performance Improvements β‘
Exciting New Features π
- feat(rspack_plugin_javascript): improve provide dependency by @shulaoda in #7871
- feat(progress-plugin): support custom handler by @LingyuCoder in #7896
- feat: allow ModuleFactoryCreateData modify dependencies by @jerrykingxyz in #7895
- feat: support
compilation.hooks.runtimeRequirementInTree
by @LingyuCoder in #7917 - feat: support experimental loader
emitDiagnostic
by @h-a-n-a in #7879 - feat: support
compilation.addRuntimeModule
by @LingyuCoder in #7925 - feat: context repl plugin by @SyMind in #7853
- feat(core): integrate rspack_resolver with input_filesystem by @hardfist in #7858
- feat(core): support using tokio-console by @hardfist in #7945
Bug Fixes π
- fix(rspack-test-tools): corret script
testu
by @shulaoda in #7894 - fix: should run watch cases test in build assets by @ahabhgk in #7897
- fix(core): use resource shouldn't contain query by @hardfist in #7911
- fix: preserve variable names declared with
var
by @inottn in #7903 - fix: use SourceMapSource in js side to support map method by @SyMind in #7828
- fix: avoid import external module re-assigin in concatenation by @fi3ework in #7839
- fix: make stage has_module_graph_change calculate incorrectly by @jerrykingxyz in #7920
- fix(core): align assetInfo with webpack by @hardfist in #7924
- fix: should create an empty codegen result for module that has failure in codegen by @JSerFeng in #7777
- fix: eco-ci prebundled enhanced-resolve by @SoonIter in #7933
- fix: attach when add runtime module by @LingyuCoder in #7935
- fix: infer async modules when incremental enabled by @ahabhgk in #7927
- fix: change javascript parser options to properly merge by @inottn in #7946
Document Updates π
- docs(landingpage): update @rstack-dev/doc-ui to 1.5.1 by @SoonIter in #7899
- docs: update node version and webpack-dev-server@5 by @SoonIter in #7900
- docs: update how to use swc plugin in rspack rule by @zhangmingyuan666 in #7904
- docs: add Trellis logo at who is using rspack by @yharaskrik in #7901
- docs(landingpage): update @rstack-dev/doc-ui by @SoonIter in #7909
- docs: update who is using by @chenjiahan in #7948
- docs: fix link is 404 in README by @lzxb in #7947
- docs: add use case for
extensionAlias
by @chenjiahan in #7951 - docs(website): update blog credit by @ScriptedAlchemy in #7931
- docs: webpack-merge also applies to rspack by @wjw99830 in #7953
Other Changes
- refactor(types): remove @ts-expect-error in loaderRunner and StatsFactory by @SoonIter in #7864
- refactor: clean dev server code by @LingyuCoder in #7794
- chore(rspack): remove unnecessary files by @shulaoda in #7910
- chore(deps): bump mio from 0.8.8 to 0.8.11 by @dependabot in #7928
- test: disable dev server e2e test by @LingyuCoder in #7929
- chore(infra/biome): enable no-errors-on-unmatched by @CPunisher in #7932
- refactor: use
realDependencyLocation
instead ofrange
in dependency by @shulaoda in #7892 - chore(workflow): remove rangeStrategy from renovate config by @chenjiahan in #7950
- test: fix css concat stats test by @ahabhgk in #7955
New Contributors
- @zhangmingyuan666 made their first contribution in #7904
- @yharaskrik made their first contribution in #7901
- @lzxb made their first contribution in #7947
- @wjw99830 made their first contribution in #7953
Full Changelog: v1.0.5...v1.0.6
v1.0.5
What's Changed
Bug Fixes π
- fix(external_module): use "const" if supported when concatenation by @fi3ework in #7836
- fix(create-rspack): eslint-plugin-react-hooks version conflict by @chenjiahan in #7854
- fix: remove LightningCssMinimizerRspackPlugin exclude option default value by @noshower in #7811
- fix: trusted type with devtool eval by @LingyuCoder in #7866
- fix: do not use affected for side-effects-flag-plugin by @JSerFeng in #7865
- fix: should forward sourcemaps for refresh loaders by @h-a-n-a in #7872
- fix: should provide full error message with error name when
hideStack
is set totrue
by @h-a-n-a in #7867
Document Updates π
- docs: add NIO logo at built with rspack by @littleVege in #7856
- docs: add clarification to loader
this.callback
usage by @h-a-n-a in #7855 - docs: remove disableTransformByDefault by @9aoy in #7863
- docs: add
sources
JavaScript API by @chenjiahan in #7876 - docs: update slogan for who is using by @chenjiahan in #7881
- docs: add ABB logo at built with rspack by @VugarAhmadov in #7880
- docs: add sequoia logo at who is using by @ibuli in #7882
- docs: add getaround logo at who is using by @CPatchane in #7883
Other Changes
- ci: remove firefox by @LingyuCoder in #7857
- refactor(types): remove @ts-expect-error in Compiler and MultiCompiler by @SoonIter in #7824
- test(dev-server): enable dev server test cases by @LingyuCoder in #7861
- test(dev-sever): add e2e test cases part 2 by @LingyuCoder in #7829
- test(dev-sever): add e2e test cases part 3 by @LingyuCoder in #7833
- chore: remove "rust-analyzer.checkOnSave" of VS Code by @fi3ework in #7874
- test: disable unstable dev server snapshot case by @LingyuCoder in #7877
- refactor: css-extract using parseMeta to store css info by @JSerFeng in #7878
New Contributors
- @littleVege made their first contribution in #7856
- @VugarAhmadov made their first contribution in #7880
- @ibuli made their first contribution in #7882
- @CPatchane made their first contribution in #7883
Full Changelog: v1.0.4...v1.0.5
v1.0.4
What's Changed
Exciting New Features π
- feat(modern-module): make dynamic import runtime-less by @fi3ework in #7759
- feat(core): use dyn output_filesystem by @hardfist in #7817
- feat: remove
ErrorSpan
in dependency trait by @shulaoda in #7841 - feat: support context for resolve and resolveWeak by @inottn in #7832
- feat: make namedChunkGroups iterable by @inottn in #7840
Bug Fixes π
- fix(core): try fix EBUSY problem in windows ci by @hardfist in #7803
- fix(core): fix resolve faild when do recursive symbol link by @hardfist in #7744
- fix: overflow panic when shifting left value greater then 31 by @SyMind in #7792
- fix: remove HotUpdateChunk in chunks by @SyMind in #7810
- fix: should not transform source to buffer by @SyMind in #7821
- fix: change javascript parser options in child compiler by @ahabhgk in #7812
- fix(loader-runner): remove legacy Node compatible code by @chenjiahan in #7818
- fix: improve stats string for match resource with long data url by @ahabhgk in #7823
- fix: duplicate emit source map from child compiler by @SyMind in #7847
- fix: loader intermediate data should be overridden between loaders by @h-a-n-a in #7846
Document Updates π
- docs: add tip for import.meta.webpackContext literal by @chenjiahan in #7815
- docs: fix typo in zh docs by @SyMind in #7820
Other Changes
- ci: clean node_modules and target by @SyMind in #7299
- chore(workflow): correct rspack action scope by @chenjiahan in #7825
- test: ignore snapshot obsolete warnings while using
-t
by @LingyuCoder in #7835 - chore(infra): remove eslint configs by @shulaoda in #7842
- test(dev-sever): add e2e test cases part 1 by @LingyuCoder in #7809
- chore(infra/biome): enable
noImplicitAnyLet
andnoArrayIndexKey
rules by @shulaoda in #7843 - ci: disable dev server test cases by @LingyuCoder in #7851
Full Changelog: v1.0.3...v1.0.4
v1.0.3
What's Changed
Performance Improvements β‘
Exciting New Features π
- feat: support
compilation.chunkGroups[].origins
by @LingyuCoder in #7776
Bug Fixes π
- fix(make): isolated module clean incomplete by @jerrykingxyz in #7761
- fix: cheap source map by @SyMind in #7791
- fix: panic when identity mapping with different char indices by @SyMind in #7799
Document Updates π
- docs: fix migrate-from-builtins.css example codes by @noshower in #7775
- docs: update html plugin by @LingyuCoder in #7793
Other Changes
- chore(deps): bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows by @dependabot in #7783
- chore: cleanup unused module syntax by @ahabhgk in #7790
Full Changelog: v1.0.2...v1.0.3