Skip to content

Commit 481c342

Browse files
committed
chore: bump rolldown
1 parent 3d8ada8 commit 481c342

File tree

4 files changed

+69
-73
lines changed

4 files changed

+69
-73
lines changed

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.47",
91-
"rolldown": "https://pkg.pr.new/rolldown@1fa5d4b",
91+
"rolldown": "https://pkg.pr.new/rolldown@dee08ac",
9292
"rollup": "^4.23.0"
9393
},
9494
"devDependencies": {

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

+1-5
Original file line numberDiff line numberDiff line change
@@ -631,11 +631,7 @@ export function cssPostPlugin(config: ResolvedConfig): RolldownPlugin {
631631
let chunkCSS = ''
632632
// the chunk is empty if it's a dynamic entry chunk that only contains a CSS import
633633
const isJsChunkEmpty = code === '' && !chunk.isEntry
634-
// NOTE: use this instead of "chunk.exports.length === 0" because of https://github.com/rolldown/rolldown/issues/2395
635-
let isPureCssChunk =
636-
opts.format === 'es'
637-
? !/export\s+/.test(code)
638-
: !/exports(?:\.\w|\[)/.test(code)
634+
let isPureCssChunk = chunk.exports.length === 0
639635
const ids = Object.keys(chunk.modules)
640636
for (const id of ids) {
641637
if (styles.has(id)) {

playground/tsconfig-json-load-error/__tests__/tsconfig-json-load-error.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
} from '~utils'
1212

1313
const unexpectedTokenSyntaxErrorRE =
14-
/(\[vite:esbuild\] )*parsing .* failed: SyntaxError: Unexpected token.*\}.*/
14+
/(\[vite:esbuild\] )*parsing .* failed: SyntaxError: Unexpected token.*\}.*|Build failed/
1515

1616
describe.runIf(isBuild)('build', () => {
1717
test('should throw an error on build', () => {

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)