v1.0.0-alpha.0
chenjiahan
released this
28 Jun 10:41
·
1080 commits
to main
since this release
What's Changed
See π Announcing Rspack v1.0 Alpha for more details
Breaking Changes π
- fix!: change default value of css to false, align with webpack by @JSerFeng in #6910
- feat!: enable lightning css minimizer as default css minimizer by @ahabhgk in #6960
- feat: deprecate JavaScript API (part 2) by @h-a-n-a in #6859
- fix: compilation errors and warnings should be
RspackError
by @h-a-n-a in #6900 - feat: upgrade swc to latest version by @hardfist in #6887
- refactor: remove profile integration timestamp by @LingyuCoder in #6947
- feat: remove fields of
SwcJsMinimizerRspackPluginOptions
by @h-a-n-a in #6950 - fix!: align optimization.moduleIds and optimization.chunkIds when mode=none by @LingyuCoder in #6956
- feat!: remove output.amdContainer from config by @fi3ework in #6958
- feat!: revert default values of SwcJsMinimizer by @h-a-n-a in #6970
- fix!: set default value of concatenateModules to true in production mode by @JSerFeng in #6959
- refactor!: remove resolve tsConfigPath by @ahabhgk in #6872
- fix!: align devtool default value by @SyMind in #6904
Performance Improvements β‘
Exciting New Features π
- feat(napi): support js chunk hash hook by @ahabhgk in #6853
- feat(napi): compilation chunk hash hook by @ahabhgk in #6858
- feat: root module is less prone to be wrapped in IIFE by @fi3ework in #6697
- feat: CopyRspackPlugin support function
to
option by @9aoy in #6866 - feat: remove styled-components, emotion and relay in builtin swc-loader by @h-a-n-a in #6862
- feat: align split-chunks stats by @SyMind in #6847
- feat: generating provenance statements by @chenjiahan in #6896
- feat: add
factoryMeta
toJsModule
and optimizeInnerGraphPlugin
for variable decl with iife by @CPunisher in #6888 - feat: simple custom worker syntax by @ahabhgk in #6899
- feat: add nwjs target to rspack config by @wxiaoyun in #6880
- feat: add build unique id for detecting by @LingyuCoder in #6865
- feat: encode filename in EvalDevToolModulePlugin by @SyMind in #6903
- feat: add stats.module.dependent by @LingyuCoder in #6913
- feat(cli): defineConfig support all types by @chenjiahan in #6911
- feat: add nwjs external preset by @wxiaoyun in #6907
- feat: custom worker syntax for worklet by @ahabhgk in #6916
- feat: support deep AST parsing in debug by @h-a-n-a in #6919
- feat: add idHints and hash of stats.chunk by @LingyuCoder in #6920
- feat: support nested webpack_exports by @ahabhgk in #6930
- feat: fully support EvalSourceMapDevToolPlugin by @SyMind in #6933
- feat: support use data uri with inline loaders by @h-a-n-a in #6939
- feat(create-rspack): improve the templates by @chenjiahan in #6940
- feat: add contextInfo on resolveData by @ahabhgk in #6948
- feat: align stats.assets[].info by @LingyuCoder in #6951
- feat: optimize filename function diagnostic by @h-a-n-a in #6953
- feat(cli): add --profile to enable stats module profile by @LingyuCoder in #6957
- feat: stats origin moduleid by @LingyuCoder in #6955
- feat: align stats chunk group by @LingyuCoder in #6961
Bug Fixes π
- fix: ci wrong in github runner by @SyMind in #6852
- fix: export default when environment supports const by @ahabhgk in #6861
- fix: pre walk class blocks by @ahabhgk in #6867
- fix: should not eval exports in harmony by @ahabhgk in #6883
- fix: clean up dependencies and types for emotion / relay by @chenjiahan in #6892
- fix: fix type of CssExtractRspackPluginOptions.{filename,chunkFilename} by @xc2 in #6882
- fix: missing bailout reason after introducing css extract plugin by @xc2 in #6875
- fix: sources in source map when use EvalSourceMapDevToolPlugin by @SyMind in #6901
- fix: CopyRspackPlugin transform option type by @9aoy in #6908
- fix: devtool plugin cache conflict !macos by @SyMind in #6912
- fix: fix release build by @h-a-n-a in #6921
- fix: use entrypoint.options.runtime as key for chunk_graph.runtime_ids map if possible by @escaton in #6928
- fix: context passed into the
ModuleFactory
is not correct by @h-a-n-a in #6946 - fix!: align webpack defaults by @SyMind in #6949
- fix: sources types by @SyMind in #6944
- fix: should not using single line match in data url regex by @JSerFeng in #6952
- fix: fix duplicated harmony exports with named exports and re-exports star by @h-a-n-a in #6962
Document Updates π
- docs: fixed typo on compatibility list header by @ebektasiadis in #6886
- docs: fix rspack exports in javascript-api.mdx by @sudoaugustin in #6889
- docs: fix rspack exports in zh javascript-api.mdx by @chenjiahan in #6893
- docs: explain
VariableInfo
by @bvanjoi in #6914 - docs: polish up guide docs by @fi3ework in #6922
- docs: review devtool and entry config docs by @Timeless0911 in #6917
- docs: improve webpack migration by @SyMind in #6918
- docs: fix license badge and add node badge by @chenjiahan in #6929
- docs(config): temporary fix for mdx display bug by @wxiaoyun in #6932
- docs: add stats data by @LingyuCoder in #6937
- docs: describe stats data structure with ts types by @LingyuCoder in #6941
- docs: polish up external config by @fi3ework in #6942
- docs(contributing): breaking change PR format by @chenjiahan in #6969
- docs: update assets URLs by @chenjiahan in #6972
- docs: upgrade latest discord invitation link by @SoonIter in #6977
- docs: use of nightly/canary version and install-rspack script by @SoonIter in #6974
Other Changes
- chore(deps): update crates (major) by @renovate in #6855
- chore: remove old tree shaking code by @ahabhgk in #6884
- refactor: worker parser plugin by @ahabhgk in #6881
- revert: chore(deps): update crates (major) (#6855) by @h-a-n-a in #6894
- test: fix using HotSnapshotProcessor in webpack by @colinaaa in #6885
- chore: refactor rspack_plugin_devtool by @SyMind in #6897
- chore: optimize profile dir creation by @xc2 in #6879
- chore(release): rename package canary name by @SoonIter in #6906
- chore: clean up unused dev dependencies by @chenjiahan in #6924
- chore: sanitize file paths by @h-a-n-a in #6931
- chore: remove unused benchcases folder by @chenjiahan in #6936
- refactor: improve code style in concate module by @JSerFeng in #6791
- chore(workflow): should allow alpha npm tag by @chenjiahan in #6976
- chore(workflow): fix permissions for prod release by @chenjiahan in #6979
New Contributors
- @ebektasiadis made their first contribution in #6886
- @sudoaugustin made their first contribution in #6889
- @escaton made their first contribution in #6928
Full Changelog: v0.7.5...v1.0.0-alpha.0