rspack

A fast Rust-based web bundler 🦀️

MIT License

Downloads
4.7M
Stars
7.4K
Committers
191

Bot releases are hidden (Show)

rspack - v0.2.12

Published by jerrykingxyz about 1 year ago

What's Changed

Performance Improvements ⚡

Exciting New Features 🎉

Bug Fixes 🐞

Other Changes

Full Changelog: https://github.com/web-infra-dev/rspack/compare/v0.2.11...v0.2.12

rspack - v0.2.11

Published by jerrykingxyz about 1 year ago

What's Changed

Exciting New Features 🎉

Bug Fixes 🐞

Other Changes

New Contributors

Full Changelog: https://github.com/web-infra-dev/rspack/compare/v0.2.10...v0.2.11

rspack - v0.2.10

Published by h-a-n-a about 1 year 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.2.9...v0.2.10

rspack - v0.2.9

Published by Boshen about 1 year ago

What's Changed

Exciting New Features 🎉

Bug Fixes 🐞

Other Changes

New Contributors

Full Changelog: https://github.com/web-infra-dev/rspack/compare/0.2.8...v0.2.9

rspack - 0.2.8

Published by underfin over 1 year ago

What's Changed

Exciting New Features 🎉

Bug Fixes 🐞

Other Changes

Full Changelog: https://github.com/web-infra-dev/rspack/compare/0.2.7...0.2.8

rspack - 0.2.7

Published by ahabhgk over 1 year ago

What's Changed

Performance Improvements ⚡

Exciting New Features 🎉

Bug Fixes 🐞

Other Changes

Full Changelog: https://github.com/web-infra-dev/rspack/compare/0.2.6...0.2.7

rspack - 0.2.6

Published by ahabhgk over 1 year ago

What's Changed

Exciting New Features 🎉

Bug Fixes 🐞

Other Changes

New Contributors

Full Changelog: https://github.com/web-infra-dev/rspack/compare/0.2.5...0.2.6

rspack - 0.2.5

Published by jerrykingxyz over 1 year ago

What's Changed

Exciting New Features 🎉

Bug Fixes 🐞

Other Changes

New Contributors

Full Changelog: https://github.com/web-infra-dev/rspack/compare/0.2.4...0.2.5

rspack - 0.2.4

Published by IWANABETHATGUY over 1 year ago

What's Changed

Exciting New Features 🎉

Bug Fixes 🐞

Other Changes

New Contributors

Full Changelog: https://github.com/web-infra-dev/rspack/compare/0.2.3...0.2.4

rspack - v0.2.3

Published by h-a-n-a over 1 year 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/0.2.2...0.2.3

rspack - v0.2.2

Published by Boshen over 1 year ago

What's Changed

Exciting New Features 🎉

Bug Fixes 🐞

Other Changes

New Contributors

Full Changelog: https://github.com/web-infra-dev/rspack/compare/0.2.1...0.2.2

rspack - v0.2.1

Published by underfin over 1 year ago

What's Changed

Exciting New Features 🎉

Bug Fixes 🐞

Other Changes

New Contributors

Full Changelog: https://github.com/web-infra-dev/rspack/compare/0.2.0...0.2.1

rspack - v0.2.0

Published by h-a-n-a over 1 year ago

Rspack 0.2.0 is out!

Read the announcement blog post: Announcing Rspack 0.2.

Overview

Official vue-loader support 🎉

And also

What's Changed

Breaking Changes 🛠

Performance Improvements ⚡

Exciting New Features 🎉

Bug Fixes 🐞

Other Changes

New Contributors

Full Changelog: https://github.com/web-infra-dev/rspack/compare/v0.1.0...0.2.0

rspack - v0.1.12

Published by jerrykingxyz over 1 year ago

Core features

Breaking Changes

In the previous release, Rspack incorrectly supported [ext] in output.filename, we are removing [ext] support in output.filename in 0.1.12 to align with webpack, which may be a breaking change for applications using [ext] in output.filename. see https://github.com/web-infra-dev/rspack/issues/3270#issuecomment-1559697465 for migration guide from previous release.

Support resolve.exportsFields

Support set exportsFields in package.json that are used for resolving module requests

module.exports = {
  //...
  resolve: {
    exportsFields: ['source', '...'],
  },
};

Support https://github.com/TypeStrong/fork-ts-checker-webpack-plugin

you can use fork-ts-checker-webpack-plugin directly in rspack to typecheck your codebase.

Support dataURI

import a from 'data:text/javascript,export default "a";';
expect(a).toBe("a");

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.1.11...v0.1.12

rspack - v0.1.11

Published by h-a-n-a over 1 year ago

Core features

Externals supports Array

module.exports = {
  //...
  externals: {
    subtract: ['./math', 'subtract'],
  },
};

subtract: ['./math', 'subtract'] allows you select part of a module, where ./math is the module and your bundle only requires the subset under the subtract variable.

see more

Support optimization.removeEmptyChunks

Tells Rspack to detect and remove chunks which are empty. Setting optimization.removeEmptyChunks to false will disable this optimization.

see more

Support splitChunks.{cacheGroup}.enforce

see more

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.1.10...v0.1.11

rspack - v0.1.10

Published by IWANABETHATGUY over 1 year ago

Core features

builtins.minifyOptions.extractComments

You could extract the license using the configuration below:

module.exports = {
// ... snip
  builtins: {
     minifyOptions: {
       extractComments: true // by default, rspack will use regex `@preserve|@lic|@cc_on|^\**!`
     }
  }
}

or Using Regexp:

module.exports = {
// ... snip
  builtins: {
     minifyOptions: {
       extractComments: /@license/
     }
  }
}

inline match resource

For more details you could refer https://webpack.js.org/api/loaders/#inline-matchresource

optimization.realContentHash

By default, when you use the contenthash option in your output filename, Rspack will generate a hash based on the module's dependencies and other factors that can change even if the module's content has not changed. This means that the bundle will be invalidated and rebuilt even if the module's content has not changed.
However, by enabling the optimization.realContentHash option, Rspack will generate a hash based only on the actual content of the module. This ensures that the bundle is invalidated and rebuilt only when the module's content has actually changed.
For more details you could refer to optimization.realContentHash

What's Changed

Exciting New Features 🎉

Bug Fixes 🐞

Other Changes

New Contributors

Full Changelog: https://github.com/web-infra-dev/rspack/compare/v0.1.9...v0.1.10

rspack - v0.1.9

Published by hyf0 over 1 year ago

Core features

Loader compatibility

style-loader + css-loader is now supported experimentally.

module.exports = {
  module: {
    rules: [
      {
        test: /\.css$/,
        use: [
          {
            loader: "style-loader",
            options: {
              esModule: false, // only `esModule: false` is supported right now.
            },
          },
          "css-loader",
        ],
        type: "javascript/auto",
      },
    ],
  },
};

thread-loader(requires pitching loader) and eslint-loader (can be used with enforce: 'pre') are also supported.

For more loader-compat examples, please visit example-loader-compat.

Inline loader

// Prefixing with ! will disable all configured normal loaders
require("!postcss-loader!less-loader!./style.less")

// Prefixing with !! will disable all configured loaders (preLoaders, loaders, postLoaders)
require("!!postcss-loader!less-loader!./style.less")

// Prefixing with -! will disable all configured preLoaders and loaders but not postLoaders
require("-!postcss-loader!less-loader!./style.less")

Pitching loader

module.exports = function() {}
module.exports.pitch = function (remainingRequest, previousRequest, data) {
   if (someCondition) {
      return `require("!!${remainingRequest}")`
   }
};

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.1.8...v0.1.9

rspack - v0.1.8

Published by ahabhgk over 1 year ago

What's Changed

Infrastructure ⚙️

  • Rspack has nightly release now! npm i -D @rspack/cli@nightly
  • Rspack Ecosystem CI has been successfully set up and running

Performance Improvements ⚡

Exciting New Features 🎉

Bug Fixes 🐞

Other Changes

New Contributors

Full Changelog: https://github.com/web-infra-dev/rspack/compare/v0.1.7...v0.1.8

rspack - v0.1.7

Published by jerrykingxyz over 1 year ago

There are some enhancements/fixes

More supported Webpack features

DX improving

Frameworks

What's Changed

New Contributors

Full Changelog: https://github.com/web-infra-dev/rspack/compare/v0.1.6...v0.1.7

rspack - v0.1.6

Published by IWANABETHATGUY over 1 year ago

What's Changed

Full Changelog: https://github.com/web-infra-dev/rspack/compare/v0.1.5...v0.1.6