diff --git a/packages/create-vite/package.json b/packages/create-vite/package.json index 2c4dbb4910df11..6594ff197b167b 100644 --- a/packages/create-vite/package.json +++ b/packages/create-vite/package.json @@ -38,6 +38,6 @@ "cross-spawn": "^7.0.6", "mri": "^1.2.0", "picocolors": "^1.1.1", - "tsdown": "^0.19.0" + "tsdown": "^0.20.1" } } diff --git a/packages/create-vite/tsdown.config.ts b/packages/create-vite/tsdown.config.ts index 0b27cc4c820d94..f927668b9b97b8 100644 --- a/packages/create-vite/tsdown.config.ts +++ b/packages/create-vite/tsdown.config.ts @@ -6,6 +6,7 @@ export default defineConfig(() => ({ entry: ['src/index.ts'], target: 'node20', minify: true, + inlineOnly: false as const, fixedExtension: false, plugins: [ licensePlugin( diff --git a/packages/plugin-legacy/package.json b/packages/plugin-legacy/package.json index bd5a8c4af3a19f..7937ab770e86bc 100644 --- a/packages/plugin-legacy/package.json +++ b/packages/plugin-legacy/package.json @@ -53,7 +53,7 @@ "devDependencies": { "acorn": "^8.15.0", "picocolors": "^1.1.1", - "tsdown": "^0.19.0", + "tsdown": "^0.20.1", "vite": "workspace:*" }, "compatiblePackages": { diff --git a/packages/plugin-legacy/tsdown.config.ts b/packages/plugin-legacy/tsdown.config.ts index bc187fcacc4b29..6a433c2c5c2d97 100644 --- a/packages/plugin-legacy/tsdown.config.ts +++ b/packages/plugin-legacy/tsdown.config.ts @@ -3,6 +3,7 @@ import { defineConfig } from 'tsdown' export default defineConfig({ entry: ['src/index.ts'], target: 'node20', + inlineOnly: ['picocolors'], tsconfig: false, // disable tsconfig `paths` when bundling dts: true, fixedExtension: false, diff --git a/packages/vite/package.json b/packages/vite/package.json index ada628488d1f94..62e08a0d617f8b 100644 --- a/packages/vite/package.json +++ b/packages/vite/package.json @@ -130,7 +130,7 @@ "postcss-modules": "^6.0.1", "premove": "^4.0.0", "resolve.exports": "^2.0.3", - "rolldown-plugin-dts": "^0.21.2", + "rolldown-plugin-dts": "^0.21.6", "rollup": "^4.43.0", "rollup-plugin-license": "^3.6.0", "sass": "^1.97.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 16cb50f75ae58e..1c5fd1b67b6d5c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -180,8 +180,8 @@ importers: specifier: ^1.1.1 version: 1.1.1 tsdown: - specifier: ^0.19.0 - version: 0.19.0(publint@0.3.12)(typescript@5.9.3)(vue-tsc@3.2.2(typescript@5.9.3)) + specifier: ^0.20.1 + version: 0.20.1(publint@0.3.12)(typescript@5.9.3)(vue-tsc@3.2.2(typescript@5.9.3)) packages/plugin-legacy: dependencies: @@ -229,8 +229,8 @@ importers: specifier: ^1.1.1 version: 1.1.1 tsdown: - specifier: ^0.19.0 - version: 0.19.0(publint@0.3.12)(typescript@5.9.3)(vue-tsc@3.2.2(typescript@5.9.3)) + specifier: ^0.20.1 + version: 0.20.1(publint@0.3.12)(typescript@5.9.3)(vue-tsc@3.2.2(typescript@5.9.3)) vite: specifier: workspace:* version: link:../vite @@ -395,8 +395,8 @@ importers: specifier: ^2.0.3 version: 2.0.3 rolldown-plugin-dts: - specifier: ^0.21.2 - version: 0.21.2(rolldown@1.0.0-rc.1)(typescript@5.9.3)(vue-tsc@3.2.2(typescript@5.9.3)) + specifier: ^0.21.6 + version: 0.21.6(rolldown@1.0.0-rc.1)(typescript@5.9.3)(vue-tsc@3.2.2(typescript@5.9.3)) rollup: specifier: ^4.43.0 version: 4.43.0 @@ -1786,6 +1786,10 @@ packages: resolution: {integrity: sha512-lOoVRwADj8hjf7al89tvQ2a1lf53Z+7tiXMgpZJL3maQPDxh0DgLMN62B2MKUOFcoodBHLMbDM6WAbKgNy5Suw==} engines: {node: '>=6.9.0'} + '@babel/generator@8.0.0-beta.4': + resolution: {integrity: sha512-5xRfRZk6wx1BRu2XnTE8cTh2mx1ixrZ3/vpn7p/RCJpgctL6pexVVHE3eqtwlYvHhPAuOYCAlnsAyXpBdmfh5Q==} + engines: {node: ^20.19.0 || >=22.12.0} + '@babel/helper-annotate-as-pure@7.27.3': resolution: {integrity: sha512-fXSwMQqitTGeHLBC08Eq5yXz2m37E4pJX1qAU1+2cNedz/ifv/bVXft90VeSav5nFO61EcNgwr0aJxbyPaWBPg==} engines: {node: '>=6.9.0'} @@ -1857,10 +1861,18 @@ packages: resolution: {integrity: sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==} engines: {node: '>=6.9.0'} + '@babel/helper-string-parser@8.0.0-beta.4': + resolution: {integrity: sha512-FGwbdQ/I2nJXXfyxa7dT0Fr/zPWwgX7m+hNVj0HrIHYJtyLxSQeQY1Kd8QkAYviQJV3OWFlRLuGd5epF03bdQg==} + engines: {node: ^20.19.0 || >=22.12.0} + '@babel/helper-validator-identifier@7.28.5': resolution: {integrity: sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==} engines: {node: '>=6.9.0'} + '@babel/helper-validator-identifier@8.0.0-beta.4': + resolution: {integrity: sha512-6t0IaUEzlinbLmsGIvBZIHEJGjuchx+cMj+FbS78zL17tucYervgbwO07V5/CgBenVraontpmyMCTVyqCfxhFQ==} + engines: {node: ^20.19.0 || >=22.12.0} + '@babel/helper-validator-option@7.27.1': resolution: {integrity: sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==} engines: {node: '>=6.9.0'} @@ -1878,6 +1890,11 @@ packages: engines: {node: '>=6.0.0'} hasBin: true + '@babel/parser@8.0.0-beta.4': + resolution: {integrity: sha512-fBcUqUN3eenLyg25QFkOwY1lmV6L0RdG92g6gxyS2CVCY8kHdibkQz1+zV3bLzxcvNnfHoi3i9n5Dci+g93acg==} + engines: {node: ^20.19.0 || >=22.12.0} + hasBin: true + '@babel/plugin-bugfix-firefox-class-in-computed-class-key@7.28.5': resolution: {integrity: sha512-87GDMS3tsmMSi/3bWOte1UblL+YUTFMV8SZPZ2eSEL17s74Cw/l63rR6NmGVKMYW2GYi85nE+/d6Hw5N0bEk2Q==} engines: {node: '>=6.9.0'} @@ -2265,6 +2282,10 @@ packages: resolution: {integrity: sha512-0ZrskXVEHSWIqZM/sQZ4EV3jZJXRkio/WCxaqKZP1g//CEWEPSfeZFcms4XeKBCHU0ZKnIkdJeU/kF+eRp5lBg==} engines: {node: '>=6.9.0'} + '@babel/types@8.0.0-beta.4': + resolution: {integrity: sha512-xjk2xqYp25ePzAs0I08hN2lrbUDDQFfCjwq6MIEa8HwHa0WK8NfNtdvtXod8Ku2CbE1iui7qwWojGvjQiyrQeA==} + engines: {node: ^20.19.0 || >=22.12.0} + '@bufbuild/protobuf@2.5.2': resolution: {integrity: sha512-foZ7qr0IsUBjzWIq+SuBLfdQCpJ1j8cTuNNT4owngTHoN5KsJb8L9t65fzz7SCeSWzescoOil/0ldqiL041ABg==} @@ -3628,6 +3649,9 @@ packages: '@types/http-errors@2.0.4': resolution: {integrity: sha512-D0CFMMtydbJAegzOyHjtiKPLlvnm3iTZyZRSZoLq2mRhDdmLfIWOCYPfQJ4cu2erKghU++QvjcUjp/5h7hESpA==} + '@types/jsesc@2.5.1': + resolution: {integrity: sha512-9VN+6yxLOPLOav+7PwjZbxiID2bVaeq0ED4qSQmdQTdjnXJSaCVKTR58t15oqH1H5t8Ng2ZX1SabJVoN9Q34bw==} + '@types/json-schema@7.0.15': resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==} @@ -4447,8 +4471,8 @@ packages: assert-never@1.4.0: resolution: {integrity: sha512-5oJg84os6NMQNl27T9LnZkvvqzvAnHu03ShCnoj6bsJwS7L8AO4lf+C/XjK/nvzEqQB744moC6V128RucQd1jA==} - ast-kit@2.2.0: - resolution: {integrity: sha512-m1Q/RaVOnTp9JxPX+F+Zn7IcLYMzM8kZofDImfsKZd8MbR+ikdOzTeztStWqfrqIxZnYWryyI9ePm3NGjnZgGw==} + ast-kit@3.0.0-beta.1: + resolution: {integrity: sha512-trmleAnZ2PxN/loHWVhhx1qeOHSRXq4TDsBBxq3GqeJitfk3+jTQ+v/C1km/KYq9M7wKqCewMh+/NAvVH7m+bw==} engines: {node: '>=20.19.0'} astring@1.9.0: @@ -6529,27 +6553,8 @@ packages: rfdc@1.4.1: resolution: {integrity: sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA==} - rolldown-plugin-dts@0.20.0: - resolution: {integrity: sha512-cLAY1kN2ilTYMfZcFlGWbXnu6Nb+8uwUBsi+Mjbh4uIx7IN8uMOmJ7RxrrRgPsO4H7eSz3E+JwGoL1gyugiyUA==} - engines: {node: '>=20.19.0'} - peerDependencies: - '@ts-macro/tsc': ^0.3.6 - '@typescript/native-preview': '>=7.0.0-dev.20250601.1' - rolldown: 1.0.0-rc.1 - typescript: ^5.0.0 - vue-tsc: ~3.2.0 - peerDependenciesMeta: - '@ts-macro/tsc': - optional: true - '@typescript/native-preview': - optional: true - typescript: - optional: true - vue-tsc: - optional: true - - rolldown-plugin-dts@0.21.2: - resolution: {integrity: sha512-yFOvVkkxmdGVBH4UwCu/ApQZQXI1kre+aQyOyrmDAwFfALRaX7JlEn+F3HDDj3hEFE/q3+kCSGYGxEZ8W5NsGg==} + rolldown-plugin-dts@0.21.6: + resolution: {integrity: sha512-gePhzvZJRB0JIb/NyngEsMt3FPQtM4BXCLkxz7u1ggge2PmlZ7uOwmHjeBEsBiBRjOY12SdtEl7BmI3T1779ZA==} engines: {node: '>=20.19.0'} peerDependencies: '@ts-macro/tsc': ^0.3.6 @@ -7115,8 +7120,8 @@ packages: typescript: optional: true - tsdown@0.19.0: - resolution: {integrity: sha512-uqg8yzlS7GemFWcM6aCp/sptF4bJiJbWUibuHTRLLCBEsGCgJxuqxPhuVTqyHXqoEkh9ohwAdlyDKli5MEWCyQ==} + tsdown@0.20.1: + resolution: {integrity: sha512-Wo1BzqNQVZ6SFQV8rjQBwMmNubO+yV3F+vp2WNTjEaS4S5CT1C1dHtUbeFMrCEasZpGy5w6TshpehNnfTe8QBQ==} engines: {node: '>=20.19.0'} hasBin: true peerDependencies: @@ -7250,8 +7255,8 @@ packages: unrs-resolver@1.9.2: resolution: {integrity: sha512-VUyWiTNQD7itdiMuJy+EuLEErLj3uwX/EpHQF8EOf33Dq3Ju6VW1GXm+swk6+1h7a49uv9fKZ+dft9jU7esdLA==} - unrun@0.2.24: - resolution: {integrity: sha512-xa4/O5q2jmI6EqxweJ+sOy5cyORZWcsgmi8pmABVSUyg24Fh44qJrneUHavZEMsbJbghHYWKSraFy5hDCb/m4w==} + unrun@0.2.26: + resolution: {integrity: sha512-A3DQLBcDyTui4Hlaoojkldg+8x+CIR+tcSHY0wzW+CgB4X/DNyH58jJpXp1B/EkE+yG6tU8iH1mWsLtwFU3IQg==} engines: {node: '>=20.19.0'} hasBin: true peerDependencies: @@ -7578,6 +7583,15 @@ snapshots: '@jridgewell/trace-mapping': 0.3.31 jsesc: 3.1.0 + '@babel/generator@8.0.0-beta.4': + dependencies: + '@babel/parser': 8.0.0-beta.4 + '@babel/types': 8.0.0-beta.4 + '@jridgewell/gen-mapping': 0.3.12 + '@jridgewell/trace-mapping': 0.3.31 + '@types/jsesc': 2.5.1 + jsesc: 3.1.0 + '@babel/helper-annotate-as-pure@7.27.3': dependencies: '@babel/types': 7.28.6 @@ -7679,8 +7693,12 @@ snapshots: '@babel/helper-string-parser@7.27.1': {} + '@babel/helper-string-parser@8.0.0-beta.4': {} + '@babel/helper-validator-identifier@7.28.5': {} + '@babel/helper-validator-identifier@8.0.0-beta.4': {} + '@babel/helper-validator-option@7.27.1': {} '@babel/helper-wrap-function@7.27.1(ms@2.1.3)': @@ -7700,6 +7718,10 @@ snapshots: dependencies: '@babel/types': 7.28.6 + '@babel/parser@8.0.0-beta.4': + dependencies: + '@babel/types': 8.0.0-beta.4 + '@babel/plugin-bugfix-firefox-class-in-computed-class-key@7.28.5(@babel/core@7.28.6(ms@2.1.3))(ms@2.1.3)': dependencies: '@babel/core': 7.28.6(ms@2.1.3) @@ -8196,6 +8218,11 @@ snapshots: '@babel/helper-string-parser': 7.27.1 '@babel/helper-validator-identifier': 7.28.5 + '@babel/types@8.0.0-beta.4': + dependencies: + '@babel/helper-string-parser': 8.0.0-beta.4 + '@babel/helper-validator-identifier': 8.0.0-beta.4 + '@bufbuild/protobuf@2.5.2': {} '@cacheable/memoize@2.0.3': @@ -9267,6 +9294,8 @@ snapshots: '@types/http-errors@2.0.4': {} + '@types/jsesc@2.5.1': {} + '@types/json-schema@7.0.15': {} '@types/less@3.0.8': {} @@ -10072,9 +10101,10 @@ snapshots: assert-never@1.4.0: {} - ast-kit@2.2.0: + ast-kit@3.0.0-beta.1: dependencies: - '@babel/parser': 7.28.6 + '@babel/parser': 8.0.0-beta.4 + estree-walker: 3.0.3 pathe: 2.0.3 astring@1.9.0: {} @@ -12335,29 +12365,12 @@ snapshots: rfdc@1.4.1: {} - rolldown-plugin-dts@0.20.0(rolldown@1.0.0-rc.1)(typescript@5.9.3)(vue-tsc@3.2.2(typescript@5.9.3)): - dependencies: - '@babel/generator': 7.28.6 - '@babel/parser': 7.28.6 - '@babel/types': 7.28.6 - ast-kit: 2.2.0 - birpc: 4.0.0 - dts-resolver: 2.1.3 - get-tsconfig: 4.13.0 - obug: 2.1.1 - rolldown: 1.0.0-rc.1 - optionalDependencies: - typescript: 5.9.3 - vue-tsc: 3.2.2(typescript@5.9.3) - transitivePeerDependencies: - - oxc-resolver - - rolldown-plugin-dts@0.21.2(rolldown@1.0.0-rc.1)(typescript@5.9.3)(vue-tsc@3.2.2(typescript@5.9.3)): + rolldown-plugin-dts@0.21.6(rolldown@1.0.0-rc.1)(typescript@5.9.3)(vue-tsc@3.2.2(typescript@5.9.3)): dependencies: - '@babel/generator': 7.28.6 - '@babel/parser': 7.28.6 - '@babel/types': 7.28.6 - ast-kit: 2.2.0 + '@babel/generator': 8.0.0-beta.4 + '@babel/parser': 8.0.0-beta.4 + '@babel/types': 8.0.0-beta.4 + ast-kit: 3.0.0-beta.1 birpc: 4.0.0 dts-resolver: 2.1.3 get-tsconfig: 4.13.0 @@ -12965,7 +12978,7 @@ snapshots: optionalDependencies: typescript: 5.9.3 - tsdown@0.19.0(publint@0.3.12)(typescript@5.9.3)(vue-tsc@3.2.2(typescript@5.9.3)): + tsdown@0.20.1(publint@0.3.12)(typescript@5.9.3)(vue-tsc@3.2.2(typescript@5.9.3)): dependencies: ansis: 4.2.0 cac: 6.7.14 @@ -12976,13 +12989,13 @@ snapshots: obug: 2.1.1 picomatch: 4.0.3 rolldown: 1.0.0-rc.1 - rolldown-plugin-dts: 0.20.0(rolldown@1.0.0-rc.1)(typescript@5.9.3)(vue-tsc@3.2.2(typescript@5.9.3)) + rolldown-plugin-dts: 0.21.6(rolldown@1.0.0-rc.1)(typescript@5.9.3)(vue-tsc@3.2.2(typescript@5.9.3)) semver: 7.7.3 tinyexec: 1.0.2 tinyglobby: 0.2.15 tree-kill: 1.2.2 unconfig-core: 7.4.2 - unrun: 0.2.24 + unrun: 0.2.26 optionalDependencies: publint: 0.3.12 typescript: 5.9.3 @@ -13138,7 +13151,7 @@ snapshots: '@unrs/resolver-binding-win32-ia32-msvc': 1.9.2 '@unrs/resolver-binding-win32-x64-msvc': 1.9.2 - unrun@0.2.24: + unrun@0.2.26: dependencies: rolldown: 1.0.0-rc.1