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.

chore: revert "chore(deps): upgrade vinext and simplify CSS asset aliases" (#42700)

Stephen Zhou01b64254dec6
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 2bc20c3e24a..a7abd3799a6 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -759,8 +759,8 @@ catalogs:
specifier: 14.0.2
version: 14.0.2
vinext:
- specifier: 1.0.0-beta.11
- version: 1.0.0-beta.11
+ specifier: 1.0.0-beta.10
+ version: 1.0.0-beta.10
vite:
specifier: npm:@voidzero-dev/[email protected]
version: 0.3.3
@@ -1865,7 +1865,7 @@ importers:
version: 3.19.3
vinext:
specifier: 'catalog:'
vite:
specifier: 'catalog:'
@@ -9348,8 +9348,8 @@ packages:
resolution: {integrity: sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q==}
- resolution: {integrity: sha512-V56xQcTJEyzGJwkeNYfQI03w8CtI4LW8kqYA9p1r44kItsFXpjQlWA4xaLqqksFkm1FTzn9VPj6xvQLcZDpCfg==}
+ resolution: {integrity: sha512-FsMlcoA23D69EVDYfJSRUVJ8hjRbgzOo5KBy1/ImCWtTWch+OjJlIaEzrontyEnkAo5ntnwl+wm476rOQyHhrQ==}
engines: {node: '>=22'}
hasBin: true
peerDependencies:
@@ -17627,7 +17627,7 @@ snapshots:
'@types/unist': 3.0.3
vfile-message: 4.0.3
dependencies:
'@vercel/og': 0.8.6
@@ -18459,7 +18459,7 @@ time:
[email protected]: '2026-01-22T19:02:58.977Z'
[email protected]: '2024-05-06T11:23:59.259Z'
[email protected]: '2026-08-18T18:21:56.060Z'
- [email protected]: '2026-09-21T17:13:23.065Z'
+ [email protected]: '2026-09-15T09:22:34.040Z'
[email protected]: '2026-07-13T05:34:12.173Z'
[email protected]: '2026-09-18T03:10:15.184Z'
[email protected]: '2026-09-04T08:00:00.941Z'
diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml
index 8a5bdd938a8..bc8cfc5e39d 100644
--- a/pnpm-workspace.yaml
+++ b/pnpm-workspace.yaml
@@ -260,7 +260,7 @@ catalog:
unist-util-visit: 5.1.0
use-context-selector: 2.0.0
uuid: 14.0.2
- vinext: 1.0.0-beta.11
+ vinext: 1.0.0-beta.10
vite: npm:@voidzero-dev/[email protected]
vite-plugin-inspect: 12.0.2
vite-plus: 0.3.3
diff --git a/web/vite.config.ts b/web/vite.config.ts
index ab9412a8e95..8d95a0f697e 100644
--- a/web/vite.config.ts
+++ b/web/vite.config.ts
@@ -66,6 +66,16 @@ export default defineConfig(({ command, mode, isPreview }) => {
tailwindcss(),
react(),
vinext({ react: false }),
+ {
+ name: 'dify-css-asset-alias',
+ enforce: 'post',
+ // Prepend after Vinext's tsconfig aliases, which skip CSS resolution.
+ config: () => ({
+ resolve: {
+ alias: [{ find: '~@', replacement: projectRoot }],
+ },
+ }),
+ },
customI18nHmrPlugin({ injectTarget: rootClientInjectTarget }),
// reactGrabOpenFilePlugin({
// injectTarget: rootClientInjectTarget,
@@ -76,7 +86,6 @@ export default defineConfig(({ command, mode, isPreview }) => {
resolve: {
tsconfigPaths: true,
alias: [
- { find: '~@', replacement: projectRoot },
// Use the base64 build in Vite-based pipelines (vinext/vitest) to avoid wasm loader incompatibilities.
{ find: /^loro-crdt$/, replacement: 'loro-crdt/base64' },
],