WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit c49af21

Browse files
committed
chore: merge main
2 parents 38a8609 + a3cd262 commit c49af21

File tree

35 files changed

+1006
-960
lines changed

35 files changed

+1006
-960
lines changed

.github/renovate.json5

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@
3636

3737
// breaking changes
3838
"kill-port", // `kill-port:^2.0.0 has perf issues (#8392)
39+
40+
// v1 is a drop-in replacement for debug, while v2 introduces breaking changes
41+
"obug",
3942
],
4043
"github-actions": {
4144
"managerFilePatterns": [

docs/.vitepress/config.ts

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,27 @@ export default defineConfig({
478478
markdown: {
479479
// languages used for twoslash and jsdocs in twoslash
480480
languages: ['ts', 'js', 'json'],
481-
codeTransformers: [transformerTwoslash()],
481+
codeTransformers: [
482+
transformerTwoslash(),
483+
// add `style:*` support
484+
{
485+
root(hast) {
486+
const meta = this.options.meta?.__raw
487+
?.split(' ')
488+
.find((m) => m.startsWith('style:'))
489+
if (meta) {
490+
const style = meta.slice('style:'.length)
491+
const rootPre = hast.children.find(
492+
(n): n is typeof n & { type: 'element'; tagName: 'pre' } =>
493+
n.type === 'element' && n.tagName === 'pre',
494+
)
495+
if (rootPre) {
496+
rootPre.properties.style += '; ' + style
497+
}
498+
}
499+
},
500+
},
501+
],
482502
config(md) {
483503
md.use(groupIconMdPlugin, {
484504
titleBar: {

docs/guide/backend-integration.md

Lines changed: 40 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ If you need a custom integration, you can follow the steps in this guide to conf
6464

6565
3. For production, after running `vite build`, a `.vite/manifest.json` file will be generated alongside other asset files. An example manifest file looks like this:
6666

67-
```json [.vite/manifest.json]
67+
```json [.vite/manifest.json] style:max-height:400px
6868
{
6969
"_shared-B7PI925R.js": {
7070
"file": "assets/shared-B7PI925R.js",
@@ -106,17 +106,53 @@ If you need a custom integration, you can follow the steps in this guide to conf
106106

107107
The manifest has a `Record<name, chunk>` structure where each chunk follows the `ManifestChunk` interface:
108108

109-
```ts
109+
```ts style:max-height:400px
110110
interface ManifestChunk {
111+
/**
112+
* The input file name of this chunk / asset if known
113+
*/
111114
src?: string
115+
/**
116+
* The output file name of this chunk / asset
117+
*/
112118
file: string
119+
/**
120+
* The list of CSS files imported by this chunk
121+
*
122+
* This field is only present in JS chunks.
123+
*/
113124
css?: string[]
125+
/**
126+
* The list of asset files imported by this chunk, excluding CSS files
127+
*
128+
* This field is only present in JS chunks.
129+
*/
114130
assets?: string[]
131+
/**
132+
* Whether this chunk or asset is an entry point
133+
*/
115134
isEntry?: boolean
135+
/**
136+
* The name of this chunk / asset if known
137+
*/
116138
name?: string
117-
names?: string[]
139+
/**
140+
* Whether this chunk is a dynamic entry point
141+
*
142+
* This field is only present in JS chunks.
143+
*/
118144
isDynamicEntry?: boolean
145+
/**
146+
* The list of statically imported chunks by this chunk
147+
*
148+
* The values are the keys of the manifest. This field is only present in JS chunks.
149+
*/
119150
imports?: string[]
151+
/**
152+
* The list of dynamically imported chunks by this chunk
153+
*
154+
* The values are the keys of the manifest. This field is only present in JS chunks.
155+
*/
120156
dynamicImports?: string[]
121157
}
122158
```
@@ -128,7 +164,7 @@ If you need a custom integration, you can follow the steps in this guide to conf
128164
- **Asset chunks**: Generated from imported assets like images, fonts. Their key is the relative src path from project root.
129165
- **CSS files**: When [`build.cssCodeSplit`](/config/build-options.md#build-csscodesplit) is `false`, a single CSS file is generated with the key `style.css`. When `build.cssCodeSplit` is not `false`, the key is generated similar to JS chunks (i.e. entry chunks will not have `_` prefix and non-entry chunks will have `_` prefix).
130166

131-
Chunks will contain information on their static and dynamic imports (both are keys that map to the corresponding chunk in the manifest), and also their corresponding CSS and asset files (if any).
167+
JS chunks (chunks other than assets or CSS) will contain information on their static and dynamic imports (both are keys that map to the corresponding chunk in the manifest), and also their corresponding CSS and asset files (if any).
132168

133169
4. You can use this file to render links or preload directives with hashed filenames.
134170

docs/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
"gsap": "^3.13.0",
1616
"markdown-it-image-size": "^15.0.1",
1717
"oxc-minify": "^0.97.0",
18-
"vitepress": "^2.0.0-alpha.13",
18+
"vitepress": "^2.0.0-alpha.15",
1919
"vitepress-plugin-group-icons": "^1.6.5",
20-
"vitepress-plugin-llms": "^1.9.2",
21-
"vue": "^3.5.24",
22-
"vue-tsc": "^3.1.4"
20+
"vitepress-plugin-llms": "^1.9.3",
21+
"vue": "^3.5.25",
22+
"vue-tsc": "^3.1.5"
2323
}
2424
}

package.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
"@types/babel__preset-env": "^7.10.0",
4747
"@types/convert-source-map": "^2.0.3",
4848
"@types/cross-spawn": "^6.0.6",
49-
"@types/debug": "^4.1.12",
5049
"@types/estree": "^1.0.8",
5150
"@types/etag": "^1.8.4",
5251
"@types/less": "^3.0.8",
@@ -61,18 +60,18 @@
6160
"eslint-plugin-regexp": "^2.10.0",
6261
"execa": "^9.6.0",
6362
"globals": "^16.5.0",
64-
"lint-staged": "^16.2.6",
63+
"lint-staged": "^16.2.7",
6564
"picocolors": "^1.1.1",
66-
"playwright-chromium": "^1.56.1",
65+
"playwright-chromium": "^1.57.0",
6766
"prettier": "3.6.2",
6867
"rolldown": "1.0.0-beta.51",
6968
"rollup": "^4.43.0",
7069
"simple-git-hooks": "^2.13.1",
7170
"tsx": "^4.20.6",
7271
"typescript": "~5.9.2",
73-
"typescript-eslint": "^8.46.4",
72+
"typescript-eslint": "^8.48.0",
7473
"vite": "workspace:*",
75-
"vitest": "^4.0.9"
74+
"vitest": "^4.0.14"
7675
},
7776
"simple-git-hooks": {
7877
"pre-commit": "pnpm exec lint-staged --concurrent false"
@@ -91,7 +90,7 @@
9190
"eslint --cache --fix"
9291
]
9392
},
94-
"packageManager": "pnpm@10.22.0",
93+
"packageManager": "pnpm@10.23.0",
9594
"stackblitz": {
9695
"startCommand": "pnpm --filter='./packages/vite' run dev"
9796
}

packages/create-vite/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@
3737
"cross-spawn": "^7.0.6",
3838
"mri": "^1.2.0",
3939
"picocolors": "^1.1.1",
40-
"tsdown": "^0.16.5"
40+
"tsdown": "^0.16.6"
4141
}
4242
}

packages/create-vite/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ async function init() {
678678

679679
if (useRolldownVite) {
680680
// renovate: datasource=npm depName=rolldown-vite
681-
const rolldownViteVersion = '7.2.5'
681+
const rolldownViteVersion = '7.2.7'
682682
const pkgVersion = `npm:rolldown-vite@${rolldownViteVersion}`
683683
pkg.devDependencies.vite = pkgVersion
684684
switch (pkgManager) {

packages/create-vite/template-react-ts/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@
1616
"devDependencies": {
1717
"@eslint/js": "^9.39.1",
1818
"@types/node": "^24.10.1",
19-
"@types/react": "^19.2.5",
19+
"@types/react": "^19.2.7",
2020
"@types/react-dom": "^19.2.3",
2121
"@vitejs/plugin-react": "^5.1.1",
2222
"eslint": "^9.39.1",
2323
"eslint-plugin-react-hooks": "^7.0.1",
2424
"eslint-plugin-react-refresh": "^0.4.24",
2525
"globals": "^16.5.0",
2626
"typescript": "~5.9.3",
27-
"typescript-eslint": "^8.46.4",
27+
"typescript-eslint": "^8.48.0",
2828
"vite": "npm:rolldown-vite@^7.2.7"
2929
}
3030
}

packages/create-vite/template-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
},
1616
"devDependencies": {
1717
"@eslint/js": "^9.39.1",
18-
"@types/react": "^19.2.5",
18+
"@types/react": "^19.2.7",
1919
"@types/react-dom": "^19.2.3",
2020
"@vitejs/plugin-react": "^5.1.1",
2121
"eslint": "^9.39.1",

packages/create-vite/template-svelte-ts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"@sveltejs/vite-plugin-svelte": "^6.2.1",
1414
"@tsconfig/svelte": "^5.0.6",
1515
"@types/node": "^24.10.1",
16-
"svelte": "^5.43.8",
16+
"svelte": "^5.44.1",
1717
"svelte-check": "^4.3.4",
1818
"typescript": "~5.9.3",
1919
"vite": "npm:rolldown-vite@^7.2.7"

0 commit comments

Comments
 (0)