Skip to content

Releases: web-infra-dev/rspack

v0.7.0-beta.0

16 May 09:00
Compare
Choose a tag to compare
v0.7.0-beta.0 Pre-release
Pre-release

What's Changed

Breaking Changes πŸ› 

Performance Improvements ⚑

Exciting New Features πŸŽ‰

  • feat: compat chunkGroup.chunks by @ahabhgk in #6490
  • feat: support performance config by @inottn in #6456
  • feat: support resolve.enforceExtension / descriptionFiles / importsFields options by @9aoy in #6491
  • feat: support contextModuleFactory beforeResolve hook by @SyMind in #6420
  • feat: export types of CSS extract plugin by @chenjiahan in #6528
  • feat: improve diagnostics if expressions passed into DefinePlugin are failed to parse by @shulaoda in #6382
  • feat: support cjs css with css esModule generator options by @ahabhgk in #6376
  • feat(create-rspack): add template-vue-ts by @cnryb in #5834

Bug Fixes 🐞

Document Updates πŸ“–

Other Changes

New Contributors

Full Changelog: v0.6.5...v0.7.0-beta.0

v0.6.5

08 May 13:19
Compare
Choose a tag to compare

Hotfixes

  • fix: template strings panic by @ahabhgk in #6473
  • fix: should distinguish context for css modules local ident name by @ahabhgk in #6472

What's Changed

Performance Improvements ⚑

Bug Fixes 🐞

Document Updates πŸ“–

Other Changes

New Contributors

Full Changelog: v0.6.4...v0.6.5

v0.6.4

07 May 13:37
Compare
Choose a tag to compare

What's Changed

Performance Improvements ⚑

Exciting New Features πŸŽ‰

Bug Fixes 🐞

  • fix(create-rspack): remove useless sourceMap option in templates by @chenjiahan in #6319
  • fix: incremental rebuild clean module_graph.block & dependencies by @jerrykingxyz in #6298
  • fix: align get_nested_exports_info with webpack by @JSerFeng in #6351
  • fix: default resolve roots by @ahabhgk in #6340
  • fix: errors thrown in userland callbacks should not panic by @h-a-n-a in #6082
  • fix: process dependencies task remove resolve_options by @jerrykingxyz in #6377
  • fix: swc minimizer extracted comments should be stable by @h-a-n-a in #6380
  • fix: minify comments extract by @LingyuCoder in #6386
  • fix: runtimeChunk should control all entries' runtime by @ahabhgk in #6388
  • fix(mf): remove empty chunk mapping by @ahabhgk in #6394
  • fix(config): snapshot.module accept { timestamp: true} by @SoonIter in #6387
  • fix: swc parser should always preserve comments by @h-a-n-a in #6389
  • fix: wrong module source by @h-a-n-a in #6396
  • fix(config): support snapshot config {timestamp: true} and {hash: true} by @SoonIter in #6399
  • fix: handle unhandled scheme by @h-a-n-a in #6404
  • fix: allow all characters for webpackChunkName by @xc2 in #6411
  • fix: remove outdated TODOs in runtime code by @chenjiahan in #6409
  • fix: comment preserver should be placed prior to inline globals by @h-a-n-a in #6423
  • fix(rspack_loader_runner): char_boundary panic when debug content by @SoonIter in #6412
  • fix(mf): webpack_init_sharing with empty config by @ahabhgk in #6450
  • fix: consistent md4 hash in localNameIdent by @LingyuCoder in #6444

Document Updates πŸ“–

Other Changes

Read more

v0.6.3

23 Apr 12:23
Compare
Choose a tag to compare

What's Changed

Highlights

Provide type declaration for builtin:swc-loader

@rspack/core now provides the type declaration for builtin:swc-loader, which can help you to configure the swc-loader correctly:

// rspack.config.js
module.exports = {
  module: {
    rules: [
      {
        test: /\.js$/,
        use: {
          loader: 'builtin:swc-loader',
+         /** @type {import('@rspack/core').SwcLoaderOptions} */
          options: {
            // some options
          },
        },
      },
    ],
  },
};

Updated Plugin Documentation for Rspack

We've revamped the plugin documentation for Rspack to enhance clarity and improve your experience.

Please visit: https://www.rspack.dev/plugins

image

Exciting New Features πŸŽ‰

Bug Fixes 🐞

Other Changes

New Contributors

Full Changelog: v0.6.2...v0.6.3

v0.6.2

17 Apr 05:58
d184ee3
Compare
Choose a tag to compare

What's Changed

Performance Improvements ⚑

Exciting New Features πŸŽ‰

Bug Fixes 🐞

Other Changes

New Contributors

Full Changelog: v0.6.1...v0.6.2

v0.6.1

15 Apr 06:22
22cb8e0
Compare
Choose a tag to compare

What's Changed

Highlights

Fixed a case where locally defined variables in class being falsely transformed

class Example {
  constructor(global = false) {
    this.global = global
  }
}

global should be kept as-is with node.global = true if target includes 'web'.

Exciting New Features πŸŽ‰

Bug Fixes 🐞

  • fix: wrong asset info after updateAsset by @ahabhgk in #6156
  • fix(ci): compilation file prettier error by @9aoy in #6170
  • fix: should keep locally defined variables in class by @h-a-n-a in #6183

Other Changes

New Contributors

Full Changelog: v0.6.0...v0.6.1

v0.6.0

10 Apr 09:06
Compare
Choose a tag to compare

Rspack 0.6.0 is out!

Read the announcement blog post: Announcing Rspack 0.6.

Overview

  • Support builtin mini-css-extract-plugin
  • Enable new tree shaking by default
  • Align experiments css options with webpack and remove builtins css
  • Remove compiler.build and compiler.rebuild
  • Update swc to 0.90.x

What's Changed

Breaking Changes πŸ› 

Performance Improvements ⚑

Exciting New Features πŸŽ‰

  • feat: mini-css-extract-plugin by @JSerFeng in #5072
  • feat: enable incremental_rebuild when use new treeshaking by @jerrykingxyz in #6029
  • feat: export MultiStats class by @chenjiahan in #6058
  • feat(rspack): NormalModuleReplacementPlugin by @xc2 in #6028
  • feat: support more intuitive CSS diagnostic by @luhc228 in #6040
  • feat: support entry.dependOn by @LingyuCoder in #6069
  • feat: support compilation.hooks.afterSeal by @LingyuCoder in #6090
  • feat: support css default export and named export at same time by @ahabhgk in #6107
  • feat(swc_plugin_import): legacy kebab/snake case for legacy babel-plugin-import compatibility by @xc2 in #6070
  • feat: support dependOn in chunk split by @SyMind in #6109

Bug Fixes 🐞

Documentation Updates πŸ“š

Other Changes

Read more

v0.5.9

26 Mar 11:06
Compare
Choose a tag to compare

What's Changed

Highlights

  • Fix incorrectly full reload when applying hot update #6021
  • Support passing Function type to filename options: options.filename, options.chunkFilename, etc @branchseer in #5957

Performance Improvements ⚑

Exciting New Features πŸŽ‰

Bug Fixes 🐞

Other Changes

New Contributors

Full Changelog: v0.5.8...v0.5.9

v0.5.8

19 Mar 12:12
Compare
Choose a tag to compare

What's Changed

Performance Improvements ⚑

  • perf(node-binding): lock-free compiler by @h-a-n-a in #5940
  • perf(node-binding): reduce JsCallback lock contentions by @h-a-n-a in #5945

Exciting New Features πŸŽ‰

Bug Fixes 🐞

Other Changes

New Contributors

Full Changelog: v0.5.7...v0.5.8

v0.5.7

12 Mar 03:37
Compare
Choose a tag to compare

What's Changed

Highlights

Support experimental SWC wasm plugins for builtin:swc-loader

Aligned wasm plugin architecture with JavaScript swc-loader.
Check out the detail at swc plugins.

{
  loader: "builtin:swc-loader",
  options: {
    jsc: {
      experimental: {
        plugins: [
          [
            "@swc/plugin-remove-console",
            {
              exclude: ["error"],
            },
          ],
        ],
      },
    },
  },
};

Great work done by @dm33tri πŸŽ‰.

Exciting New Features πŸŽ‰

Bug Fixes 🐞

Other Changes

New Contributors

Full Changelog: v0.5.6...v0.5.7