Skip to content

chore: update dependency @rspack/core to v2#1799

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/major-rspack-monorepo
Open

chore: update dependency @rspack/core to v2#1799
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/major-rspack-monorepo

Conversation

@renovate

@renovate renovate Bot commented Apr 22, 2026

Copy link
Copy Markdown
Contributor

ℹ️ Note

This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Change Age Confidence
@rspack/core (source) 1.7.122.1.4 age confidence

Release Notes

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

v2.1.4

Compare Source

Highlights
Fine-grained import.meta parser options

module.parser.javascript.importMeta now accepts an object so each known import.meta property can be configured independently, on top of the existing true / false / 'preserve-unknown' values. Properties set to false are preserved for runtime evaluation, omitted properties keep their default behavior, and unknown properties are preserved. Both webpack-compatible keys (dirname, filename, main, url, webpack, webpackContext) and Rspack-specific keys (rspackHash, rspackPublicPath, glob, ...) are supported.

export default {
  module: {
    parser: {
      javascript: {
        importMeta: {
          // keep `import.meta.url` for runtime evaluation
          url: false,
          // keep the compile-time replacement of `import.meta.webpack`
          webpack: true,
        },
      },
    },
  },
};
Static worker URL output

module.parser.javascript.worker now accepts an object form with alias and url, alongside the existing boolean and string[] forms. With url: 'new-url-relative' and output.module enabled, Rspack emits a static new URL() expression for new Worker(new URL(..., import.meta.url)) instead of runtime code, honoring output.publicPath and output.workerPublicPath.

export default {
  output: {
    module: true,
    chunkFilename: '[name].bundle.js',
  },
  module: {
    parser: {
      javascript: {
        worker: {
          url: 'new-url-relative',
        },
      },
    },
  },
};
new Worker(new URL('./worker.js', import.meta.url));

// would become 👇
new Worker(new URL('./worker.bundle.js', import.meta.url));
What's Changed
New Features 🎉
Performance 🚀
Bug Fixes 🐞
Refactor 🔨
Other Changes
New Contributors

Full Changelog: web-infra-dev/rspack@v2.1.3...v2.1.4

v2.1.3

Compare Source

What's Changed

New Features 🎉
Performance 🚀
Bug Fixes 🐞
Refactor 🔨
Other Changes

Full Changelog: web-infra-dev/rspack@v2.1.2...v2.1.3

v2.1.2

Compare Source

What's Changed

Highlights 💡

Support import.meta style module variables

Rspack now exposes more module variables through import.meta, which aligns better with the ESM specification than CommonJS-style injected globals. When authoring ESM modules, import.meta is now the recommended way to access these runtime values.

The newly supported import.meta properties are:

New import.meta API Existing runtime variable
import.meta.rspackPublicPath __webpack_public_path__
import.meta.rspackBaseUri __webpack_base_uri__
import.meta.rspackShareScopes __webpack_share_scopes__
import.meta.rspackInitSharing __webpack_init_sharing__
import.meta.rspackNonce __webpack_nonce__
import.meta.rspackUniqueId __rspack_unique_id__
import.meta.rspackVersion __rspack_version__
import.meta.rspackHash __webpack_hash__
New Features 🎉
Performance 🚀
Bug Fixes 🐞
Document 📖
Other Changes

Full Changelog: web-infra-dev/rspack@v2.1.1...v2.1.2

v2.1.1

Compare Source

What's Changed

New Features 🎉
Performance 🚀
Bug Fixes 🐞
Other Changes

New Contributors

Full Changelog: web-infra-dev/rspack@v2.1.0...v2.1.1

v2.1.0

Compare Source

What's Changed
🎉 See Announcing Rspack 2.1 for more details.
New Features 🎉
Performance 🚀
Bug Fixes 🐞
Refactor 🔨
Document 📖
Other Changes

Note

PR body was truncated to here.


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, 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 requested a review from notaphplover as a code owner April 22, 2026 09:47
@changeset-bot

changeset-bot Bot commented Apr 22, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: e8b1616

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@renovate
renovate Bot force-pushed the renovate/major-rspack-monorepo branch 2 times, most recently from 4a2bae0 to acb66f9 Compare April 29, 2026 10:42
@renovate
renovate Bot force-pushed the renovate/major-rspack-monorepo branch 2 times, most recently from f7df3ff to 9caf8a4 Compare May 12, 2026 11:42
@renovate
renovate Bot force-pushed the renovate/major-rspack-monorepo branch 2 times, most recently from e4f1d65 to ecfa318 Compare May 20, 2026 15:44
@renovate
renovate Bot force-pushed the renovate/major-rspack-monorepo branch 3 times, most recently from 2d49441 to fa879df Compare June 1, 2026 18:45
@renovate renovate Bot changed the title chore: update dependency @rspack/core to v2 chore: update rspack monorepo to v2 Jun 2, 2026
@renovate
renovate Bot force-pushed the renovate/major-rspack-monorepo branch 2 times, most recently from 14d19fb to 3037475 Compare June 11, 2026 13:41
@renovate
renovate Bot force-pushed the renovate/major-rspack-monorepo branch from 3037475 to 7154185 Compare June 13, 2026 16:41
@renovate renovate Bot changed the title chore: update rspack monorepo to v2 chore: update rspack monorepo (major) Jun 22, 2026
@renovate renovate Bot changed the title chore: update rspack monorepo (major) chore: update dependency @rspack/core to v2 Jun 26, 2026
@renovate
renovate Bot force-pushed the renovate/major-rspack-monorepo branch 3 times, most recently from ce12300 to 8f5101c Compare July 3, 2026 10:00
@renovate
renovate Bot force-pushed the renovate/major-rspack-monorepo branch 3 times, most recently from e90c650 to d840167 Compare July 16, 2026 23:50
@renovate
renovate Bot force-pushed the renovate/major-rspack-monorepo branch from d840167 to e8b1616 Compare July 17, 2026 18:13
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.

0 participants