Skip to content

Commit 5303bcf

Browse files
committed
chore: bump rolldown
1 parent 65d9acc commit 5303bcf

File tree

7 files changed

+62
-59
lines changed

7 files changed

+62
-59
lines changed

Diff for: packages/vite/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
"dependencies": {
8989
"esbuild": "^0.24.0",
9090
"postcss": "^8.4.48",
91-
"rolldown": "https://pkg.pr.new/rolldown@3d47bd0",
91+
"rolldown": "https://pkg.pr.new/rolldown@e2c4e6a",
9292
"rollup": "^4.23.0"
9393
},
9494
"optionalDependencies": {

Diff for: packages/vite/src/node/plugins/assetImportMetaUrl.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,8 @@ export function assetImportMetaUrlPlugin(
163163
s.update(
164164
startIndex,
165165
endIndex,
166-
`new URL(${JSON.stringify(builtUrl)}, import.meta.url)`,
166+
// NOTE: add `'' +` to opt-out rolldown's transform: https://github.com/rolldown/rolldown/issues/2745
167+
`new URL(${JSON.stringify(builtUrl)}, '' + import.meta.url)`,
167168
)
168169
}
169170
if (s) {

Diff for: packages/vite/src/node/plugins/workerImportMetaUrl.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,8 @@ export function workerImportMetaUrlPlugin(
198198
s.update(
199199
expStart,
200200
expEnd,
201-
`new URL(/* @vite-ignore */ ${JSON.stringify(builtUrl)}, import.meta.url)`,
201+
// NOTE: add `'' +` to opt-out rolldown's transform: https://github.com/rolldown/rolldown/issues/2745
202+
`new URL(/* @vite-ignore */ ${JSON.stringify(builtUrl)}, '' + import.meta.url)`,
202203
)
203204
}
204205
}

Diff for: playground/assets/index.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -566,9 +566,10 @@ <h3>assets in template</h3>
566566
import someString from './static/foo.txt?raw'
567567
document.querySelector('.raw-query').textContent = someString
568568

569+
// NOTE: add `'' +` to opt-out rolldown's transform: https://github.com/rolldown/rolldown/issues/2745
569570
const metaUrlNonExistent = new URL(
570571
/* @vite-ignore */ 'non-existent',
571-
import.meta.url,
572+
'' + import.meta.url,
572573
).pathname
573574
text('.non-existent-import-meta-url', metaUrlNonExistent)
574575

Diff for: playground/optimize-deps/dep-incompatible/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
const subUrl = new URL('./sub.js', import.meta.url)
1+
const target = './sub.js'
2+
const subUrl = new URL(target, import.meta.url)
23

34
export default () => import(subUrl)

Diff for: pnpm-lock.yaml

+53-53
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: vitest.config.e2e.ts

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ export default defineConfig({
1818
...(isBuild
1919
? [
2020
'./playground/environment-react-ssr/**/*.spec.[tj]s', // needs investigation
21-
'./playground/dynamic-import/**/*.spec.[tj]s', // https://github.com/rolldown/rolldown/issues/1843
2221
'./playground/external/**/*.spec.[tj]s', // https://github.com/rolldown/rolldown/issues/2041
2322
'./playground/object-hooks/**/*.spec.[tj]s', // object hook sequential
2423
'./playground/optimize-deps/**/*.spec.[tj]s', // https://github.com/rolldown/rolldown/issues/2031

0 commit comments

Comments
 (0)