Skip to content

Releases: web-infra-dev/rspack

v1.0.5

13 Sep 06:47
Compare
Choose a tag to compare

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 to true by @h-a-n-a in #7867

Document Updates 📖

Other Changes

New Contributors

Full Changelog: v1.0.4...v1.0.5

v1.0.4

10 Sep 11:24
Compare
Choose a tag to compare

What's Changed

Exciting New Features 🎉

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 📖

Other Changes

Full Changelog: v1.0.3...v1.0.4

v1.0.3

04 Sep 15:45
Compare
Choose a tag to compare

What's Changed

Performance Improvements ⚡

Exciting New Features 🎉

Bug Fixes 🐞

Document Updates 📖

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

v1.0.2

04 Sep 03:38
Compare
Choose a tag to compare

What's Changed

Performance Improvements ⚡

Bug Fixes 🐞

Document Updates 📖

Other Changes

New Contributors

Full Changelog: v1.0.1...v1.0.2

v1.0.1

03 Sep 11:05
Compare
Choose a tag to compare

💡 Highlights

Improved create-rspack

Support for the addition of Biome / ESLint / Prettier when creating a new Rspack project:

create-rspack

Improve error logs of serde deserialize error

  • before:
    image

  • after:
    image

What's Changed

Performance Improvements ⚡

Exciting New Features 🎉

Bug Fixes 🐞

  • fix: use topological order when SideEffectsFlagPlugin optimize incoming connections by @ahabhgk in #7717
  • fix(core): improve error report when load builtin:swc-loader and buitin:lightningcss-loader by @hardfist in #7700
  • fix: align ignored module debug comment with webpack by @fi3ework in #7736
  • fix: template react logo animation css selector by @velusgautam in #7741
  • fix: add in_function_scope for getters and setters by @CPunisher in #7745

Document Updates 📖

Other Changes

New Contributors

Full Changelog: v1.0.0...v1.0.1

v1.0.0

28 Aug 04:50
Compare
Choose a tag to compare

image

See Announcing Rspack 1.0 for more details 🎉

What's Changed

Breaking Changes 🛠

  • fix: compilation errors and warnings should be RspackError by @h-a-n-a in #6900
  • feat: deprecate JavaScript API by @h-a-n-a in #6859
  • feat: upgrade swc to latest version by @hardfist in #6887
  • refactor: remove profile integration timestamp by @LingyuCoder in #6947
  • feat: remove fields of SwcJsMinimizerRspackPluginOptions by @h-a-n-a in #6950
  • fix!: align optimization.moduleIds and optimization.chunkIds when mode=none by @LingyuCoder in #6956
  • feat!: remove output.amdContainer from config by @fi3ework in #6958
  • feat!: revert default values of SwcJsMinimizer by @h-a-n-a in #6970
  • fix!: set default value of concatenateModules to true in production mode by @JSerFeng in #6959
  • refactor!: use swc_plugin_prefresh instead of builtin swc plugin by @LingyuCoder in #7069
  • feat!: detect conflicting values in DefinePlugin by @h-a-n-a in #7045
  • feat!: remove builtins.provide by @h-a-n-a in #7086
  • feat!: use native resolver in loader by @bvanjoi in #4945
  • fix!: correct names of hash fields in asset.info by @xc2 in #7220
  • feat(deps)!: updatewebpack-dev-server to v5 and no longer lock the versions by @SoonIter in #7130
  • fix!: remove @rspack/plugin-minify by @hardfist in #7307
  • feat!(crates): upgrade swc_core to 0.99.5 by @LingyuCoder in #7292
  • feat!: improve HtmlRspackPlugin by @LingyuCoder in #7577
  • refactor!: disable css minify in html minify and remove SwcCssMinimizerRspackPlugin by @ahabhgk in #7547
  • feat!: support optimization.emitOnErrors by @LingyuCoder in #7595
  • feat(core)!: change dojang default escape|unescape to lodash.template syntax by @hardfist in #7661

Performance Improvements ⚡

Exciting New Features 🎉

Read more

v1.0.0-rc.2

27 Aug 15:03
Compare
Choose a tag to compare

What's Changed

Exciting New Features 🎉

  • feat: apply affected modules to all cgm phase by @ahabhgk in #7684
  • feat: apply affected modules for provide exports by @ahabhgk in #7703
  • feat: support "loose-unrecognized-keys" for config validation by @h-a-n-a in #7705

Bug Fixes 🐞

Document Updates 📖

Other Changes

  • revert: feat(diagnostic): improve diagnostics for swc wasm plugins by @h-a-n-a in #7690

Full Changelog: v1.0.0-rc.1...v1.0.0-rc.2

v1.0.0-rc.1

26 Aug 07:48
35cab85
Compare
Choose a tag to compare

What's Changed

Exciting New Features 🎉

Bug Fixes 🐞

Document Updates 📖

Other Changes

  • refactor: use trait for dependencyConditionFn for better cacheable by @JSerFeng in #7679

Full Changelog: v1.0.0-rc.0...v1.0.0-rc.1

v1.0.0-rc.0

23 Aug 07:18
621cd3b
Compare
Choose a tag to compare

💡 Highlights

Faster eval-source-map

eval-source-map is now 80% faster than the previous version, see #7630.

image

HtmlRspackPlugin Escape Syntax

Now HtmlRspackPlugin uses the same syntax as html-webpack-plugin to escape a value. This can help you migrate from html-webpack-plugin to HtmlRspackPlugin more smoothly.

  • Before: Use <%= to escape the value, <%- does not escape the value.
  • After: Use <%- to escape the value, <%= does not escape the value.

For example, if a template value is <div>Rspack</div>, the current output will be:

<!-- Input -->
<%= value %>
<%- value %>

<!-- Output -->
<div>Rspack</div>
&lt;div&gt;Rspack&lt;/div&gt

PR: #7661

What's Changed

Breaking Changes 🛠

  • feat!: support optimization.emitOnErrors by @LingyuCoder in #7595
  • feat(core)!: change dojang default escape|unescape to lodash.template syntax by @hardfist in #7661

Performance Improvements ⚡

Exciting New Features 🎉

Bug Fixes 🐞

  • fix(node-stuff): use more conventional shim method by @fi3ework in #7587
  • fix: missing compiler.inputFileSystem type by @chenjiahan in #7597
  • fix: should not panic if provide dependency is not resolved by @JSerFeng in #7609
  • fix: remove the unnecessary logic for inserting semicolons by @inottn in #7615
  • fix: allow null and undefined in EnvironmentPlugin by @colinaaa in #7617
  • fix: should not stringify loader loading requests by @h-a-n-a in #7643
  • fix(mf2): correct mf shared options by @2heal1 in #7640
  • fix: unexpected ASI generation with sequence expression by @h-a-n-a in #7650
  • fix: wrong builtin:swc-loader source maps if inputSourceMap is provided by @h-a-n-a in #7654
  • fix(html): emit error when param not found by @LingyuCoder in #7656
  • fix(mf2): initializeSharingInitTokens should be object by @2heal1 in #7657
  • fix: "module-import" simply falls back to "module" when bails by @fi3ework in #7585

Document Updates 📖

  • docs: add performance bottlenecks by @chenjiahan in #7593
  • docs: keep webpack dependency in some cases by @chenjiahan in #7619
  • docs: update eslint-webpack-plugin compatible status by @9aoy in #7627
  • docs: filter rspack specific test cases by @9aoy in #7629
  • docs: migrating from rspack 0.x by @SyMind in #7625
  • docs: add notice about htmlRspackPlugin not support ejs syntax by @hardfist in #7652
  • docs: rslib link should be its github repo by @gwy15 in #7655

Other Changes

New Contributors

Full Changelog: v1.0.0-beta.5...v1.0.0-rc.0

v1.0.0-beta.5

15 Aug 14:18
5b9ef93
Compare
Choose a tag to compare

Highlights

Improved HtmlRspackPlugin

rspack.HtmlRspackPlugin has a lot of improvements to be more in line with the html-webpack-plugin.

  • [Feat] Support hash to append compilation hash
  • [Feat] Support base to inject base tag
  • [Feat] Support scriptLoading=systemjs-module
  • [Feat] Support [templatehash] in filename template, same as [contenthash]
  • [Breaking] Rename excludedChunks to excludeChunks, aligned with html-webpack-plugin
  • [Breaking] Minify html by default when mode=production
  • [Fix] No doctype parsing error
  • [Fix] Win32 relateive path
  • [Fix] Relative favicon path
  • [Fix] Wrong & escaping in script.src and link.href
  • [Test] Passed html-webpack-plugin basic cases from 45 to 85

PR: #7577

Removed SwcCssMinimizerRspackPlugin

The rspack.SwcCssMinimizerRspackPlugin has been removed to reduce binary size, please use LightningCssMinimizerRspackPlugin instead:

module.exports = {
  optimization: {
    minimizer: [
-     new rspack.SwcCssMinimizerRspackPlugin({
+     new rspack.LightningCssMinimizerRspackPlugin({
        // options
      }),
    ],
  },
};

Rspack also supports using css-minimizer-webpack-plugin.

What's Changed

Breaking Changes 🛠

  • feat!: improve HtmlRspackPlugin by @LingyuCoder in #7577
  • refactor!: disable css minify in html minify and remove SwcCssMinimizerRspackPlugin by @ahabhgk in #7547

Performance Improvements ⚡

Exciting New Features 🎉

  • feat: second param for loader hook by @SyMind in #7537
  • feat(create-rspack): configure Lightning CSS targets by default by @chenjiahan in #7579
  • feat(core): don't inject bundlerInfo in library mode by @hardfist in #7567
  • feat: extract-css-plugin supports layer by @JSerFeng in #7583

Bug Fixes 🐞

  • fix: use intersection runtime for concat module code gen by @ahabhgk in #7523
  • fix: chunk hash unstable by @JSerFeng in #7534
  • fix: should insert semi after import, export, debugger and class field by @CPunisher in #7529
  • fix: check SuperProp in walk_call_expression by @CPunisher in #7530
  • fix: remove useless "module" external runtime by @fi3ework in #7533
  • fix(rust-core): no need to pass resolve_factory when using rust api by @hardfist in #7539
  • fix(cli): wrong entry defaults from cli by @xc2 in #7541
  • fix: source map plugin module should enable by default by @ahabhgk in #7545
  • fix: avoid inner graph top level symbol for nested webpack_require by @ahabhgk in #7584

Document Updates 📖

Other Changes

  • refactor(typescript): packages/rspack/src/node/NodeWatchFileSystem by @wxiaoyun in #7528
  • chore(infra): improve the configuration of justfile by @shulaoda in #7526
  • chore: polish some words on introduction by @hardfist in #7557
  • chore(deps): update cargo-bins/cargo-binstall action to v1.10.2 by @renovate in #7564
  • test(plugin): test html plugin with basic cases of html-webpack-plugin by @LingyuCoder in #7571
  • chore(deps): bump plugin-react-refresh and lite-tapable to v1.0.0 by @chenjiahan in #7580
  • refactor: improve esm harmony dependencies structure by @shulaoda in #7576
  • refactor: module hash by @ahabhgk in #7569

Full Changelog: v1.0.0-beta.4...v1.0.0-beta.5