Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit cd9747f

Browse files
committedNov 13, 2024
chore: bump rolldown
1 parent c83da48 commit cd9747f

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.48",
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
@@ -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

+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)
Please sign in to comment.