orcheo-canvas 0.2.6 → 0.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.bumpversion.cfg +1 -1
- package/package.json +1 -1
- package/vite.config.ts +27 -41
package/.bumpversion.cfg
CHANGED
package/package.json
CHANGED
package/vite.config.ts
CHANGED
|
@@ -18,58 +18,44 @@ export default defineConfig({
|
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
// Fix for CJS/ESM compatibility issues with React 19
|
|
21
|
-
//
|
|
21
|
+
// Force Vite to pre-bundle all dependencies to handle CJS->ESM conversion
|
|
22
22
|
optimizeDeps: {
|
|
23
|
+
// Force pre-bundling of all dependencies
|
|
24
|
+
force: true,
|
|
25
|
+
// Exclude nothing - bundle everything
|
|
26
|
+
exclude: [],
|
|
27
|
+
// Explicitly include problematic nested imports
|
|
23
28
|
include: [
|
|
24
|
-
// Used by zustand, swr, @radix-ui
|
|
25
29
|
'use-sync-external-store/shim',
|
|
26
30
|
'use-sync-external-store/shim/with-selector',
|
|
27
|
-
|
|
28
|
-
'
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
'
|
|
34
|
-
|
|
35
|
-
'lodash/get',
|
|
36
|
-
'lodash/set',
|
|
37
|
-
'lodash/has',
|
|
38
|
-
'lodash/omit',
|
|
39
|
-
'lodash/pick',
|
|
40
|
-
'lodash/merge',
|
|
41
|
-
'lodash/cloneDeep',
|
|
42
|
-
'lodash/isEmpty',
|
|
43
|
-
'lodash/isObject',
|
|
44
|
-
'lodash/isString',
|
|
45
|
-
'lodash/isNumber',
|
|
46
|
-
'lodash/isNil',
|
|
47
|
-
'lodash/isPlainObject',
|
|
48
|
-
'lodash/forEach',
|
|
49
|
-
'lodash/toPath',
|
|
50
|
-
'lodash/uniqueId',
|
|
51
|
-
'lodash/keys',
|
|
52
|
-
'lodash/union',
|
|
53
|
-
'lodash/uniq',
|
|
54
|
-
'lodash/times',
|
|
55
|
-
'lodash/reduce',
|
|
56
|
-
'lodash/transform',
|
|
57
|
-
'lodash/difference',
|
|
58
|
-
'lodash/flattenDeep',
|
|
59
|
-
'lodash/isEqualWith',
|
|
60
|
-
'lodash/setWith',
|
|
61
|
-
'lodash/pickBy',
|
|
62
|
-
'lodash/unset',
|
|
63
|
-
]
|
|
31
|
+
'react-split > prop-types',
|
|
32
|
+
'ajv/dist/standalone',
|
|
33
|
+
],
|
|
34
|
+
// Scan all entry points
|
|
35
|
+
esbuildOptions: {
|
|
36
|
+
// Ensure proper CJS to ESM conversion
|
|
37
|
+
mainFields: ['module', 'main'],
|
|
38
|
+
}
|
|
64
39
|
},
|
|
65
40
|
build: {
|
|
66
41
|
commonjsOptions: {
|
|
67
|
-
|
|
42
|
+
// Transform all CJS modules in node_modules
|
|
43
|
+
include: [/node_modules/],
|
|
44
|
+
// Use proper named exports detection
|
|
45
|
+
requireReturnsDefault: 'auto',
|
|
68
46
|
}
|
|
69
47
|
},
|
|
70
48
|
server: {
|
|
71
49
|
allowedHosts: [
|
|
72
50
|
'orcheo-canvas.ai-colleagues.com'
|
|
73
|
-
]
|
|
51
|
+
],
|
|
52
|
+
// Force dependency pre-bundling on server start
|
|
53
|
+
warmup: {
|
|
54
|
+
clientFiles: ['./src/**/*.tsx', './src/**/*.ts']
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
// Ensure SSR also handles CJS properly
|
|
58
|
+
ssr: {
|
|
59
|
+
noExternal: true
|
|
74
60
|
}
|
|
75
61
|
})
|