Skip to content

Commit a49b5c5

Browse files
committed
chore: bump rolldown
1 parent ece8134 commit a49b5c5

File tree

4 files changed

+69
-73
lines changed

4 files changed

+69
-73
lines changed

packages/vite/package.json

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

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -642,11 +642,7 @@ export function cssPostPlugin(config: ResolvedConfig): RolldownPlugin {
642642
let chunkCSS = ''
643643
// the chunk is empty if it's a dynamic entry chunk that only contains a CSS import
644644
const isJsChunkEmpty = code === '' && !chunk.isEntry
645-
// NOTE: use this instead of "chunk.exports.length === 0" because of https://github.com/rolldown/rolldown/issues/2395
646-
let isPureCssChunk =
647-
opts.format === 'es'
648-
? !/export\s+/.test(code)
649-
: !/exports(?:\.\w|\[)/.test(code)
645+
let isPureCssChunk = chunk.exports.length === 0
650646
const ids = Object.keys(chunk.modules)
651647
for (const id of ids) {
652648
if (styles.has(id)) {

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

Lines changed: 1 addition & 1 deletion
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

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

0 commit comments

Comments
 (0)