Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
See Announcing Rspack 1.3 for more details.
What's Changed
New Features 🎉
context.action
property by @chenjiahan in feat: exposecontext.action
property #4831process.env
by @chenjiahan in feat(security): add warnings for definingprocess.env
#4835includeCSS
option type and JSDoc by @chenjiahan in feat(plugin-stylus): addincludeCSS
option type and JSDoc #4862import.meta.env
by @chenjiahan in feat(types): declare existing properties ofimport.meta.env
#4871Bug Fixes 🐞
buildCache.cacheDirectory
config not work by @Shucei in fix(cache):buildCache.cacheDirectory
config not work #4790define
option type by @chenjiahan in fix(plugin-stylus):define
option type #4861server.cors
object type by @chenjiahan in fix(types): missingserver.cors
object type #4877server.cors
option by @chenjiahan in fix(server)!: should respect the value of theserver.cors
option #4876server.headers
to overrideserver.cors
by @chenjiahan in fix(server): allowserver.headers
to overrideserver.cors
#4898Document 📖
loadEnv
option increateRsbuild
method by @chenjiahan in docs: addloadEnv
option increateRsbuild
method #4800getPlugins
can acceptenvironment
option by @chenjiahan in docs:getPlugins
can acceptenvironment
option #4804pluginReact
is also needed when usingpluginSvgr
by @9aoy in docs:pluginReact
is also needed when usingpluginSvgr
#4857server.headers
type by @chenjiahan in docs: correctserver.headers
type #4895Other Changes
buildCache.cacheDirectory
by @chenjiahan in test(e2e): add cases forbuildCache.cacheDirectory
#4791New Contributors
buildCache.cacheDirectory
config not work #4790Full Changelog: v1.2.19...v1.3.0