OpenAPI: Bundle ajv

This commit is contained in:
Fuma Nama
2026-05-17 18:39:29 +08:00
parent 9ca0e2b4e3
commit da4a81a2a8
6 changed files with 24 additions and 9 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'fumadocs-openapi': patch
---
Bundle `ajv`
+5
View File
@@ -0,0 +1,5 @@
---
'fumadocs-mdx': patch
---
Update vite configs
+5 -1
View File
@@ -53,7 +53,6 @@
"@radix-ui/react-dialog": "^1.1.15",
"@radix-ui/react-select": "^2.2.6",
"@radix-ui/react-slot": "^1.2.4",
"ajv": "^8.20.0",
"chokidar": "^5.0.0",
"class-variance-authority": "^0.7.1",
"github-slugger": "^2.0.0",
@@ -74,6 +73,7 @@
"@types/js-yaml": "^4.0.9",
"@types/node": "25.7.0",
"@types/react": "^19.2.14",
"ajv": "^8.20.0",
"fast-content-type-parse": "^3.0.0",
"fumadocs-core": "workspace:*",
"fumadocs-ui": "workspace:*",
@@ -108,7 +108,11 @@
"@scalar/helpers": "0.6.0",
"@scalar/json-magic": "0.12.12",
"@scalar/openapi-upgrader": "0.2.7",
"ajv": "8.20.0",
"fast-content-type-parse": "3.0.0",
"fast-deep-equal": "3.1.3",
"fast-uri": "3.1.0",
"json-schema-traverse": "1.0.0",
"pathe": "2.0.3",
"xml-js": "1.6.11",
"yaml": "2.9.0"
+6 -1
View File
@@ -37,9 +37,14 @@ export default defineConfig({
'@scalar/helpers',
'@scalar/openapi-upgrader',
// for Vite RSC compatibility
'xml-js',
'ajv',
'fast-deep-equal',
'json-schema-traverse',
'fast-uri',
],
neverBundle: [/^node:/],
neverBundle: [/^node:/, /ajv(.+)\.d\.ts/],
},
exports: {
enabled: true,
-1
View File
@@ -10,7 +10,6 @@
"@fumadocs/story": "workspace:*",
"fumadocs-core": "workspace:*",
"fumadocs-mdx": "workspace:*",
"fumadocs-openapi": "workspace:*",
"fumadocs-twoslash": "workspace:*",
"fumadocs-typescript": "workspace:*",
"fumadocs-ui": "workspace:*"
+3 -6
View File
@@ -2678,9 +2678,6 @@ importers:
'@radix-ui/react-slot':
specifier: ^1.2.4
version: 1.2.4(@types/[email protected])([email protected])
ajv:
specifier: ^8.20.0
version: 8.20.0
chokidar:
specifier: ^5.0.0
version: 5.0.0
@@ -2742,6 +2739,9 @@ importers:
'@types/react':
specifier: ^19.2.14
version: 19.2.14
ajv:
specifier: ^8.20.0
version: 8.20.0
fast-content-type-parse:
specifier: ^3.0.0
version: 3.0.0
@@ -3437,9 +3437,6 @@ importers:
fumadocs-mdx:
specifier: workspace:*
version: link:../mdx
fumadocs-openapi:
specifier: workspace:*
version: link:../openapi
fumadocs-twoslash:
specifier: workspace:*
version: link:../twoslash