rspack
rspack copied to clipboard
feat(asset): add importMode: "newURL"
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).
Deploy Preview for rspack ready!
| Name | Link |
|---|---|
| Latest commit | e33eaeaf11a6ffb2958ce84b6100ae37a024b202 |
| 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...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify project configuration.
📦 Binary Size-limit
Comparing
e33eaeato fix: correct infrastructureLog type and add documentation (#11742) by neverland
❌ Size increased by 1.00KB from 47.43MB to 47.43MB (⬆️0.00%)
CodSpeed Performance Report
Merging #11725 will not alter performance
Comparing syt/asset-new-url (e33eaea) with main (786ffea)
:tada: 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 :partying_face:! Curious about what's new? Visit our releases page to delve into all the awesome details about this new version.
Summary
✅ 17 untouched