Skip to content

Commit 525c0b6

Browse files
committed
feat: upgrade rolldown to 1.0.0-beta.57
1 parent 450b069 commit 525c0b6

File tree

9 files changed

+417
-401
lines changed

9 files changed

+417
-401
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "tsdown",
33
"type": "module",
44
"version": "0.18.2",
5-
"packageManager": "pnpm@10.26.1",
5+
"packageManager": "pnpm@10.26.2",
66
"description": "The Elegant Bundler for Libraries",
77
"author": "Kevin Deng <sxzz@sxzz.moe>",
88
"license": "MIT",

pnpm-lock.yaml

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

pnpm-workspace.yaml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ packages:
33
- packages/*
44

55
overrides:
6+
'@docsearch/react': '-'
67
rolldown: catalog:prod
78
vite: catalog:docs
89

@@ -11,13 +12,13 @@ catalogs:
1112
'@clack/prompts': ^0.11.0
1213
giget: ^2.0.0
1314
dev:
14-
'@sxzz/eslint-config': ^7.4.3
15+
'@sxzz/eslint-config': ^7.4.4
1516
'@sxzz/prettier-config': ^2.2.6
1617
'@sxzz/test-utils': ^0.5.15
1718
'@types/node': ^25.0.3
1819
'@types/picomatch': ^4.0.2
1920
'@types/semver': ^7.7.1
20-
'@typescript/native-preview': 7.0.0-dev.20251221.1
21+
'@typescript/native-preview': 7.0.0-dev.20251223.1
2122
'@vitest/coverage-v8': 4.0.16
2223
'@vitest/ui': ^4.0.16
2324
bumpp: ^10.3.2
@@ -27,15 +28,15 @@ catalogs:
2728
memfs: ^4.51.1
2829
pkg-types: ^2.3.0
2930
prettier: ^3.7.4
30-
rolldown-plugin-dts-snapshot: ^0.2.0
31+
rolldown-plugin-dts-snapshot: ^0.3.0
3132
rolldown-plugin-require-cjs: ^0.3.3
3233
typescript: ~5.9.3
3334
vitest: ^4.0.16
3435
docs:
3536
'@shikijs/vitepress-twoslash': ^3.20.0
3637
'@unocss/eslint-plugin': ^66.5.10
3738
'@vueuse/core': ^14.1.0
38-
oxc-minify: ^0.104.0
39+
oxc-minify: ^0.105.0
3940
typedoc: ^0.28.15
4041
typedoc-plugin-markdown: ^4.9.0
4142
typedoc-vitepress-theme: ^1.1.2
@@ -45,7 +46,7 @@ catalogs:
4546
vitepress-plugin-group-icons: ^1.6.5
4647
vitepress-plugin-llms: ^1.9.3
4748
vue: ^3.5.26
48-
vue-tsc: ^3.2.0
49+
vue-tsc: ^3.2.1
4950
migrate:
5051
'@antfu/ni': ^28.0.0
5152
'@ast-grep/napi': ^0.40.3
@@ -55,7 +56,7 @@ catalogs:
5556
'@arethetypeswrong/core': ^0.18.2
5657
'@vitejs/devtools': ^0.0.0-alpha.20
5758
publint: ^0.3.16
58-
unplugin-lightningcss: ^0.4.3
59+
unplugin-lightningcss: ^0.4.4
5960
unplugin-unused: ^0.5.6
6061
prod:
6162
ansis: ^4.2.0
@@ -68,8 +69,8 @@ catalogs:
6869
obug: ^2.1.1
6970
package-manager-detector: ^1.6.0
7071
picomatch: ^4.0.3
71-
rolldown: 1.0.0-beta.55
72-
rolldown-plugin-dts: ^0.19.1
72+
rolldown: 1.0.0-beta.57
73+
rolldown-plugin-dts: ^0.20.0
7374
semver: ^7.7.3
7475
tinyexec: ^1.0.2
7576
tinyglobby: ^0.2.15

src/config/options.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ import {
1818
} from '../utils/general.ts'
1919
import { createLogger, generateColor, getNameLabel } from '../utils/logger.ts'
2020
import { normalizeFormat, readPackageJson } from '../utils/package.ts'
21-
import type { Awaitable } from '../utils/types.ts'
2221
import { loadViteConfig } from './file.ts'
22+
import type { Awaitable } from '../utils/types.ts'
2323
import type {
2424
CIOption,
2525
Format,

src/features/pkg/exports.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import path from 'node:path'
22
import process from 'node:process'
33
import { describe, test } from 'vitest'
4-
import type { RolldownChunk } from '../../utils/chunks.ts'
54
import { generateExports } from './exports.ts'
5+
import type { RolldownChunk } from '../../utils/chunks.ts'
66

77
const cwd = process.cwd()
88
const FAKE_PACKAGE_JSON = {

src/features/pkg/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { formatWithOptions } from 'node:util'
22
import { promiseWithResolvers } from '../../utils/general.ts'
3-
import type { ResolvedConfig } from '../../config/types.ts'
4-
import type { ChunksByFormat, TsdownBundle } from '../../utils/chunks.ts'
53
import { attw } from './attw.ts'
64
import { writeExports } from './exports.ts'
75
import { publint } from './publint.ts'
6+
import type { ResolvedConfig } from '../../config/types.ts'
7+
import type { ChunksByFormat, TsdownBundle } from '../../utils/chunks.ts'
88

99
export type BundleByPkg = Record<
1010
string, // pkgPath

src/features/rolldown.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,6 @@ import { mergeUserOptions } from '../config/options.ts'
1616
import { lowestCommonAncestor } from '../utils/fs.ts'
1717
import { importWithError } from '../utils/general.ts'
1818
import { LogLevels } from '../utils/logger.ts'
19-
import type {
20-
DtsOptions,
21-
NormalizedFormat,
22-
ResolvedConfig,
23-
TsdownBundle,
24-
} from '../config/index.ts'
2519
import { ExternalPlugin } from './external.ts'
2620
import { LightningCSSPlugin } from './lightningcss.ts'
2721
import { NodeProtocolPlugin } from './node-protocol.ts'
@@ -30,6 +24,12 @@ import { ReportPlugin } from './report.ts'
3024
import { ShebangPlugin } from './shebang.ts'
3125
import { getShimsInject } from './shims.ts'
3226
import { WatchPlugin } from './watch.ts'
27+
import type {
28+
DtsOptions,
29+
NormalizedFormat,
30+
ResolvedConfig,
31+
TsdownBundle,
32+
} from '../config/index.ts'
3333

3434
const debug = createDebug('tsdown:rolldown')
3535

tests/__snapshots__/import-meta-glob/eager.snap.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
```mjs
44
//#region rolldown:runtime
55
var __defProp = Object.defineProperty;
6-
var __export = (all, symbols) => {
6+
var __exportAll = (all, symbols) => {
77
let target = {};
88
for (var name in all) {
99
__defProp(target, name, {
@@ -19,12 +19,12 @@ var __export = (all, symbols) => {
1919

2020
//#endregion
2121
//#region modules/a.ts
22-
var a_exports = /* @__PURE__ */ __export({ a: () => a });
22+
var a_exports = /* @__PURE__ */ __exportAll({ a: () => a });
2323
const a = 1;
2424

2525
//#endregion
2626
//#region modules/b.ts
27-
var b_exports = /* @__PURE__ */ __export({ b: () => b });
27+
var b_exports = /* @__PURE__ */ __exportAll({ b: () => b });
2828
const b = 2;
2929

3030
//#endregion

tests/__snapshots__/issues/61.snap.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import * as debug from "debug";
55

66
//#region rolldown:runtime
77
var __defProp = Object.defineProperty;
8-
var __export = (all, symbols) => {
8+
var __exportAll = (all, symbols) => {
99
let target = {};
1010
for (var name in all) {
1111
__defProp(target, name, {
@@ -21,12 +21,12 @@ var __export = (all, symbols) => {
2121

2222
//#endregion
2323
//#region src/foo.ts
24-
var foo_exports = /* @__PURE__ */ __export({ foo: () => foo });
24+
var foo_exports = /* @__PURE__ */ __exportAll({ foo: () => foo });
2525
const foo = 1;
2626

2727
//#endregion
2828
//#region bar.ts
29-
var bar_exports = /* @__PURE__ */ __export({ bar: () => bar });
29+
var bar_exports = /* @__PURE__ */ __exportAll({ bar: () => bar });
3030
const bar = 2;
3131

3232
//#endregion

0 commit comments

Comments
 (0)