Bot releases are hidden (Show)
RspackError
by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/6900
SwcJsMinimizerRspackPluginOptions
by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/6950
DefinePlugin
by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7045
builtins.provide
by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7086
webpack-dev-server
to v5 and no longer lock the versions by @SoonIter in https://github.com/web-infra-dev/rspack/pull/7130
optimization.emitOnErrors
by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7595
compilation.entrypoints
by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7059
get_scheme
allocation by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7109
TraceableError
by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7192
Stats
by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7124
ModuleRule
matching by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7249
JavascriptParser::new
by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7286
Ukey
s by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7287
resource_path
is not a valid UTF-8 sequence by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7441
to
option by @9aoy in https://github.com/web-infra-dev/rspack/pull/6866
factoryMeta
to JsModule
and optimize InnerGraphPlugin
for variable decl with iife by @CPunisher in https://github.com/web-infra-dev/rspack/pull/6888
DefinePlugin
by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7108
StatsError.moduleTrace
by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7123
test
, include
and exclude
options for SwcCssMinimizerRspackPlugin
by @simonxabris in https://github.com/web-infra-dev/rspack/pull/7111
output.assetModuleFilename
by @xc2 in https://github.com/web-infra-dev/rspack/pull/7191
__webpack_get_script_filename__
by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7203
publicPath
options with webpack by @xc2 in https://github.com/web-infra-dev/rspack/pull/7216
compilation.chunkGroups
and compilation.namedChunkGroups
by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7254
test
, include
and exclude
options for LightningCssMinimizerRspackPlugin
by @simonxabris in https://github.com/web-infra-dev/rspack/pull/7290
parser.importMeta
and output.importMetaName
by @xc2 in https://github.com/web-infra-dev/rspack/pull/7231
compilation.chunkGroup[].isInitial()
by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7406
compiler.rspack
by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7434
moduleReason.resolvedModule
by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7467
node-module
shim by @fi3ework in https://github.com/web-infra-dev/rspack/pull/7465
isOverSizeLimit
in stats by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7483
stats.chunkGroup[].childAssets
by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7517
"loose-unrecognized-keys"
for config validation by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7705
ModuleFactory
is not correct by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/6946
glob_match
by @shulaoda in https://github.com/web-infra-dev/rspack/pull/6668
FileSystem
trait by @hardfist in https://github.com/web-infra-dev/rspack/pull/7275
truthy || any
and falsy && any
by @xc2 in https://github.com/web-infra-dev/rspack/pull/7277
await
to async module export by @CPunisher in https://github.com/web-infra-dev/rspack/pull/7308
walk_block_statement
to walk_statement
by @CPunisher in https://github.com/web-infra-dev/rspack/pull/7410
compiler.inputFileSystem
type by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7597
null
and undefined
in EnvironmentPlugin by @colinaaa in https://github.com/web-infra-dev/rspack/pull/7617
builtin:swc-loader
source maps if inputSourceMap
is provided by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7654
Path
pitfall for loader type by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7666
context
should be an absolute path by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7687
VariableInfo
by @bvanjoi in https://github.com/web-infra-dev/rspack/pull/6914
serwist
in community compatibility table by @JoseVSeb in https://github.com/web-infra-dev/rspack/pull/7345
@rstack-dev/doc-ui
to add Rslib and awesome Rspack by @Timeless0911 in https://github.com/web-infra-dev/rspack/pull/7445
@module-federation/sdk
to FAQ by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7669
Module not found
instead of Resolve Error
by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7106
walk_expression
into create_context_dependency
by @CPunisher in https://github.com/web-infra-dev/rspack/pull/6963
packages/rspack/src/util
from js to ts and esm by @jithyan in https://github.com/web-infra-dev/rspack/pull/7246
packages/rspack/src/config
from js to ts/esm by @jithyan in https://github.com/web-infra-dev/rspack/pull/7255
prebundle
when prepare by @colinaaa in https://github.com/web-infra-dev/rspack/pull/7304
rspack-test-tools
by @colinaaa in https://github.com/web-infra-dev/rspack/pull/7303
justfile
by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7526
Compilation.updateAsset
comment by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7628
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v0.7.5...v1.0.0
Published by chenjiahan about 2 months ago
"loose-unrecognized-keys"
for config validation by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7705
context
should be an absolute path by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7687
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.0.0-rc.1...v1.0.0-rc.2
Published by chenjiahan about 2 months ago
Path
pitfall for loader type by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7666
@module-federation/sdk
to FAQ by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7669
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.0.0-rc.0...v1.0.0-rc.1
Published by chenjiahan about 2 months ago
eval-source-map
eval-source-map
is now 80% faster than the previous version, see https://github.com/web-infra-dev/rspack/pull/7630.
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.
<%=
to escape the value, <%-
does not escape the value.<%-
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>
<div>Rspack</div>
optimization.emitOnErrors
by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7595
compiler.inputFileSystem
type by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7597
null
and undefined
in EnvironmentPlugin by @colinaaa in https://github.com/web-infra-dev/rspack/pull/7617
builtin:swc-loader
source maps if inputSourceMap
is provided by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7654
Compilation.updateAsset
comment by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7628
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.0.0-beta.5...v1.0.0-rc.0
Published by chenjiahan 2 months ago
HtmlRspackPlugin
rspack.HtmlRspackPlugin
has a lot of improvements to be more in line with the html-webpack-plugin
.
hash
to append compilation hashbase
to inject base tagscriptLoading=systemjs-module
[templatehash]
in filename template, same as [contenthash]
excludedChunks
to excludeChunks
, aligned with html-webpack-pluginmode=production
&
escaping in script.src
and link.href
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.
justfile
by @shulaoda in https://github.com/web-infra-dev/rspack/pull/7526
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.0.0-beta.4...v1.0.0-beta.5
Published by chenjiahan 2 months ago
moduleReason.resolvedModule
by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7467
node-module
shim by @fi3ework in https://github.com/web-infra-dev/rspack/pull/7465
isOverSizeLimit
in stats by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7483
stats.chunkGroup[].childAssets
by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7517
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.0.0-beta.3...v1.0.0-beta.4
Published by chenjiahan 2 months ago
Move all SWC options to minimizerOptions
:
compress
option has been moved to minimizerOptions.compress
.mangle
option has been moved to minimizerOptions.mangle
.format
option has been moved to minimizerOptions.format
.module
option has been moved to minimizerOptions.module
.module.exports = {
optimization: {
minimizer: [
new rspack.SwcJsMinimizerRspackPlugin({
- format: {
- ecma: 6,
- },
+ minimizerOptions: {
+ format: {
+ ecma: 6,
+ },
+ },
}),
],
},
};
browserslist
option has been renamed to minimizerOptions.targets
.module.exports = {
optimization: {
minimizer: [
new rspack.LightningCssMinimizerRspackPlugin({
- browserslist: 'Chrome >= 53',
+ minimizerOptions: {
+ targets: 'Chrome >= 53',
+ },
}),
],
},
};
resource_path
is not a valid UTF-8 sequence by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7441
compiler.rspack
by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7434
@rstack-dev/doc-ui
to add Rslib and awesome Rspack by @Timeless0911 in https://github.com/web-infra-dev/rspack/pull/7445
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.0.0-beta.2...v1.0.0-beta.3
Published by chenjiahan 3 months ago
compilation.chunkGroup[].isInitial()
by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7406
walk_block_statement
to walk_statement
by @CPunisher in https://github.com/web-infra-dev/rspack/pull/7410
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.0.0-beta.1...v1.0.0-beta.2
Published by chenjiahan 3 months ago
Rspack now supports Import Attributes by defaults:
import json from "./foo.json" with { type: "json" };
import("foo.json", { with: { type: "json" } });
Rspack now supports module and chunk layers. This feature can be used by frameworks like Rsnext (The Rspack-based Next.js) to implement React Server Components.
export default {
entry: {
index: {
import: './src/index.js',
layer: 'modern',
},
'index-legacy': {
import: './src/index.js',
layer: 'legacy',
},
},
module: {
rules: [
{
test: /\.js$/,
issuerLayer: 'modern',
use: [
{
loader: 'builtin:swc-loader',
options: {
env: {
targets: 'Chrome >= 87',
},
},
},
],
},
{
test: /\.js$/,
issuerLayer: 'legacy',
use: [
{
loader: 'builtin:swc-loader',
options: {
env: {
targets: 'ie >= 11',
},
},
},
],
},
],
},
experiments: {
layers: true,
},
};
export default {
module: {
rules: [
// set `layer` for some modules
{
test: /rsc-modules/,
layer: 'rsc',
},
// set resolve options for specified layer
{
issuerLayer: 'rsc',
resolve: {
conditionNames: ['react-server', '...'],
},
},
{
// set loaders for specified layer
oneOf: [
{
issuerLayer: 'rsc',
test: /\.tsx?$/,
use: ['some-rsc-loader'],
},
{
test: /\.tsx?$/,
use: ['some-normal-loader'],
},
],
},
],
},
experiments: {
layers: true,
},
};
parser.importMeta
and output.importMetaName
by @xc2 in https://github.com/web-infra-dev/rspack/pull/7231
serwist
in community compatibility table by @JoseVSeb in https://github.com/web-infra-dev/rspack/pull/7345
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.0.0-beta.0...v1.0.0-beta.1
Published by chenjiahan 3 months ago
In version 1.0.0-beta.0 we have made a number of performance optimizations, which together add up to significant performance gains. According to benchmark data, Rspack's dev startup is 4.7% faster, and its prod build is 11% faster.
Detailed changes:
Stats
by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7124
ModuleRule
matching by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7249
JavascriptParser::new
by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7286
Ukey
s by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/7287
@rspack/core
now depends on swc_core
v0.99 (previously v0.96).
If your project is using the SWC Wasm plugin, this will be a breaking change, and you will need to upgrade the SWC Wasm plugin to the latest version.
@rspack/cli
now depends on webpack-dev-server
v5 (previously v4).
If you are using @rspack/cli
, please be aware of the following breaking changes:
webpack-dev-server@5
is 18.12.0
.rspack/plugin-minify
has been deprecated as it was a temporary package to support Terser.
Now Rspack has full support for terser-webpack-plugin
. If you need to use Terser as the minimizer, we recommend using terser-webpack-plugin
instead of @rspack/plugin-minify
:
// rspack.config.js
- const MinifyPlugin = require('@rspack/plugin-minify');
+ const TerserPlugin = require('terser-webpack-plugin');
module.exports = {
optimization: {
minimize: true,
minimizer: [
- new MinifyPlugin({ minifier: 'terser' }),
+ new TerserPlugin(),
],
},
};
lightningcss-loader
by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/7214
__webpack_get_script_filename__
by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7203
publicPath
options with webpack by @xc2 in https://github.com/web-infra-dev/rspack/pull/7216
compilation.chunkGroups
and compilation.namedChunkGroups
by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7254
test
, include
and exclude
options for LightningCssMinimizerRspackPlugin
by @simonxabris in https://github.com/web-infra-dev/rspack/pull/7290
FileSystem
trait by @hardfist in https://github.com/web-infra-dev/rspack/pull/7275
truthy || any
and falsy && any
by @xc2 in https://github.com/web-infra-dev/rspack/pull/7277
await
to async module export by @CPunisher in https://github.com/web-infra-dev/rspack/pull/7308
packages/rspack/src/util
from js to ts and esm by @jithyan in https://github.com/web-infra-dev/rspack/pull/7246
packages/rspack/src/config
from js to ts/esm by @jithyan in https://github.com/web-infra-dev/rspack/pull/7255
prebundle
when prepare by @colinaaa in https://github.com/web-infra-dev/rspack/pull/7304
rspack-test-tools
by @colinaaa in https://github.com/web-infra-dev/rspack/pull/7303
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.0.0-alpha.5...v1.0.0-beta.0
Published by SyMind 3 months ago
TraceableError
by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7192
output.assetModuleFilename
by @xc2 in https://github.com/web-infra-dev/rspack/pull/7191
glob_match
by @shulaoda in https://github.com/web-infra-dev/rspack/pull/6668
walk_expression
into create_context_dependency
by @CPunisher in https://github.com/web-infra-dev/rspack/pull/6963
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.0.0-alpha.4...v1.0.0-alpha.5
Published by SyMind 3 months ago
test
, include
and exclude
options for SwcCssMinimizerRspackPlugin
by @simonxabris in https://github.com/web-infra-dev/rspack/pull/7111
StatsError.moduleTrace
by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7123
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.0.0-alpha.3...v1.0.0-alpha.4
Published by chenjiahan 3 months ago
Rspack v1.0.0-alpha.3 enabled Rust 'fat' LTO to improve performance (https://github.com/web-infra-dev/rspack/pull/7088):
DefinePlugin
by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7045
compilation.entrypoints
by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/7059
get_scheme
allocation by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7109
DefinePlugin
by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7108
builtins.provide
by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/7086
Module not found
instead of Resolve Error
by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/7106
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.0.0-alpha.2...v1.0.0-alpha.3
Published by chenjiahan 3 months ago
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.0.0-alpha.1...v1.0.0-alpha.2
Published by chenjiahan 4 months ago
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.0.0-alpha.0...v1.0.0-alpha.1
Published by chenjiahan 4 months ago
RspackError
by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/6900
SwcJsMinimizerRspackPluginOptions
by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/6950
to
option by @9aoy in https://github.com/web-infra-dev/rspack/pull/6866
factoryMeta
to JsModule
and optimize InnerGraphPlugin
for variable decl with iife by @CPunisher in https://github.com/web-infra-dev/rspack/pull/6888
ModuleFactory
is not correct by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/6946
VariableInfo
by @bvanjoi in https://github.com/web-infra-dev/rspack/pull/6914
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v0.7.5...v1.0.0-alpha.0
Published by chenjiahan 4 months ago
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v0.7.4...v0.7.5
Published by LingyuCoder 4 months ago
In v0.7.4 Rspack provides a new CSS minimizer which uses Lightning CSS under the hood, for now you can enable it by optimization.minimizer
, and in Rspack v1.0, it will be enabled by default.
And here are two very useful features powered by the new LightningCSS minimizer:
Checkout our docs for more details.
In v0.7.4 Rspack is compatible with worker-loader, which is usually used by some older projects, so this is provided only as a temporary solution to facilitate these older projects migration to Rspack, checkout our docs for more details.
module.rules.descriptionData
by @leimonio in https://github.com/web-infra-dev/rspack/pull/6797
Rule.descriptionData
by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/6813
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v0.7.3...v0.7.4
Published by h-a-n-a 4 months ago
ProgressPlugin
configuration by @CPunisher in https://github.com/web-infra-dev/rspack/pull/6722
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v0.7.2...v0.7.3
Published by jerrykingxyz 4 months ago
AssetInfo
type with webpack by @wxiaoyun in https://github.com/web-infra-dev/rspack/pull/6721
strict: true
to RawModule by @colinaaa in https://github.com/web-infra-dev/rspack/pull/6755
Rule.descriptionData
won't match object types by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/6758
in_function_scope
for walking method function by @CPunisher in https://github.com/web-infra-dev/rspack/pull/6760
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v0.7.1...v0.7.2