Skip to content

Commit fa136a9

Browse files
shulaodasapphi-red
andauthored
feat: update rolldown to 1.0.0-rc.2 (vitejs#21512)
Co-authored-by: sapphi-red <49056869+sapphi-red@users.noreply.github.com>
1 parent b40292c commit fa136a9

File tree

10 files changed

+193
-196
lines changed

10 files changed

+193
-196
lines changed

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"@voidzero-dev/vitepress-theme": "^4.3.0",
1414
"feed": "^5.2.0",
1515
"markdown-it-image-size": "^15.0.1",
16-
"oxc-minify": "^0.110.0",
16+
"oxc-minify": "^0.111.0",
1717
"vitepress": "^2.0.0-alpha.15",
1818
"vitepress-plugin-group-icons": "^1.7.1",
1919
"vitepress-plugin-llms": "^1.10.0",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"picocolors": "^1.1.1",
6565
"playwright-chromium": "^1.58.0",
6666
"prettier": "3.8.1",
67-
"rolldown": "1.0.0-rc.1",
67+
"rolldown": "1.0.0-rc.2",
6868
"rollup": "^4.43.0",
6969
"simple-git-hooks": "^2.13.1",
7070
"tsx": "^4.21.0",

packages/vite/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,12 @@
7373
},
7474
"//": "READ CONTRIBUTING.md to understand what to put under deps vs. devDeps!",
7575
"dependencies": {
76-
"@oxc-project/runtime": "0.110.0",
76+
"@oxc-project/runtime": "0.111.0",
7777
"fdir": "^6.5.0",
7878
"lightningcss": "^1.31.1",
7979
"picomatch": "^4.0.3",
8080
"postcss": "^8.5.6",
81-
"rolldown": "1.0.0-rc.1",
81+
"rolldown": "1.0.0-rc.2",
8282
"tinyglobby": "^0.2.15"
8383
},
8484
"optionalDependencies": {
@@ -88,9 +88,9 @@
8888
"@babel/parser": "^7.28.6",
8989
"@jridgewell/remapping": "^2.3.5",
9090
"@jridgewell/trace-mapping": "^0.3.31",
91-
"@oxc-project/types": "0.110.0",
91+
"@oxc-project/types": "0.111.0",
9292
"@polka/compression": "^1.0.0-next.25",
93-
"@rolldown/pluginutils": "1.0.0-rc.1",
93+
"@rolldown/pluginutils": "1.0.0-rc.2",
9494
"@rollup/plugin-alias": "^5.1.1",
9595
"@rollup/plugin-commonjs": "^29.0.0",
9696
"@rollup/plugin-dynamic-import-vars": "2.1.4",
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1+
// Avoid to be inlined completely: https://github.com/rolldown/rolldown/issues/8100
2+
console.log()
3+
14
export default 'ok'
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1+
// Avoid to be inlined completely: https://github.com/rolldown/rolldown/issues/8100
2+
console.log()
3+
14
export default 'ok'

packages/vite/src/node/plugins/dynamicImportVars.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -184,12 +184,7 @@ export function dynamicImportVarsPlugin(config: ResolvedConfig): Plugin {
184184
resolver(id, importer) {
185185
return resolve(environment, id, importer)
186186
},
187-
isV2:
188-
config.nativePluginEnabledLevel >= 2
189-
? {
190-
sourcemap: !!environment.config.build.sourcemap,
191-
}
192-
: undefined,
187+
sourcemap: !!environment.config.build.sourcemap,
193188
})
194189
})
195190
}

packages/vite/src/node/plugins/importMetaGlob.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,8 @@ export function importGlobPlugin(config: ResolvedConfig): Plugin {
4545
if (config.isBundled && config.nativePluginEnabledLevel >= 1) {
4646
return nativeImportGlobPlugin({
4747
root: config.root,
48+
sourcemap: !!config.build.sourcemap,
4849
restoreQueryExtension: config.experimental.importGlobRestoreExtension,
49-
isV2:
50-
config.nativePluginEnabledLevel >= 2
51-
? {
52-
sourcemap: !!config.build.sourcemap,
53-
}
54-
: undefined,
5550
})
5651
}
5752

packages/vite/src/node/plugins/oxc.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -650,6 +650,7 @@ async function generateRuntimeHelpers(
650650
const output = await bundle.generate({
651651
format: 'cjs',
652652
minify: true,
653+
generatedCode: { symbols: false },
653654
})
654655
const outputCode = output.output[0].code
655656
const exportNames = [...outputCode.matchAll(cjsExportRE)].map((m) => m[1])

playground/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
"convert-source-map": "^2.0.0",
1111
"css-color-names": "^1.0.1",
1212
"kill-port": "^1.6.1",
13-
"rolldown": "1.0.0-rc.1"
13+
"rolldown": "1.0.0-rc.2"
1414
}
1515
}

0 commit comments

Comments
 (0)