Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: get i18n lazy, make vinext build works (#32917)

Stephen Zhoud7e399872d00
diff --git a/web/app/components/goto-anything/actions/commands/slash.tsx b/web/app/components/goto-anything/actions/commands/slash.tsx
index 6aad67731f7..25d1aa59c51 100644
--- a/web/app/components/goto-anything/actions/commands/slash.tsx
+++ b/web/app/components/goto-anything/actions/commands/slash.tsx
@@ -14,13 +14,17 @@ import { slashCommandRegistry } from './registry'
import { themeCommand } from './theme'
import { zenCommand } from './zen'
-const i18n = getI18n()
-
export const slashAction: ActionItem = {
key: '/',
shortcut: '/',
- title: i18n.t('gotoAnything.actions.slashTitle', { ns: 'app' }),
- description: i18n.t('gotoAnything.actions.slashDesc', { ns: 'app' }),
+ get title() {
+ const i18n = getI18n()
+ return i18n.t('gotoAnything.actions.slashTitle', { ns: 'app' })
+ },
+ get description() {
+ const i18n = getI18n()
+ return i18n.t('gotoAnything.actions.slashDesc', { ns: 'app' })
+ },
action: (result) => {
if (result.type !== 'command')
return
@@ -28,6 +32,7 @@ export const slashAction: ActionItem = {
executeCommand(command, args)
},
search: async (query, _searchTerm = '') => {
+ const i18n = getI18n()
// Delegate all search logic to the command registry system
return slashCommandRegistry.search(query, i18n.language)
},
diff --git a/web/package.json b/web/package.json
index a120f5718d1..e0df37836ee 100644
--- a/web/package.json
+++ b/web/package.json
@@ -31,9 +31,9 @@
"dev:vinext": "vinext dev",
"build": "next build",
"build:docker": "next build && node scripts/optimize-standalone.js",
- "build:vinext": "vinext build",
+ "build:vinext": "cross-env NODE_ENV=production vinext build",
"start": "node ./scripts/copy-and-start.mjs",
- "start:vinext": "vinext start",
+ "start:vinext": "cross-env NODE_ENV=production vinext start",
"lint": "eslint --cache --concurrency=auto",
"lint:ci": "eslint --cache --concurrency 2",
"lint:fix": "pnpm lint --fix",
@@ -248,7 +248,7 @@
"typescript": "5.9.3",
"uglify-js": "3.19.3",
"vinext": "https://pkg.pr.new/hyoban/vinext@cfae669",
- "vite": "7.3.1",
+ "vite": "8.0.0-beta.16",
"vite-tsconfig-paths": "6.1.1",
"vitest": "4.0.18",
"vitest-canvas-mock": "1.1.3"
diff --git a/web/pnpm-lock.yaml b/web/pnpm-lock.yaml
index 17c3fb7f060..81ecb7f8574 100644
--- a/web/pnpm-lock.yaml
+++ b/web/pnpm-lock.yaml
@@ -375,7 +375,7 @@ importers:
devDependencies:
'@antfu/eslint-config':
specifier: 7.6.1
'@chromatic-com/storybook':
specifier: 5.0.1
@@ -414,7 +414,7 @@ importers:
'@storybook/addon-docs':
specifier: 10.2.13
'@storybook/addon-links':
specifier: 10.2.13
@@ -426,7 +426,7 @@ importers:
'@storybook/nextjs-vite':
specifier: 10.2.13
'@storybook/react':
specifier: 10.2.13
@@ -513,13 +513,13 @@ importers:
version: 7.0.0-dev.20251209.1
'@vitejs/plugin-react':
specifier: 5.1.4
'@vitejs/plugin-rsc':
specifier: 0.5.21
'@vitest/coverage-v8':
specifier: 4.0.18
autoprefixer:
specifier: 10.4.21
version: 10.4.21([email protected])
@@ -609,19 +609,19 @@ importers:
version: 3.19.3
vinext:
specifier: https://pkg.pr.new/hyoban/vinext@cfae669
vite:
- specifier: 7.3.1
+ specifier: 8.0.0-beta.16
vite-tsconfig-paths:
specifier: 6.1.1
vitest:
specifier: 4.0.18
vitest-canvas-mock:
specifier: 1.1.3
packages:
@@ -2002,6 +2002,13 @@ packages:
resolution: {integrity: sha512-XRO0zi2NIUKq2lUk3T1ecFSld1fMWRKE6naRFGkgkdeosx7IslyUKNv5Dcb5PJTja9tHJoFu0v/7yEpAkrkrTg==}
engines: {node: ^20.19.0 || ^22.13.0 || >=24}
+ '@oxc-project/[email protected]':
+ resolution: {integrity: sha512-Rg8Wlt5dCbXhQnsXPrkOjL1DTSvXLgb2R/KYfnf1/K+R0k6UMLEmbQXPM+kwrWqSmWA2t0B1EtHy2/3zikQpvQ==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+
+ '@oxc-project/[email protected]':
+ resolution: {integrity: sha512-4n91DKnebUS4yjUHl2g3/b2T+IUdCfmoZGhmwsovZCDaJSs+QkVAM+0AqqTxHSsHfeiMuueT75cZaZcT/m0pSw==}
+
'@oxc-resolver/[email protected]':
resolution: {integrity: sha512-6XUHilmj8D6Ggus+sTBp64x/DUQ7LgC/dvTDdUOt4iMQnDdSep6N1mnvVLIiG+qM5tRnNHravNzBJnUlYwRQoA==}
cpu: [arm]
@@ -2479,12 +2486,92 @@ packages:
resolution: {integrity: sha512-UuBOt7BOsKVOkFXRe4Ypd/lADuNIfqJXv8GvHqtXaTYXPPKkj2nS2zPllVsrtRjcomDhIJVBnZwfmlI222WH8g==}
engines: {node: '>=14.0.0'}
+ '@rolldown/[email protected]':
+ resolution: {integrity: sha512-kvjTSWGcrv+BaR2vge57rsKiYdVR8V8CoS0vgKrc570qRBfty4bT+1X0z3j2TaVV+kAYzA0PjeB9+mdZyqUZlg==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [arm64]
+ os: [android]
+
+ '@rolldown/[email protected]':
+ resolution: {integrity: sha512-+tJhD21KvGNtUrpLXrZQlT+j5HZKiEwR2qtcZb3vNOUpvoT9QjEykr75ZW/Kr0W89gose/HVXU6351uVZD8Qvw==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [arm64]
+ os: [darwin]
+
+ '@rolldown/[email protected]':
+ resolution: {integrity: sha512-DKNhjMk38FAWaHwUt1dFR3rA/qRAvn2NUvSG2UGvxvlMxSmN/qqww/j4ABAbXhNRXtGQNmrAINMXRuwHl16ZHg==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [x64]
+ os: [darwin]
+
+ '@rolldown/[email protected]':
+ resolution: {integrity: sha512-8TThsRkCPAnfyMBShxrGdtoOE6h36QepqRQI97iFaQSCRbHFWHcDHppcojZnzXoruuhPnjMEygzaykvPVJsMRg==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [x64]
+ os: [freebsd]
+
+ '@rolldown/[email protected]':
+ resolution: {integrity: sha512-ZfmFoOwPUZCWtGOVC9/qbQzfc0249FrRUOzV2XabSMUV60Crp211OWLQN1zmQAsRIVWRcEwhJ46Z1mXGo/L/nQ==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [arm]
+ os: [linux]
+
+ '@rolldown/[email protected]':
+ resolution: {integrity: sha512-ZsGzbNETxPodGlLTYHaCSGVhNN/rvkMDCJYHdT7PZr5jFJRmBfmDi2awhF64Dt2vxrJqY6VeeYSgOzEbHRsb7Q==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [arm64]
+ os: [linux]
+
+ '@rolldown/[email protected]':
+ resolution: {integrity: sha512-elPpdevtCdUOqziemR86C4CSCr/5sUxalzDrf/CJdMT+kZt2C556as++qHikNOz0vuFf52h+GJNXZM08eWgGPQ==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [arm64]
+ os: [linux]
+
+ '@rolldown/[email protected]':
+ resolution: {integrity: sha512-IBwXsf56o3xhzAyaZxdM1CX8UFiBEUFCjiVUgny67Q8vPIqkjzJj0YKhd3TbBHanuxThgBa59f6Pgutg2OGk5A==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [x64]
+ os: [linux]
+
+ '@rolldown/[email protected]':
+ resolution: {integrity: sha512-vOk7G8V9Zm+8a6PL6JTpCea61q491oYlGtO6CvnsbhNLlKdf0bbCPytFzGQhYmCKZDKkEbmnkcIprTEGCURnwg==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [x64]
+ os: [linux]
+
+ '@rolldown/[email protected]':
+ resolution: {integrity: sha512-ASjEDI4MRv7XCQb2JVaBzfEYO98JKCGrAgoW6M03fJzH/ilCnC43Mb3ptB9q/lzsaahoJyIBoAGKAYEjUvpyvQ==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [arm64]
+ os: [openharmony]
+
+ '@rolldown/[email protected]':
+ resolution: {integrity: sha512-mYa1+h2l6Zc0LvmwUh0oXKKYihnw/1WC73vTqw+IgtfEtv47A+rWzzcWwVDkW73+UDr0d/Ie/HRXoaOY22pQDw==}
+ engines: {node: '>=14.0.0'}
+ cpu: [wasm32]
+
+ '@rolldown/[email protected]':
+ resolution: {integrity: sha512-e2ABskbNH3MRUBMjgxaMjYIw11DSwjLJxBII3UgpF6WClGLIh8A20kamc+FKH5vIaFVnYQInmcLYSUVpqMPLow==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [arm64]
+ os: [win32]
+
+ '@rolldown/[email protected]':
+ resolution: {integrity: sha512-dJVc3ifhaRXxIEh1xowLohzFrlQXkJ66LepHm+CmSprTWgVrPa8Fx3OL57xwIqDEH9hufcKkDX2v65rS3NZyRA==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [x64]
+ os: [win32]
+
'@rolldown/[email protected]':
resolution: {integrity: sha512-eybk3TjzzzV97Dlj5c+XrBFW57eTNhzod66y9HrBlzJ6NsCrWCp/2kaPS3K9wJmurBC0Tdw4yPjXKZqlznim3Q==}
'@rolldown/[email protected]':
resolution: {integrity: sha512-RxlLX/DPoarZ9PtxVrQgZhPoor987YtKQqCo5zkjX+0S0yLJ7Vv515Wk6+xtTL67VONKJKxETWZwuZjss2idYw==}
+ '@rolldown/[email protected]':
+ resolution: {integrity: sha512-Y0+JT8Mi1mmW08K6HieG315XNRu4L0rkfCpA364HtytjgiqYnMYRdFPcxRl+BQQqNXzecL2S9nii+RUpO93XIA==}
+
'@rollup/[email protected]':
resolution: {integrity: sha512-J4RZarRvQAm5IF0/LwUUg+obsm+xZhYnbMXmXROyoSE1ATJe3oXSb9L5MMppdxP2ylNSjv6zFBwKYjcKMucVfA==}
engines: {node: '>=14.0.0'}
@@ -5720,6 +5807,76 @@ packages:
engines: {node: '>=16'}
hasBin: true
+ resolution: {integrity: sha512-HXJF3x8w9nQ4jbXRiNppBCqeZPIAfUo8zE/kOEGbW5NZvGc/K7nMxbhIr+YlFlHW5mpbg/YFPdbnCh1wAXCKFg==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [arm64]
+ os: [android]
+
+ resolution: {integrity: sha512-02uTEqf3vIfNMq3h/z2cJfcOXnQ0GRwQrkmPafhueLb2h7mqEidiCzkE4gBMEH65abHRiQvhdcQ+aP0D0g67sg==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [arm64]
+ os: [darwin]
+
+ resolution: {integrity: sha512-1ObhyoCY+tGxtsz1lSx5NXCj3nirk0Y0kB/g8B8DT+sSx4G9djitg9ejFnjb3gJNWo7qXH4DIy2SUHvpoFwfTA==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [x64]
+ os: [darwin]
+
+ resolution: {integrity: sha512-1RINmQKAItO6ISxYgPwszQE1BrsVU5aB45ho6O42mu96UiZBxEXsuQ7cJW4zs4CEodPUioj/QrXW1r9pLUM74A==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [x64]
+ os: [freebsd]
+
+ resolution: {integrity: sha512-OOCm2//MZJ87CdDK62rZIu+aw9gBv4azMJuA8/KB74wmfS3lnC4yoPHm0uXZ/dvNNHmnZnB8XLAZzObeG0nS1g==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [arm]
+ os: [linux]
+
+ resolution: {integrity: sha512-WKyLWztD71rTnou4xAD5kQT+982wvca7E6QoLpoawZ1gP9JM0GJj4Tp5jMUh9B3AitHbRZ2/H3W5xQmdEOUlLg==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [arm64]
+ os: [linux]
+
+ resolution: {integrity: sha512-mVZ7Pg2zIbe3XlNbZJdjs86YViQFoJSpc41CbVmKBPiGmC4YrfeOyz65ms2qpAobVd7WQsbW4PdsSJEMymyIMg==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [arm64]
+ os: [linux]
+
+ resolution: {integrity: sha512-xGlFWRMl+0KvUhgySdIaReQdB4FNudfUTARn7q0hh/V67PVGCs3ADFjw+6++kG1RNd0zdGRlEKa+T13/tQjPMA==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [x64]
+ os: [linux]
+
+ resolution: {integrity: sha512-eowF8PrKHw9LpoZii5tdZwnBcYDxRw2rRCyvAXLi34iyeYfqCQNA9rmUM0ce62NlPhCvof1+9ivRaTY6pSKDaA==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [x64]
+ os: [linux]
+
+ resolution: {integrity: sha512-aJReEbSEQzx1uBlQizAOBSjcmr9dCdL3XuC/6HLXAxmtErsj2ICo5yYggg1qOODQMtnjNQv2UHb9NpOuFtYe4w==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [arm64]
+ os: [win32]
+
+ resolution: {integrity: sha512-I9aiFrbd7oYHwlnQDqr1Roz+fTz61oDDJX7n9tYF9FJymH1cIN1DtKw3iYt6b8WZgEjoNwVSncwF4wx/ZedMhw==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [x64]
+ os: [win32]
+
+ resolution: {integrity: sha512-l51N2r93WmGUye3WuFoN5k10zyvrVs0qfKBhyC5ogUQ6Ew6JUSswh78mbSO+IU3nTWsyOArqPCcShdQSadghBQ==}
+ engines: {node: '>= 12.0.0'}
+
resolution: {integrity: sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==}
engines: {node: '>=14'}
@@ -6872,6 +7029,11 @@ packages:
resolution: {integrity: sha512-IXgzBWvWQwE6PrDI05OvmXUIruQTcoMDzRsOd5CDvHCVLcLHMTSYvOK5Cm46kWqlV3yAbuSpBZdJ5oP5OUoStg==}
+ resolution: {integrity: sha512-B8vFPV1ADyegoYfhg+E7RAucYKv0xdVlwYYsIJgfPNeiSxZGWNxts9RqhyGzC11ULK/VaeXyKezGCwpMiH8Ktw==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ hasBin: true
+
resolution: {integrity: sha512-9FwVqlgUHzbXtDg9RCMgodF3Ua4Na6Gau+Sdt9vyCN4RhHfVKX2DCHy3BjMLTDd47ITDhYAnTwGulWTblJSDLg==}
engines: {node: '>=18.0.0', npm: '>=8.0.0'}
@@ -7641,6 +7803,49 @@ packages:
yaml:
optional: true
+ resolution: {integrity: sha512-c0t7hYkxsjws89HH+BUFh/sL3BpPNhNsL9CJrTpMxBmwKQBRSa5OJ5w4o9O0bQVI/H/vx7UpUUIevvXa37NS/Q==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ hasBin: true
+ peerDependencies:
+ '@types/node': ^20.19.0 || >=22.12.0
+ '@vitejs/devtools': ^0.0.0-alpha.31
+ esbuild: 0.27.2
+ jiti: '>=1.21.0'
+ less: ^4.0.0
+ sass: ^1.70.0
+ sass-embedded: ^1.70.0
+ stylus: '>=0.54.8'
+ sugarss: ^5.0.0
+ terser: ^5.16.0
+ tsx: ^4.8.1
+ yaml: ^2.4.2
+ peerDependenciesMeta:
+ '@types/node':
+ optional: true
+ '@vitejs/devtools':
+ optional: true
+ esbuild:
+ optional: true
+ jiti:
+ optional: true
+ less:
+ optional: true
+ sass:
+ optional: true
+ sass-embedded:
+ optional: true
+ stylus:
+ optional: true
+ sugarss:
+ optional: true
+ terser:
+ optional: true
+ tsx:
+ optional: true
+ yaml:
+ optional: true
+
resolution: {integrity: sha512-zpKATdUbzbsycPFBN71nS2uzBUQiVnFoOrr2rvqv34S1lcAgMKKkjWleLGeiJlZ8lwCXvtWaRn7R3ZC16SYRuw==}
peerDependencies:
@@ -8087,7 +8292,7 @@ snapshots:
idb: 8.0.3
tslib: 2.8.1
dependencies:
'@antfu/install-pkg': 1.1.0
'@clack/prompts': 1.0.1
@@ -8096,7 +8301,7 @@ snapshots:
'@stylistic/eslint-plugin': https://pkg.pr.new/@stylistic/eslint-plugin@258f9d8([email protected]([email protected]))
'@typescript-eslint/parser': 8.56.1([email protected]([email protected]))([email protected])
ansis: 4.2.0
cac: 6.7.14
eslint: 10.0.2([email protected])
@@ -9088,11 +9293,11 @@ snapshots:
dependencies:
minipass: 7.1.3
dependencies:
glob: 13.0.6
react-docgen-typescript: 2.4.0([email protected])
optionalDependencies:
typescript: 5.9.3
@@ -9583,6 +9788,10 @@ snapshots:
'@ota-meshi/[email protected]': {}
+ '@oxc-project/[email protected]': {}
+
+ '@oxc-project/[email protected]': {}
+
'@oxc-resolver/[email protected]':
optional: true
@@ -10012,10 +10221,53 @@ snapshots:
'@rgrove/[email protected]': {}
+ '@rolldown/[email protected]':
+ optional: true
+
+ '@rolldown/[email protected]':
+ optional: true
+
+ '@rolldown/[email protected]':
+ optional: true
+
+ '@rolldown/[email protected]':
+ optional: true
+
+ '@rolldown/[email protected]':
+ optional: true
+
+ '@rolldown/[email protected]':
+ optional: true
+
+ '@rolldown/[email protected]':
+ optional: true
+
+ '@rolldown/[email protected]':
+ optional: true
+
+ '@rolldown/[email protected]':
+ optional: true
+
+ '@rolldown/[email protected]':
+ optional: true
+
+ '@rolldown/[email protected]':
+ dependencies:
+ '@napi-rs/wasm-runtime': 1.1.1
+ optional: true
+
+ '@rolldown/[email protected]':
+ optional: true
+
+ '@rolldown/[email protected]':
+ optional: true
+
'@rolldown/[email protected]': {}
'@rolldown/[email protected]': {}
+ '@rolldown/[email protected]': {}
+
dependencies:
'@rollup/pluginutils': 5.3.0([email protected])
@@ -10232,10 +10484,10 @@ snapshots:
'@standard-schema/[email protected]': {}
dependencies:
'@mdx-js/react': 3.1.1(@types/[email protected])([email protected])
react: 19.2.4
@@ -10265,25 +10517,25 @@ snapshots:
ts-dedent: 2.2.0
dependencies:
ts-dedent: 2.2.0
transitivePeerDependencies:
- esbuild
- rollup
- webpack
dependencies:
unplugin: 2.3.11
optionalDependencies:
esbuild: 0.27.2
rollup: 4.56.0
'@storybook/[email protected]': {}
@@ -10293,18 +10545,18 @@ snapshots:
react: 19.2.4
react-dom: 19.2.4([email protected])
dependencies:
react: 19.2.4
react-dom: 19.2.4([email protected])
styled-jsx: 5.1.6(@babel/[email protected])([email protected])
optionalDependencies:
typescript: 5.9.3
transitivePeerDependencies:
@@ -10321,11 +10573,11 @@ snapshots:
react-dom: 19.2.4([email protected])
dependencies:
'@rollup/pluginutils': 5.3.0([email protected])
empathic: 2.0.0
magic-string: 0.30.21
@@ -10335,7 +10587,7 @@ snapshots:
resolve: 1.22.11
tsconfig-paths: 4.2.0
transitivePeerDependencies:
- esbuild
- rollup
@@ -11171,7 +11423,7 @@ snapshots:
'@resvg/resvg-wasm': 2.4.0
satori: 0.16.0
dependencies:
'@babel/core': 7.29.0
'@babel/plugin-transform-react-jsx-self': 7.27.1(@babel/[email protected])
@@ -11179,11 +11431,11 @@ snapshots:
'@rolldown/pluginutils': 1.0.0-rc.3
'@types/babel__core': 7.20.5
react-refresh: 0.18.0
transitivePeerDependencies:
- supports-color
dependencies:
'@rolldown/pluginutils': 1.0.0-rc.5
es-module-lexer: 2.0.0
@@ -11195,12 +11447,12 @@ snapshots:
srvx: 0.11.7
strip-literal: 3.1.0
turbo-stream: 3.1.0
optionalDependencies:
dependencies:
'@bcoe/v8-coverage': 1.0.2
'@vitest/utils': 4.0.18
@@ -11212,16 +11464,16 @@ snapshots:
obug: 2.1.1
std-env: 3.10.0
tinyrainbow: 3.0.3
dependencies:
'@typescript-eslint/scope-manager': 8.56.1
'@typescript-eslint/utils': 8.56.1([email protected]([email protected]))([email protected])
eslint: 10.0.2([email protected])
optionalDependencies:
typescript: 5.9.3
transitivePeerDependencies:
- supports-color
@@ -11242,13 +11494,13 @@ snapshots:
chai: 6.2.2
tinyrainbow: 3.0.3
dependencies:
'@vitest/spy': 4.0.18
estree-walker: 3.0.3
magic-string: 0.30.21
optionalDependencies:
'@vitest/[email protected]':
dependencies:
@@ -13635,6 +13887,55 @@ snapshots:
dependencies:
isomorphic.js: 0.2.5
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ dependencies:
+ detect-libc: 2.1.2
+ optionalDependencies:
+ lightningcss-android-arm64: 1.31.1
+ lightningcss-darwin-arm64: 1.31.1
+ lightningcss-darwin-x64: 1.31.1
+ lightningcss-freebsd-x64: 1.31.1
+ lightningcss-linux-arm-gnueabihf: 1.31.1
+ lightningcss-linux-arm64-gnu: 1.31.1
+ lightningcss-linux-arm64-musl: 1.31.1
+ lightningcss-linux-x64-gnu: 1.31.1
+ lightningcss-linux-x64-musl: 1.31.1
+ lightningcss-win32-arm64-msvc: 1.31.1
+ lightningcss-win32-x64-msvc: 1.31.1
+
@@ -15205,6 +15506,25 @@ snapshots:
+ dependencies:
+ '@oxc-project/types': 0.115.0
+ '@rolldown/pluginutils': 1.0.0-rc.6
+ optionalDependencies:
+ '@rolldown/binding-android-arm64': 1.0.0-rc.6
+ '@rolldown/binding-darwin-arm64': 1.0.0-rc.6
+ '@rolldown/binding-darwin-x64': 1.0.0-rc.6
+ '@rolldown/binding-freebsd-x64': 1.0.0-rc.6
+ '@rolldown/binding-linux-arm-gnueabihf': 1.0.0-rc.6
+ '@rolldown/binding-linux-arm64-gnu': 1.0.0-rc.6
+ '@rolldown/binding-linux-arm64-musl': 1.0.0-rc.6
+ '@rolldown/binding-linux-x64-gnu': 1.0.0-rc.6
+ '@rolldown/binding-linux-x64-musl': 1.0.0-rc.6
+ '@rolldown/binding-openharmony-arm64': 1.0.0-rc.6
+ '@rolldown/binding-wasm32-wasi': 1.0.0-rc.6
+ '@rolldown/binding-win32-arm64-msvc': 1.0.0-rc.6
+ '@rolldown/binding-win32-x64-msvc': 1.0.0-rc.6
+
dependencies:
'@types/estree': 1.0.8
@@ -15971,19 +16291,19 @@ snapshots:
'@types/unist': 3.0.3
vfile-message: 4.0.3
dependencies:
'@vercel/og': 0.8.6
magic-string: 0.30.21
react: 19.2.4
react-dom: 19.2.4([email protected])
rsc-html-stream: 0.0.7
vite-plugin-commonjs: 0.10.4
transitivePeerDependencies:
- next
- supports-color
@@ -16003,7 +16323,7 @@ snapshots:
fast-glob: 3.3.3
magic-string: 0.30.21
dependencies:
'@next/env': 16.0.0
image-size: 2.0.2
@@ -16012,34 +16332,34 @@ snapshots:
ts-dedent: 2.2.0
transitivePeerDependencies:
- supports-color
- typescript
dependencies:
debug: 4.4.3
globrex: 0.1.2
tsconfck: 3.1.6([email protected])
optionalDependencies:
transitivePeerDependencies:
- supports-color
- typescript
dependencies:
debug: 4.4.3
globrex: 0.1.2
tsconfck: 3.1.6([email protected])
transitivePeerDependencies:
- supports-color
- typescript
dependencies:
esbuild: 0.27.2
fdir: 6.5.0([email protected])
@@ -16051,25 +16371,44 @@ snapshots:
'@types/node': 24.10.12
fsevents: 2.3.3
jiti: 1.21.7
+ lightningcss: 1.31.1
+ sass: 1.93.2
+ terser: 5.46.0
+ tsx: 4.21.0
+ yaml: 2.8.2
+
+ dependencies:
+ '@oxc-project/runtime': 0.115.0
+ lightningcss: 1.31.1
+ picomatch: 4.0.3
+ postcss: 8.5.6
+ rolldown: 1.0.0-rc.6
+ tinyglobby: 0.2.15
+ optionalDependencies:
+ '@types/node': 24.10.12
+ esbuild: 0.27.2
+ fsevents: 2.3.3
+ jiti: 1.21.7
sass: 1.93.2
terser: 5.46.0
tsx: 4.21.0
yaml: 2.8.2
optionalDependencies:
dependencies:
cssfontparser: 1.2.1
moo-color: 1.0.3
dependencies:
'@vitest/expect': 4.0.18
'@vitest/pretty-format': 4.0.18
'@vitest/runner': 4.0.18
'@vitest/snapshot': 4.0.18
@@ -16086,7 +16425,7 @@ snapshots:
tinyexec: 1.0.2
tinyglobby: 0.2.15
tinyrainbow: 3.0.3
why-is-node-running: 2.3.0
optionalDependencies:
'@types/node': 24.10.12
diff --git a/web/vite.config.ts b/web/vite.config.ts
index 1fdef49d0cf..a3e1cb77efe 100644
--- a/web/vite.config.ts
+++ b/web/vite.config.ts
@@ -108,10 +108,30 @@ export default defineConfig(({ mode }) => {
? {
optimizeDeps: {
exclude: ['nuqs'],
+ // Make Prism in lexical works
+ // https://github.com/vitejs/rolldown-vite/issues/396
+ rolldownOptions: {
+ output: {
+ strictExecutionOrder: true,
+ },
+ },
},
server: {
port: 3000,
},
+ ssr: {
+ // SyntaxError: Named export not found. The requested module is a CommonJS module, which may not support all module.exports as named exports
+ noExternal: ['emoji-mart'],
+ },
+ // Make Prism in lexical works
+ // https://github.com/vitejs/rolldown-vite/issues/396
+ build: {
+ rolldownOptions: {
+ output: {
+ strictExecutionOrder: true,
+ },
+ },
+ },
}
: {}),