Skip to content

Commit 5adb440

Browse files
committed
chore: bump rolldown
1 parent 326bcae commit 5adb440

File tree

5 files changed

+74
-54
lines changed

5 files changed

+74
-54
lines changed

packages/vite/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
"dependencies": {
8888
"esbuild": "^0.24.0",
8989
"postcss": "^8.4.47",
90-
"rolldown": "https://pkg.pr.new/rolldown@dab103f",
90+
"rolldown": "https://pkg.pr.new/rolldown@824315d",
9191
"rollup": "^4.20.0"
9292
},
9393
"optionalDependencies": {

packages/vite/src/node/build.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -646,6 +646,11 @@ export async function buildEnvironment(
646646
onwarn(warning, warn) {
647647
onRollupWarning(warning, warn, environment)
648648
},
649+
// TODO: remove this and enable rolldown's CSS support later
650+
moduleTypes: {
651+
...options.rollupOptions.moduleTypes,
652+
'.css': 'js',
653+
},
649654
}
650655

651656
/**

packages/vite/src/node/optimizer/index.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -781,6 +781,11 @@ async function prepareRolldownOptimizerRun(
781781
conditionNames: ['browser'],
782782
},
783783
...rollupOptions,
784+
// TODO: remove this and enable rolldown's CSS support later
785+
moduleTypes: {
786+
'.css': 'js',
787+
...rollupOptions.moduleTypes,
788+
},
784789
})
785790
if (canceled) {
786791
await bundle.close()
@@ -1062,6 +1067,11 @@ export async function extractExportsData(
10621067
...remainingRollupOptions,
10631068
plugins,
10641069
input: [filePath],
1070+
// TODO: remove this and enable rolldown's CSS support later
1071+
moduleTypes: {
1072+
'.css': 'js',
1073+
...remainingRollupOptions.moduleTypes,
1074+
},
10651075
})
10661076
const result = await build.generate({
10671077
...rollupOptions.output,

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@ async function bundleWorkerEntry(
8585
onwarn(warning, warn) {
8686
onRollupWarning(warning, warn, workerEnvironment)
8787
},
88+
// TODO: remove this and enable rolldown's CSS support later
89+
moduleTypes: {
90+
'.css': 'js',
91+
...rollupOptions.moduleTypes,
92+
},
8893
// preserveEntrySignatures: false,
8994
})
9095
let chunk: OutputChunk

pnpm-lock.yaml

Lines changed: 53 additions & 53 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)