Skip to content

Commit 2fed74f

Browse files
committed
feat: update rolldown
1 parent 6058945 commit 2fed74f

File tree

7 files changed

+79
-76
lines changed

7 files changed

+79
-76
lines changed

packages/vite/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,12 @@
8585
},
8686
"//": "READ CONTRIBUTING.md to understand what to put under deps vs. devDeps!",
8787
"dependencies": {
88-
"@oxc-project/runtime": "0.67.0",
88+
"@oxc-project/runtime": "0.68.1",
8989
"fdir": "^6.4.4",
9090
"lightningcss": "^1.29.3",
9191
"picomatch": "^4.0.2",
9292
"postcss": "^8.5.3",
93-
"rolldown": "1.0.0-beta.8-commit.bc78fa1",
93+
"rolldown": "1.0.0-beta.8-commit.c76291c",
9494
"tinyglobby": "^0.2.13"
9595
},
9696
"optionalDependencies": {
@@ -100,7 +100,7 @@
100100
"@ampproject/remapping": "^2.3.0",
101101
"@babel/parser": "^7.27.0",
102102
"@jridgewell/trace-mapping": "^0.3.25",
103-
"@oxc-project/types": "0.67.0",
103+
"@oxc-project/types": "0.68.1",
104104
"@polka/compression": "^1.0.0-next.25",
105105
"@rollup/plugin-alias": "^5.1.1",
106106
"@rollup/plugin-commonjs": "^28.0.3",

packages/vite/src/node/__tests__/plugins/define.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ describe('definePlugin', () => {
6060
// assert that the default behavior is to replace import.meta.hot with undefined
6161
const transform = await createDefinePluginTransform()
6262
expect(await transform('const hot = import.meta.hot;')).toBe(
63-
'const hot = undefined;\n',
63+
'const hot = void 0;\n',
6464
)
6565
// assert that we can specify a user define to preserve import.meta.hot
6666
const overrideTransform = await createDefinePluginTransform({

playground/lib/__tests__/lib.spec.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ describe.runIf(isBuild)('build', () => {
2222
)
2323
const namedCode = readFile('dist/named/my-lib-named.umd.cjs')
2424
// esbuild helpers are injected inside of the UMD wrapper
25-
expect(code).toMatch(/^\(function\(/)
25+
expect(code).toMatch(/^\/\*[^*]*\*\/\s*\(function\(/)
2626
expect(noMinifyCode).toMatch(
2727
/^\/\*[^*]*\*\/\s*\(function\(global.+?"use strict";\s*var.+?function\smyLib\(/s,
2828
)
@@ -37,7 +37,9 @@ describe.runIf(isBuild)('build', () => {
3737
)
3838
const namedCode = readFile('dist/named/my-lib-named.iife.js')
3939
// esbuild helpers are injected inside of the IIFE wrapper
40-
expect(code).toMatch(/^var MyLib=function\(\)\{\s*"use strict";/)
40+
expect(code).toMatch(
41+
/^\/\*[^*]*\*\/\s*var MyLib=function\(\)\{\s*"use strict";/,
42+
)
4143
expect(noMinifyCode).toMatch(
4244
/^\/\*[^*]*\*\/\s*var MyLib\s*=\s*function\(\)\s*\{\s*"use strict";/,
4345
)

playground/minify/__tests__/minify.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ test.runIf(isBuild)('no minifySyntax', () => {
1313
const cssFile = files.find((f) => f.endsWith('.css'))
1414
const cssContent = readFile(path.resolve(assetsDir, cssFile))
1515

16-
expect(jsContent).toContain('console.log(`hello world`)')
16+
expect(jsContent).toContain('console.log("hello world")')
1717
expect(jsContent).not.toContain('/*! explicit comment */')
1818

1919
expect(cssContent).toContain('color:#ff0000')

playground/minify/vite.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export default defineConfig({
66
minifySyntax: false,
77
},
88
build: {
9+
minify: 'esbuild',
910
cssMinify: 'esbuild',
1011
},
1112
})

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-beta.8-commit.bc78fa1"
13+
"rolldown": "1.0.0-beta.8-commit.c76291c"
1414
}
1515
}

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)