rspack

A fast Rust-based web bundler 🦀️

MIT License

Downloads
4.7M
Stars
7.4K
Committers
191

Bot releases are hidden (Show)

rspack - v0.7.1

Published by SyMind 5 months ago

What's Changed

Highlights

Check exports presence

Now Rspack will emit warnings for using non-existent exports and conflicting re-exports, checkout docs for more details.

10%-15% performance improvement for JavaScript parsing

The old JavaScript parser performs multiple times of parsing and code generation.
In this version, Rspack refactored the current implementation. It's one time parsing now.
Check out the PR for detail.

image

Performance Improvements ⚡

Exciting New Features 🎉

Bug Fixes 🐞

Document Updates 📖

Other Changes

New Contributors

Full Changelog: https://github.com/web-infra-dev/rspack/compare/v0.7.0...v0.7.1

rspack - v0.7.0

Published by 9aoy 5 months ago

What's Changed

see Announcing Rspack v0.7 for more details

Notable Changes 🍭

Breaking Changes 🛠

Performance Improvements ⚡

Exciting New Features 🎉

Bug Fixes 🐞

Document Updates 📖

Other Changes

New Contributors

Full Changelog: https://github.com/web-infra-dev/rspack/compare/v0.6.5...v0.7.0

rspack - v0.7.0-beta.2

Published by 9aoy 5 months ago

What's Changed

Performance Improvements ⚡

Exciting New Features 🎉

Bug Fixes 🐞

Document Updates 📖

Other Changes

Full Changelog: https://github.com/web-infra-dev/rspack/compare/v0.7.0-beta.1...v0.7.0-beta.2

rspack - v0.7.0-beta.1

Published by 9aoy 5 months ago

What's Changed

Exciting New Features 🎉

Bug Fixes 🐞

Document Updates 📖

Other Changes

Full Changelog: https://github.com/web-infra-dev/rspack/compare/v0.7.0-beta.0...v0.7.0-beta.1

rspack - v0.7.0-beta.0

Published by 9aoy 5 months ago

What's Changed

Breaking Changes 🛠

Performance Improvements ⚡

Exciting New Features 🎉

Bug Fixes 🐞

Document Updates 📖

Other Changes

New Contributors

Full Changelog: https://github.com/web-infra-dev/rspack/compare/v0.6.5...v0.7.0-beta.0

rspack - v0.6.5

Published by ahabhgk 5 months ago

Hotfixes

What's Changed

Performance Improvements ⚡

Bug Fixes 🐞

Document Updates 📖

Other Changes

New Contributors

Full Changelog: https://github.com/web-infra-dev/rspack/compare/v0.6.4...v0.6.5

rspack - v0.6.4

Published by LingyuCoder 5 months ago

What's Changed

Performance Improvements ⚡

Exciting New Features 🎉

Bug Fixes 🐞

Document Updates 📖

Other Changes

New Contributors

Full Changelog: https://github.com/web-infra-dev/rspack/compare/v0.6.3...v0.6.4

rspack - v0.6.3

Published by SyMind 6 months ago

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: https://github.com/web-infra-dev/rspack/compare/v0.6.2...v0.6.3

rspack - v0.6.2

Published by Boshen 6 months ago

What's Changed

Performance Improvements ⚡

Exciting New Features 🎉

Bug Fixes 🐞

Other Changes

New Contributors

Full Changelog: https://github.com/web-infra-dev/rspack/compare/v0.6.1...v0.6.2

rspack - v0.6.1

Published by h-a-n-a 6 months ago

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 🐞

Other Changes

New Contributors

Full Changelog: https://github.com/web-infra-dev/rspack/compare/v0.6.0...v0.6.1

rspack - v0.6.0

Published by chenjiahan 6 months ago

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 🎉

Bug Fixes 🐞

Documentation Updates 📚

Other Changes

New Contributors

Full Changelog: https://github.com/web-infra-dev/rspack/compare/v0.5.9...v0.6.0

rspack - v0.5.9

Published by SyMind 7 months ago

What's Changed

Highlights

Performance Improvements ⚡

Exciting New Features 🎉

Bug Fixes 🐞

Other Changes

New Contributors

Full Changelog: https://github.com/web-infra-dev/rspack/compare/v0.5.8...v0.5.9

rspack - v0.5.8

Published by h-a-n-a 7 months ago

What's Changed

Performance Improvements ⚡

Exciting New Features 🎉

Bug Fixes 🐞

Other Changes

New Contributors

Full Changelog: https://github.com/web-infra-dev/rspack/compare/v0.5.7...v0.5.8

rspack - v0.5.7

Published by Boshen 7 months ago

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: https://github.com/web-infra-dev/rspack/compare/v0.5.6...v0.5.7

rspack - v0.5.6

Published by ahabhgk 8 months ago

What's Changed

Highlight

Improve HMR performance around 60%

Introducing sourcemap caching has improved the compilation speed of HMR (Hot Module Replacement), typically resulting in an improvement of around 60%.

Performance Improvements ⚡

Exciting New Features 🎉

Bug Fixes 🐞

Other Changes

New Contributors

Full Changelog: https://github.com/web-infra-dev/rspack/compare/v0.5.5...v0.5.6

rspack - v0.5.5

Published by LingyuCoder 8 months ago

What's Changed

Highlight

Added diagnostic suggestions for extension-less module resolutions

This added suggestions for potential files that can be resolved while the bundler's configuration may be not be correct. This might also be helpful for those whose project was migrated from lower major versions.

Project tree:

<PROJECT_ROOT>/
├─ a.txt
└─ index.js

Resolve error:

ERROR in ./index.js
  × Resolve error: Can't resolve './a' in '/'
   ╭────
 1 │ import a from './a';
   ·               ──────
   ╰────
  help: Found the module './a.txt' exists, but its extension is not listed in the `resolve.extensions`. Here are some possible solutions:

        1. add the extension `".txt"` to `resolve.extensions` in your rspack configuration
        2. use '../a.txt' instead of './a'

The error suggests to add the extension ".txt" to resolve.extensions, as, by default, rspack will not support for extension-less module requests like "txt".

Kudos to @luhc228.

Performance Improvements ⚡

Exciting New Features 🎉

Bug Fixes 🐞

Other Changes

New Contributors

Full Changelog: https://github.com/web-infra-dev/rspack/compare/v0.5.4...v0.5.5

rspack - v0.5.4

Published by bvanjoi 9 months ago

What's Changed

Highlight

  • Support alias require:
// commonjs file
const alias = require
alias('./foo') // now `foo.js` will be bundled

Performance Improvements ⚡

Exciting New Features 🎉

Bug Fixes 🐞

Other Changes

Full Changelog: https://github.com/web-infra-dev/rspack/compare/v0.5.3...v0.5.4

rspack - v0.5.3

Published by JSerFeng 9 months ago

What's Changed

Highlights

Fix: build gets stuck at seal when using Module Federation with shared option

When using ModuleFederationPlugin with shared option, build may get stuck. See #5494

Performance Improvements ⚡

Exciting New Features 🎉

Bug Fixes 🐞

Other Changes

Full Changelog: https://github.com/web-infra-dev/rspack/compare/v0.5.2...v0.5.3

rspack - v0.5.2

Published by h-a-n-a 9 months ago

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 ⚡

Exciting New Features 🎉

Bug Fixes 🐞

Other Changes

New Contributors

Full Changelog: https://github.com/web-infra-dev/rspack/compare/v0.5.1...v0.5.2

rspack - v0.5.1

Published by Boshen 9 months ago

What's Changed

Highlights

Rspack Examples

Rspack configuration examples are moved to rspack-examples.

This repository contains all rspack, rsbuild and rspress configuration examples. Contributions are welcome for expanding the examples.

Resolve

  • Deprecated resolve.browserField in favor of resolve.aliasFields.
  • Added resolve.preferAbsolute, resolve.restrictions, resolve.roots and resolve.aliasFields options

Better module resolution hints

img_v3_0275_89cbdb90-0e38-44ba-a14d-7b0587df147g

img_v3_0275_a8db6ea0-d5fc-4f1f-8ae4-84e753104cag

Exciting New Features 🎉

feat(swc_plugin_import): support camelCase and snake_case (#5283)
feat: deprecate resolve.browserField and enable resolve.{preferAbsolute,restrictions,roots,aliasFields} (#5223)
feat: introduce JavascriptParser (#5280)
feat: resolve with hint (#5178)
feat: support module build error (#5286)

Bug Fixes 🐞

fix: cjs module reexport unused error (#5291)
fix: fix cli command alias bug (#5307)
fix: module graph incorrect when delete or create file (#5301)
fix: should not assume module directories always exist (#5326)
fix: unregistered case handler should not panic (#5330)

Performance Improvements ⚡

perf: lazily init help message (#5309)

Chores

chore(diff): fix diff detail output (#5299)
chore: add link to rspack-contrib/rspack-examples in README (#5297)
chore: bump oxlint to v0.2.0 (#5327)
chore: nightly release alert when failed (#5323)
chore: remove examples directory (to github.com/rspack-contrib/rspack-examples) (#5296)
chore: remove unused Rust dependencies (#5312)
chore: turn off --bail --forceExit --logHeapUsage from webpack test (#5303)
chore: upgrade Rust to v1.75.0 (nightly) (#5305)
chore: use pnpm v8 default flags (#5304)
test: replace error stack in test (#5325)