Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

SoonIter
Copy link
Member

@SoonIter SoonIter commented Sep 21, 2025

Summary

feat(asset): add importMode: "newURL"

input

// foo.png
import foo from './foo.png'
console.log(foo)

importMode: 'newUrl' output

const foo = /*#__PURE__*/  (() => new URL('./hash-foo.svg', import.meta.url).href)()

console.log(foo);
// foo.hash-foo.png

importMode: 'url' output

import foo from './foo.hash-foo.png'
console.log(foo)
// foo.hash-foo.png

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copy link

netlify bot commented Sep 21, 2025

Deploy Preview for rspack ready!

Name Link
🔨 Latest commit e33eaea
🔍 Latest deploy log https://app.netlify.com/projects/rspack/deploys/68d2cb177118dd000811810d
😎 Deploy Preview https://deploy-preview-11725--rspack.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions bot added team The issue/pr is created by the member of Rspack. release: feature release: feature related release(mr only) labels Sep 21, 2025
Copy link
Contributor

github-actions bot commented Sep 21, 2025

📦 Binary Size-limit

Comparing e33eaea to fix: correct infrastructureLog type and add documentation (#11742) by neverland

❌ Size increased by 1.00KB from 47.43MB to 47.43MB (⬆️0.00%)

Copy link

codspeed-hq bot commented Sep 21, 2025

CodSpeed Performance Report

Merging #11725 will not alter performance

Comparing syt/asset-new-url (e33eaea) with main (786ffea)

🎉 Hooray! codspeed-rust just leveled up to 2.7.2!

A heads-up, this is a breaking change and it might affect your current performance baseline a bit. But here's the exciting part - it's packed with new, cool features and promises improved result stability 🥳!
Curious about what's new? Visit our releases page to delve into all the awesome details about this new version.

Summary

✅ 17 untouched

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

Labels

release: feature release: feature related release(mr only) team The issue/pr is created by the member of Rspack.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.