npm @rspack/cli 1.0.0
v1.0.0

latest releases: 0.7.6-canary-fd6c40d-20240918093542, 1.0.5, 1.0.4...
22 days ago

image

See Announcing Rspack 1.0 for more details 🎉

What's Changed

Breaking Changes 🛠

  • fix: compilation errors and warnings should be RspackError by @h-a-n-a in #6900
  • feat: deprecate JavaScript API by @h-a-n-a in #6859
  • 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!: use swc_plugin_prefresh instead of builtin swc plugin by @LingyuCoder in #7069
  • feat!: detect conflicting values in DefinePlugin by @h-a-n-a in #7045
  • feat!: remove builtins.provide by @h-a-n-a in #7086
  • feat!: use native resolver in loader by @bvanjoi in #4945
  • fix!: correct names of hash fields in asset.info by @xc2 in #7220
  • feat(deps)!: updatewebpack-dev-server to v5 and no longer lock the versions by @SoonIter in #7130
  • fix!: remove @rspack/plugin-minify by @hardfist in #7307
  • feat!(crates): upgrade swc_core to 0.99.5 by @LingyuCoder in #7292
  • feat!: improve HtmlRspackPlugin by @LingyuCoder in #7577
  • refactor!: disable css minify in html minify and remove SwcCssMinimizerRspackPlugin by @ahabhgk in #7547
  • feat!: support optimization.emitOnErrors by @LingyuCoder in #7595
  • feat(core)!: change dojang default escape|unescape to lodash.template syntax by @hardfist in #7661

Performance Improvements ⚡

Exciting New Features 🎉

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!: align devtool default value by @SyMind in #6904
  • 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!: change default value of css to false, align with webpack by @JSerFeng in #6910
  • 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
  • fix(config): allow entry function to return promise by @chenjiahan in #6975
  • fix: use max_entrypoint_size in add_entrypoints_over_size_limit_warning by @escaton in #6923
  • fix: experiments css exports convention tree shaking by @ahabhgk in #6997
  • fix: align source name conflict handling by @CPunisher in #6993
  • fix: should not generate pure expression if test is failed by @h-a-n-a in #7014
  • fix: use lite-tapable for enhanced-resolve by @ahabhgk in #7021
  • fix: fix npm script in window by @daydayhappychao in #5164
  • fix: pnpm install failed in ci by @SyMind in #7036
  • fix: wrong cjs exports type caused unexpected exports presence by @ahabhgk in #7028
  • fix: add warning for context module flag g and y by @ahabhgk in #7044
  • fix: deduplicate extracted comments by @CPunisher in #7040
  • fix: detect magic comments around expr by @ahabhgk in #7047
  • fix: truncateArgs is not a function by @SyMind in #7052
  • fix(core): migrate to rspack_resolver by @hardfist in #7063
  • fix: zod is pre-bundled twice by @chenjiahan in #7064
  • fix: magic comment warning by @LingyuCoder in #7056
  • fix: revert detect statement level sequence expression by @ahabhgk in #7071
  • fix: Add missing code for compatibility plugin by @CPunisher in #7079
  • fix: panic when get max target in find target by @LingyuCoder in #7082
  • fix: support css nonce by @LingyuCoder in #7101
  • fix(mf): runtime should respect output environment by @ahabhgk in #7113
  • fix: should not shake used json fields by @JSerFeng in #7119
  • fix: remove all unused local variables by @chenjiahan in #7134
  • fix: unset cjs exports type on access exports directly by @ahabhgk in #7143
  • fix: avoid type error when skipLibCheck is not enabled by @CPunisher in #7155
  • fix: align resolverFactory resolveOptions parameter with resolve options by @9aoy in #7154
  • fix: invalid "javascript/auto" rule.type in getRawGeneratorOptions by @9aoy in #7164
  • fix: should merge parser.javascript by @ahabhgk in #7152
  • fix(cli): update peerDep of rspack-cli by @hardfist in #7173
  • fix(release): alpha peerDependencies in @rspack/cli by @SoonIter in #7175
  • fix: resource within scheme context by @ahabhgk in #7166
  • fix: eval condition expr range by @ahabhgk in #7184
  • fix: pattern with wildcard and globstar can't match correctly when using glob_match by @shulaoda in #6668
  • fix: update resource in nmf resolve hook by @ahabhgk in #7200
  • fix: panic in hmr cause by auxiliary_assets by @SyMind in #7197
  • fix: panic in ImportMetaContextDependency when resolve failed by @LingyuCoder in #7215
  • fix: get correct parent module for root module of concatenated module by @ahabhgk in #7212
  • fix: collect auxiliary assets from module by @LingyuCoder in #7222
  • fix: fix panic about runtime order by @xc2 in #7240
  • fix: real content full hash replacement by @LingyuCoder in #7271
  • fix(fs): remove generic in FileSystem trait by @hardfist in #7275
  • fix(panic): stable runtime key sequence by @LingyuCoder in #7272
  • fix: corrects result for truthy || any and falsy && any by @xc2 in #7277
  • fix: Update index.mdx by @lalala-h in #7283
  • fix: runtime condition optimization with concate module by @JSerFeng in #7285
  • fix: markdown format index.mdx by @lalala-h in #7310
  • fix: add await to async module export by @CPunisher in #7308
  • fix: lightningcss-loader targets array not work as expected by @chenjiahan in #7331
  • fix(rspack_plugin_asset): repect user environment config when inlining svg by @SoonIter in #7347
  • fix: rspack errors don't support the correct location by @shulaoda in #7328
  • fix: add runtime condition for harmony reexport checked by @ahabhgk in #7353
  • fix: remove nonsensical intersection types by @colinaaa in #7360
  • fix: builtin:lightningcss-loader shuold keep loader query by @JSerFeng in #7363
  • fix(modern-module): compat with more export cases by @fi3ework in #7394
  • fix: other git clean command wrong by @SyMind in #7404
  • fix: render filename with dollar sign by @JSerFeng in #7402
  • fix: stats perf degradation in hmr by @SyMind in #7407
  • fix(mf2): extra provide sharing data by @ahabhgk in #7408
  • fix: change some walk_block_statement to walk_statement by @CPunisher in #7410
  • fix(rspack_loader_lightningcss): customMedia camelCase option by @SoonIter in #7409
  • fix: add custom browserslist target schema by @CPunisher in #7421
  • fix: provided exports for add entry modules by @ahabhgk in #7424
  • fix(playground/cases): replace window.onmessage with self.onmessage in worker test case by @shulaoda in #7431
  • fix: remove unused JSON schemas for CSS extract plugin by @chenjiahan in #7442
  • fix: update deny.toml by @ahabhgk in #7447
  • fix: dynamic entry plugin desc to options by @ahabhgk in #7458
  • fix: map of empty file should have mappings field by @JSerFeng in #7456
  • fix: deep merge module resolve options by @ahabhgk in #7470
  • fix: stats typescript wrong by @SyMind in #7466
  • fix: type mismatch when using webpack plugins by @chenjiahan in #7455
  • fix: patch asset info in update asset by @ahabhgk in #7464
  • fix!: reuseExistingChunk should be false by default by @JSerFeng in #7489
  • fix(modern-module): export syntax detect more invalid chars by @fi3ework in #7493
  • fix: concatenation should merge module’s chunk init fragments by @fi3ework in #7504
  • fix(modern-module): correct use bailout reason by @fi3ework in #7513
  • fix: maxInitialRequests should exists in cache groups by @JSerFeng in #7512
  • fix(hmr): replacement of optionalChain is compatible with legacy versions by @wChenonly in #7510
  • fix: use intersection runtime for concat module code gen by @ahabhgk in #7523
  • fix: chunk hash unstable by @JSerFeng in #7534
  • fix: should insert semi after import, export, debugger and class field by @CPunisher in #7529
  • fix: check SuperProp in walk_call_expression by @CPunisher in #7530
  • fix: remove useless "module" external runtime by @fi3ework in #7533
  • fix(rust-core): no need to pass resolve_factory when using rust api by @hardfist in #7539
  • fix(cli): wrong entry defaults from cli by @xc2 in #7541
  • fix: source map plugin module should enable by default by @ahabhgk in #7545
  • fix: avoid inner graph top level symbol for nested webpack_require by @ahabhgk in #7584
  • fix(node-stuff): use more conventional shim method by @fi3ework in #7587
  • fix: missing compiler.inputFileSystem type by @chenjiahan in #7597
  • fix: should not panic if provide dependency is not resolved by @JSerFeng in #7609
  • fix: remove the unnecessary logic for inserting semicolons by @inottn in #7615
  • fix: allow null and undefined in EnvironmentPlugin by @colinaaa in #7617
  • fix: should not stringify loader loading requests by @h-a-n-a in #7643
  • fix(mf2): correct mf shared options by @2heal1 in #7640
  • fix: unexpected ASI generation with sequence expression by @h-a-n-a in #7650
  • fix: wrong builtin:swc-loader source maps if inputSourceMap is provided by @h-a-n-a in #7654
  • fix(html): emit error when param not found by @LingyuCoder in #7656
  • fix(mf2): initializeSharingInitTokens should be object by @2heal1 in #7657
  • fix: "module-import" simply falls back to "module" when bails by @fi3ework in #7585
  • fix: should resolve aliased loader module with query by @h-a-n-a in #7660
  • fix: Path pitfall for loader type by @h-a-n-a in #7666
  • fix(security): DOM clobbering in auto public path by @LingyuCoder in #7664
  • fix: resolve issue with external array not working in UMD libraryTarget by @inottn in #7675
  • fix(deps): bump webpack-dev-middleware v7.4.2 to fix assetsInfo by @chenjiahan in #7676
  • fix(create-rspack): should not replace plugin-react-refresh version by @chenjiahan in #7677
  • fix(cli): peerDep allows @rspack/core@1.0 by @hardfist in #7680
  • fix: reuse codegen results only for new incremental by @ahabhgk in #7681
  • fix: fallback to next main field when resolve failed by @LingyuCoder in #7670
  • fix: context should be an absolute path by @h-a-n-a in #7687
  • fix(core): don't panic when load config failed by @hardfist in #7693
  • fix(rspack-resolver): enable pnp feature by @fi3ework in #7707

Document Updates 📖

Other Changes

New Contributors

Full Changelog: v0.7.5...v1.0.0

Don't miss a new cli release

NewReleases is sending notifications on new releases.