Skip to content

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Oct 29, 2024

This PR contains the following updates:

Package Change Age Confidence
@rspack/cli (source) 0.3.6 -> 1.5.8 age confidence

Release Notes

web-infra-dev/rspack (@​rspack/cli)

v1.5.8

Compare Source

Highlights 💡

Enhanced Tree Shaking for Nested Exports in Destructuring

Rspack now supports more precise tree shaking for nested exports accessed through destructuring assignments.

// lib.js
export * as a from "./a";
export * as b from "./b";

// index.js
import * as lib from "./lib";
// Before: All exports under `lib.a` were retained, only `lib.b` was tree-shaken
// Now: Only the specific property `inner` from `lib.a` is kept; everything else is removed
const { a: { inner } } = lib;

What's Changed

Performance Improvements ⚡
New Features 🎉
Bug Fixes 🐞
Refactor 🔨
Document Updates 📖
Other Changes

New Contributors

Full Changelog: web-infra-dev/rspack@v1.5.7...v1.5.8

v1.5.7

Compare Source

Highlights 💡

Improved Tree Shaking for Dynamic Import .then()

This release enhances tree shaking capabilities specifically for the .then() callbacks of dynamic imports. Rspack can now statically analyze and eliminate unused exports when destructuring is performed on the resolved module within promise chains:

// Tree shaking now works for destructuring in .then() callbacks
import('./utils').then(module => {
  const { usedFunction } = module; // Only usedFunction will be included
  usedFunction();
  // unusedFunction will be tree-shaken out
});
JSX Preserve Support

Rspack now supports parsing and preserving JSX syntax. This allows JSX syntax to be parsed without transformation, making it compatible with external JSX transformers.

// rspack.config.js
export default {
  module: {
    parser: {
      javascript: {
        jsx: true // Enable JSX parsing
      }
    },
    rules: [
      {
        test: /\.jsx?$/,
        use: {
          loader: 'swc-loader',
          options: {
            jsc: {
              parser: { jsx: true },
              transform: {
                // Preserve JSX syntax
                react: { runtime: 'preserve' }
              }
            }
          }
        }
      }
    ]
  }
};

What's Changed

New Features 🎉
Bug Fixes 🐞
Document Updates 📖
Other Changes

Full Changelog: web-infra-dev/rspack@v1.5.6...v1.5.7

v1.5.6

Compare Source

What's Changed

Performance Improvements ⚡
New Features 🎉
Bug Fixes 🐞
Refactor 🔨
Document Updates 📖
Other Changes

New Contributors

Full Changelog: web-infra-dev/rspack@v1.5.5...v1.5.6

v1.5.5

Compare Source

What's Changed

Bug Fixes 🐞
Document Updates 📖
Other Changes

Full Changelog: web-infra-dev/rspack@v1.5.4...v1.5.5

v1.5.4

Compare Source

What's Changed

Performance Improvements ⚡
New Features 🎉
Bug Fixes 🐞
Refactor 🔨
Document Updates 📖
Other Changes

New Contributors

Full Changelog: web-infra-dev/rspack@v1.5.3...v1.5.4

v1.5.3

Compare Source

Highlights 💡

Advanced tree-shaking

Rspack v1.5.3 ships advanced tree-shaking for dynamic imports via member expression analysis.

Ongoing improvements are in progress, and upcoming releases will continue to improve static analysis to cover more syntax patterns, such as dynamic import with a subsequent .then().

image

What's Changed

Performance Improvements ⚡
New Features 🎉
Bug Fixes 🐞
Refactor 🔨
Document Updates 📖
Other Changes

New Contributors

Full Changelog: web-infra-dev/rspack@v1.5.2...v1.5.3

v1.5.2

Compare Source

What's Changed

Performance Improvements ⚡
New Features 🎉
Bug Fixes 🐞
Refactor 🔨
Document Updates 📖
Other Changes
  • chore(deps): update rust crate tracing-subscriber to v0.3.20 [security] by @​renovate[bot] in #​11542

Full Changelog: web-infra-dev/rspack@v1.5.1...v1.5.2

v1.5.1

Compare Source

What's Changed

Performance Improvements ⚡
Bug Fixes 🐞
Refactor 🔨
Document Updates 📖
Other Changes

Full Changelog: web-infra-dev/rspack@v1.5.0...v1.5.1

v1.5.0

Compare Source

rspack-banner-v1-5

🎉 See Announcing Rspack 1.5 for more details.

What's Changed

Breaking changes 💡
Performance Improvements ⚡
New Features 🎉
Bug Fixes 🐞

Configuration

📅 Schedule: Branch creation - "before 7am" in timezone Europe/Madrid, Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot enabled auto-merge (rebase) October 29, 2024 04:54
Copy link

relativeci bot commented Oct 29, 2024

#302 Bundle Size — 839B (-99.94%).

ee33ffe(current) vs 2b8b117 master#300(baseline)

Note

Bundle removed 3 duplicate packages – View changed duplicate packages

Bundle metrics  Change 10 changes Improvement 5 improvements
                 Current
#302
     Baseline
#300
Improvement  Initial JS 839B(-99.86%) 591.31KiB
Improvement  Initial CSS 0B(-100%) 539.71KiB
Change  Cache Invalidation 100% 0%
Change  Chunks 1(-87.5%) 8
Change  Assets 1(-90%) 10
Change  Modules 3(-99.82%) 1708
Improvement  Duplicate Modules 0(-100%) 4
Change  Duplicate Code 0%(-100%) 0.04%
Improvement  Packages 0(-100%) 119
Improvement  Duplicate Packages 0(-100%) 3
Bundle size by type  Change 4 changes Improvement 4 improvements
                 Current
#302
     Baseline
#300
Improvement  JS 839B (-99.89%) 763.58KiB
Improvement  CSS 0B (-100%) 539.86KiB
Improvement  IMG 0B (-100%) 2.7KiB
Improvement  HTML 0B (-100%) 294B

Bundle analysis reportBranch renovate-major-rspack-monorepoProject dashboard


Generated by RelativeCIDocumentationReport issue

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant