Bot releases are hidden (Show)
Published by jerrykingxyz about 1 year ago
compilation.getAssets
overhead by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/3934
chunkIds: 'named'
with Webpack by @hyf0 in https://github.com/web-infra-dev/rspack/pull/3923
experiments.css
sets to off by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/3430
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v0.2.11...v0.2.12
Published by jerrykingxyz about 1 year ago
xxx.xxx
by @underfin in https://github.com/web-infra-dev/rspack/pull/3910
get_hash
if assertion is failed by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/3907
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v0.2.10...v0.2.11
Published by h-a-n-a about 1 year ago
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v0.2.9...v0.2.10
Published by Boshen about 1 year ago
splitChunks.{cacheGroup}.idHint
by @hyf0 in https://github.com/web-infra-dev/rspack/pull/3783
cargo check
and cargo test
into two jobs by @Boshen in https://github.com/web-infra-dev/rspack/pull/3807
Full Changelog: https://github.com/web-infra-dev/rspack/compare/0.2.8...v0.2.9
Published by underfin over 1 year ago
Full Changelog: https://github.com/web-infra-dev/rspack/compare/0.2.7...0.2.8
Published by ahabhgk over 1 year ago
CodeGeneratableDependency
to DependencyTemplate
for more consistency by @hyf0 in https://github.com/web-infra-dev/rspack/pull/3751
Full Changelog: https://github.com/web-infra-dev/rspack/compare/0.2.6...0.2.7
Published by ahabhgk over 1 year ago
Rule.use
by @faga295 in https://github.com/web-infra-dev/rspack/pull/3621
min_size
of ModuleGroup
in the each end of round by @hyf0 in https://github.com/web-infra-dev/rspack/pull/3706
chunkhash
should be available in chunk context by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/3710
Full Changelog: https://github.com/web-infra-dev/rspack/compare/0.2.5...0.2.6
Published by jerrykingxyz over 1 year ago
Full Changelog: https://github.com/web-infra-dev/rspack/compare/0.2.4...0.2.5
Published by IWANABETHATGUY over 1 year ago
.cts
、.mts
and follows type: module
by @molvqingtai in https://github.com/web-infra-dev/rspack/pull/3222
Full Changelog: https://github.com/web-infra-dev/rspack/compare/0.2.3...0.2.4
Published by h-a-n-a over 1 year ago
splitChunks.{cacheGroup}.type
by @hyf0 in https://github.com/web-infra-dev/rspack/pull/3569
JsRegExp
to RspackRegex
by @hyf0 in https://github.com/web-infra-dev/rspack/pull/3574
last_module == selected_module
and align more with Webpack by @hyf0 in https://github.com/web-infra-dev/rspack/pull/3535
builtins.define
should not rely on GlobalPassOptions
by @Hamzakh777 in https://github.com/web-infra-dev/rspack/pull/3516
Full Changelog: https://github.com/web-infra-dev/rspack/compare/0.2.2...0.2.3
Published by Boshen over 1 year ago
buliltins.postcss
and deprecate buliltins.postcss
by @hyf0 in https://github.com/web-infra-dev/rspack/pull/3458
RegExp
to splitChunks.chunks
by @hyf0 in https://github.com/web-infra-dev/rspack/pull/3473
RegExp
by @hyf0 in https://github.com/web-infra-dev/rspack/pull/3495
[email protected]
to support node@^14.17
by @hyf0 in https://github.com/web-infra-dev/rspack/pull/3510
test/configCases/split-chunks
by @hyf0 in https://github.com/web-infra-dev/rspack/pull/3509
Full Changelog: https://github.com/web-infra-dev/rspack/compare/0.2.1...0.2.2
Published by underfin over 1 year ago
false
to splitChunks.{cacheGroup}.xxx
by @hyf0 in https://github.com/web-infra-dev/rspack/pull/3420
OptimizationSplitChunksOptions
for compatibility and enable validating for optimization by @hyf0 in https://github.com/web-infra-dev/rspack/pull/3435
runtimeChunk
by @hyf0 in https://github.com/web-infra-dev/rspack/pull/3442
Full Changelog: https://github.com/web-infra-dev/rspack/compare/0.2.0...0.2.1
Published by h-a-n-a over 1 year ago
Read the announcement blog post: Announcing Rspack 0.2.
Official vue-loader support 🎉
And also
depended_modules
function in code splitter by @Boshen in https://github.com/web-infra-dev/rspack/pull/2294
clone
while matching import.meta.webpackHot
by @hyf0 in https://github.com/web-infra-dev/rspack/pull/2857
ReactRefreshUsageFinder
by @hyf0 in https://github.com/web-infra-dev/rspack/pull/2875
ImportMetaPlugin
of Webpack by @underfin in https://github.com/web-infra-dev/rspack/pull/2684
builtins.html
should inject <script src="xxxx.js" />
in <head />
by @suxin2017 in https://github.com/web-infra-dev/rspack/pull/2770
loader-runner
for preparing to support vue-loader
and pitching loader
by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/2789
import(/* webpackChunkName: "/dist/d/js_d" */ "./d")
by @suxin2017 in https://github.com/web-infra-dev/rspack/pull/2812
experiments.outputModule
by @underfin in https://github.com/web-infra-dev/rspack/pull/2803
npx rspack preview
by @faga295 in https://github.com/web-infra-dev/rspack/pull/2434
BannerPlugin
by @9aoy in https://github.com/web-infra-dev/rspack/pull/2819
optimizeModules
hook by @nieyuyao in https://github.com/web-infra-dev/rspack/pull/2758
Rule.enforce
by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/2862
externals
by @underfin in https://github.com/web-infra-dev/rspack/pull/2866
LoaderDefinition
by @Asuka109 in https://github.com/web-infra-dev/rspack/pull/2908
noEmitAssets: true
by @hyf0 in https://github.com/web-infra-dev/rspack/pull/2907
splitChunks.minSize
by @hyf0 in https://github.com/web-infra-dev/rspack/pull/2954
x clean
command by @Boshen in https://github.com/web-infra-dev/rspack/pull/2980
reuseExistingChunk
by @hyf0 in https://github.com/web-infra-dev/rspack/pull/3000
splitChunks.{cacheGroup}.minSize
by @hyf0 in https://github.com/web-infra-dev/rspack/pull/3015
splitChunks.name
by @hyf0 in https://github.com/web-infra-dev/rspack/pull/2955
false
to splitChunks.name
and splitChunks.{cacheGroup}.name
by @hyf0 in https://github.com/web-infra-dev/rspack/pull/3029
optimization.removeEmptyChunks
config by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/3076
Chunk#id_name_hints
and generate more stable chunk id by @hyf0 in https://github.com/web-infra-dev/rspack/pull/3043
splitChunks.{cacheGroup}.enforce
by @hyf0 in https://github.com/web-infra-dev/rspack/pull/3086
Rule.loader
and Rule.options
by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/3246
SplitChunksPlugin
by default by @hyf0 in https://github.com/web-infra-dev/rspack/pull/3295
module.exports
to prevent unexpected/potential TDZ error by @hyf0 in https://github.com/web-infra-dev/rspack/pull/2714
name_for_condition
in BoxModule by @hyf0 in https://github.com/web-infra-dev/rspack/pull/2778
import( /* webpackChunkName: "/user/[id]/page" */ './foo')
containing [id]
by @GiveMe-A-Name in https://github.com/web-infra-dev/rspack/pull/2835
.d.ts
from the default resolve.extensions
by @lippzhang in https://github.com/web-infra-dev/rspack/pull/2861
newSplitChunks
in schema.js by @hyf0 in https://github.com/web-infra-dev/rspack/pull/2934
is_founded
in ReactRefreshUsage
by @underfin in https://github.com/web-infra-dev/rspack/pull/2939
noEmitAssets
by @faga295 in https://github.com/web-infra-dev/rspack/pull/2942
./xxx/xx.js
) failed by @hardfist in https://github.com/web-infra-dev/rspack/pull/3014
reuseExistingChunk
if name is specified for CacheGroup
by @hyf0 in https://github.com/web-infra-dev/rspack/pull/3045
source
could be unavailable if asset was deleted by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/3250
Rule.options
and Rule.loader
by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/3296
["jam", "main"]
from mainFields by @Boshen in https://github.com/web-infra-dev/rspack/pull/3334
unwrap_or_else
by @tuchg in https://github.com/web-infra-dev/rspack/pull/2167
test.config.js
by @tuchg in https://github.com/web-infra-dev/rspack/pull/2234
__filename
polyfill by @bvanjoi in https://github.com/web-infra-dev/rspack/pull/2342
new URL("./foo", import.meta.url)
by @magic-akari in https://github.com/web-infra-dev/rspack/pull/2340
Callback
by @bvanjoi in https://github.com/web-infra-dev/rspack/pull/2494
util
for compiler.webpack by @IWANABETHATGUY in https://github.com/web-infra-dev/rspack/pull/2548
target: 'node'
by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/2535
rspack build --json stats.json
by @hardfist in https://github.com/web-infra-dev/rspack/pull/2557
MAX_MODULES_PER_CHUNK
and add MAX_SIZE_PER_CHUNK
condition by @hyf0 in https://github.com/web-infra-dev/rspack/pull/2578
builtins.html
by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/2589
React.createContext
is not considered as React component by @underfin in https://github.com/web-infra-dev/rspack/pull/2587
devFriendlySplitChunks: true
by @hyf0 in https://github.com/web-infra-dev/rspack/pull/2651
import(/* webpackChunkName: "d" */ "./d")
by @hyf0 in https://github.com/web-infra-dev/rspack/pull/2686
zx
in setup script by @hyf0 in https://github.com/web-infra-dev/rspack/pull/2756
zx
to replace xtask by @hyf0 in https://github.com/web-infra-dev/rspack/pull/2840
crates/rspack_plugin_javascript/src/visitors/dependency/util.rs
by @hyf0 in https://github.com/web-infra-dev/rspack/pull/2865
starts_with
with the same semantics by @hyf0 in https://github.com/web-infra-dev/rspack/pull/2872
check_changeset.cjs
ESM and use ZX by @hyf0 in https://github.com/web-infra-dev/rspack/pull/2878
check_changeset.js
by @hyf0 in https://github.com/web-infra-dev/rspack/pull/2880
make-threejs10x.js
script by @hyf0 in https://github.com/web-infra-dev/rspack/pull/2887
optimize_chunks
hook by @hyf0 in https://github.com/web-infra-dev/rspack/pull/2958
prepare_module_group_map
by @hyf0 in https://github.com/web-infra-dev/rspack/pull/2975
ChunkGraph
into different files by @hyf0 in https://github.com/web-infra-dev/rspack/pull/3031
test/configCases/split-chunks-common
of Webpack by @hyf0 in https://github.com/web-infra-dev/rspack/pull/3018
RspackRegex
by @hyf0 in https://github.com/web-infra-dev/rspack/pull/3040
cargo-machete
by @Boshen in https://github.com/web-infra-dev/rspack/pull/3106
Module
for Box<dyn Module>
in codebase by @sladyn98 in https://github.com/web-infra-dev/rspack/pull/2831
webpack
to 5.76.0
by @GarrisonD in https://github.com/web-infra-dev/rspack/pull/3156
x ready
command for running everything by @Boshen in https://github.com/web-infra-dev/rspack/pull/3230
test
option from reusable-build by @Boshen in https://github.com/web-infra-dev/rspack/pull/3245
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v0.1.0...0.2.0
Published by jerrykingxyz over 1 year ago
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.
resolve.exportsFields
Support set exportsFields
in package.json that are used for resolving module requests
module.exports = {
//...
resolve: {
exportsFields: ['source', '...'],
},
};
you can use fork-ts-checker-webpack-plugin directly in rspack to typecheck your codebase.
import a from 'data:text/javascript,export default "a";';
expect(a).toBe("a");
Rule.loader
and Rule.options
by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/3246
source
could be unavailable if asset was deleted by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/3250
x ready
command for running everything by @Boshen in https://github.com/web-infra-dev/rspack/pull/3230
test
option from reusable-build by @Boshen in https://github.com/web-infra-dev/rspack/pull/3245
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v0.1.11...v0.1.12
Published by h-a-n-a over 1 year ago
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.
optimization.removeEmptyChunks
Tells Rspack to detect and remove chunks which are empty. Setting optimization.removeEmptyChunks to false will disable this optimization.
splitChunks.{cacheGroup}.enforce
optimization.removeEmptyChunks
config by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/3076
Chunk#id_name_hints
and generate more stable chunk id by @hyf0 in https://github.com/web-infra-dev/rspack/pull/3043
splitChunks.{cacheGroup}.enforce
by @hyf0 in https://github.com/web-infra-dev/rspack/pull/3086
cargo-machete
by @Boshen in https://github.com/web-infra-dev/rspack/pull/3106
Module
for Box<dyn Module>
in codebase by @sladyn98 in https://github.com/web-infra-dev/rspack/pull/2831
webpack
to 5.76.0
by @GarrisonD in https://github.com/web-infra-dev/rspack/pull/3156
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v0.1.10...v0.1.11
Published by IWANABETHATGUY over 1 year ago
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/
}
}
}
For more details you could refer https://webpack.js.org/api/loaders/#inline-matchresource
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
splitChunks.minSize
by @hyf0 in https://github.com/web-infra-dev/rspack/pull/2954
x clean
command by @Boshen in https://github.com/web-infra-dev/rspack/pull/2980
reuseExistingChunk
by @hyf0 in https://github.com/web-infra-dev/rspack/pull/3000
splitChunks.{cacheGroup}.minSize
by @hyf0 in https://github.com/web-infra-dev/rspack/pull/3015
splitChunks.name
by @hyf0 in https://github.com/web-infra-dev/rspack/pull/2955
false
to splitChunks.name
and splitChunks.{cacheGroup}.name
by @hyf0 in https://github.com/web-infra-dev/rspack/pull/3029
newSplitChunks
in schema.js by @hyf0 in https://github.com/web-infra-dev/rspack/pull/2934
is_founded
in ReactRefreshUsage
by @underfin in https://github.com/web-infra-dev/rspack/pull/2939
noEmitAssets
by @faga295 in https://github.com/web-infra-dev/rspack/pull/2942
./xxx/xx.js
) failed by @hardfist in https://github.com/web-infra-dev/rspack/pull/3014
reuseExistingChunk
if name is specified for CacheGroup
by @hyf0 in https://github.com/web-infra-dev/rspack/pull/3045
optimize_chunks
hook by @hyf0 in https://github.com/web-infra-dev/rspack/pull/2958
prepare_module_group_map
by @hyf0 in https://github.com/web-infra-dev/rspack/pull/2975
ChunkGraph
into different files by @hyf0 in https://github.com/web-infra-dev/rspack/pull/3031
test/configCases/split-chunks-common
of Webpack by @hyf0 in https://github.com/web-infra-dev/rspack/pull/3018
RspackRegex
by @hyf0 in https://github.com/web-infra-dev/rspack/pull/3040
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v0.1.9...v0.1.10
Published by hyf0 over 1 year ago
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.
// 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")
module.exports = function() {}
module.exports.pitch = function (remainingRequest, previousRequest, data) {
if (someCondition) {
return `require("!!${remainingRequest}")`
}
};
clone
while matching import.meta.webpackHot
by @hyf0 in https://github.com/web-infra-dev/rspack/pull/2857
ReactRefreshUsageFinder
by @hyf0 in https://github.com/web-infra-dev/rspack/pull/2875
loader-runner
for preparing to support vue-loader
and pitching loader
by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/2789
import(/* webpackChunkName: "/dist/d/js_d" */ "./d")
by @suxin2017 in https://github.com/web-infra-dev/rspack/pull/2812
experiments.outputModule
by @underfin in https://github.com/web-infra-dev/rspack/pull/2803
npx rspack preview
by @faga295 in https://github.com/web-infra-dev/rspack/pull/2434
BannerPlugin
by @9aoy in https://github.com/web-infra-dev/rspack/pull/2819
optimizeModules
hook by @nieyuyao in https://github.com/web-infra-dev/rspack/pull/2758
Rule.enforce
by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/2862
externals
by @underfin in https://github.com/web-infra-dev/rspack/pull/2866
LoaderDefinition
by @Asuka109 in https://github.com/web-infra-dev/rspack/pull/2908
noEmitAssets: true
by @hyf0 in https://github.com/web-infra-dev/rspack/pull/2907
import( /* webpackChunkName: "/user/[id]/page" */ './foo')
containing [id]
by @GiveMe-A-Name in https://github.com/web-infra-dev/rspack/pull/2835
.d.ts
from the default resolve.extensions
by @lippzhang in https://github.com/web-infra-dev/rspack/pull/2861
zx
to replace xtask by @hyf0 in https://github.com/web-infra-dev/rspack/pull/2840
crates/rspack_plugin_javascript/src/visitors/dependency/util.rs
by @hyf0 in https://github.com/web-infra-dev/rspack/pull/2865
starts_with
with the same semantics by @hyf0 in https://github.com/web-infra-dev/rspack/pull/2872
check_changeset.cjs
ESM and use ZX by @hyf0 in https://github.com/web-infra-dev/rspack/pull/2878
check_changeset.js
by @hyf0 in https://github.com/web-infra-dev/rspack/pull/2880
make-threejs10x.js
script by @hyf0 in https://github.com/web-infra-dev/rspack/pull/2887
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v0.1.8...v0.1.9
Published by ahabhgk over 1 year ago
npm i -D @rspack/cli@nightly
depended_modules
function in code splitter by @Boshen in https://github.com/web-infra-dev/rspack/pull/2294
ImportMetaPlugin
of Webpack by @underfin in https://github.com/web-infra-dev/rspack/pull/2684
builtins.html
should inject <script src="xxxx.js" />
in <head />
by @suxin2017 in https://github.com/web-infra-dev/rspack/pull/2770
module.exports
to prevent unexpected/potential TDZ error by @hyf0 in https://github.com/web-infra-dev/rspack/pull/2714
name_for_condition
in BoxModule by @hyf0 in https://github.com/web-infra-dev/rspack/pull/2778
zx
in setup script by @hyf0 in https://github.com/web-infra-dev/rspack/pull/2756
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v0.1.7...v0.1.8
Published by jerrykingxyz over 1 year ago
There are some enhancements/fixes
output.clean
by @suxin2017 in https://github.com/web-infra-dev/rspack/pull/2659.output.chunkLoadingGlobal
by @9aoy in https://github.com/web-infra-dev/rspack/pull/2679.import(/* webpackChunkName: "d" */ "./d")
by @hyf0 in https://github.com/web-infra-dev/rspack/pull/2686
builtins.html
by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/2589
React.createContext
is not considered as React component by @underfin in https://github.com/web-infra-dev/rspack/pull/2587
devFriendlySplitChunks: true
by @hyf0 in https://github.com/web-infra-dev/rspack/pull/2651
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v0.1.6...v0.1.7
Published by IWANABETHATGUY over 1 year ago
MAX_MODULES_PER_CHUNK
and add MAX_SIZE_PER_CHUNK
condition by @hyf0 in https://github.com/web-infra-dev/rspack/pull/2578
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v0.1.5...v0.1.6