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 CHANGED
@@ -1,5 +1,5 @@
1
1
  [bumpversion]
2
- current_version = 0.2.6
2
+ current_version = 0.2.8
3
3
  commit = true
4
4
  tag = true
5
5
  tag_name = canvas-v{new_version}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "orcheo-canvas",
3
3
  "private": false,
4
- "version": "0.2.6",
4
+ "version": "0.2.8",
5
5
  "type": "module",
6
6
  "description": "Canvas UI for Orcheo workflow orchestration platform",
7
7
  "keywords": [
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
- // These packages are CommonJS but imported by ESM modules, causing issues in dev server
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
- // Used by react-split, react-big-calendar, etc.
28
- 'prop-types',
29
- 'react-split',
30
- // Used by @rjsf/utils
31
- 'jsonpointer',
32
- 'json-schema-merge-allof',
33
- 'react-is',
34
- // Lodash submodules used by @rjsf
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
- include: [/use-sync-external-store/, /node_modules/]
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
  })