|
| 1 | +--- |
| 2 | +"@object-ui/components": patch |
| 3 | +"@object-ui/fields": patch |
| 4 | +"@object-ui/layout": patch |
| 5 | +"@object-ui/plugin-aggrid": patch |
| 6 | +"@object-ui/plugin-ai": patch |
| 7 | +"@object-ui/plugin-calendar": patch |
| 8 | +"@object-ui/plugin-charts": patch |
| 9 | +"@object-ui/plugin-chatbot": patch |
| 10 | +"@object-ui/plugin-dashboard": patch |
| 11 | +"@object-ui/plugin-designer": patch |
| 12 | +"@object-ui/plugin-detail": patch |
| 13 | +"@object-ui/plugin-editor": patch |
| 14 | +"@object-ui/plugin-form": patch |
| 15 | +"@object-ui/plugin-gantt": patch |
| 16 | +"@object-ui/plugin-grid": patch |
| 17 | +"@object-ui/plugin-kanban": patch |
| 18 | +"@object-ui/plugin-list": patch |
| 19 | +"@object-ui/plugin-map": patch |
| 20 | +"@object-ui/plugin-markdown": patch |
| 21 | +"@object-ui/plugin-report": patch |
| 22 | +"@object-ui/plugin-timeline": patch |
| 23 | +"@object-ui/plugin-view": patch |
| 24 | +"@object-ui/plugin-workflow": patch |
| 25 | +--- |
| 26 | + |
| 27 | +fix(build): inline dynamic imports in library outputs |
| 28 | + |
| 29 | +Library `vite build --lib` outputs were emitting separate code-split chunks |
| 30 | +(`rolldown-runtime-*.js`, `LookupField-*.js`, etc.) when source files used |
| 31 | +`React.lazy()` / dynamic `import()`. When consumer apps re-bundled these |
| 32 | +multi-file dists, the library's per-chunk rolldown-runtime collided with the |
| 33 | +consumer's own runtime, causing "TypeError: i is not a function" at runtime |
| 34 | +when lazy components tried to register themselves (e.g. TextField in |
| 35 | +`@object-ui/fields` after 4.0.4). |
| 36 | + |
| 37 | +Adding `output.inlineDynamicImports: true` to all `@object-ui/*` library vite |
| 38 | +configs forces a single `dist/index.js` per package, which lets consumer |
| 39 | +bundlers handle the library as an opaque ESM module without identifier |
| 40 | +mismatches across chunks. |
| 41 | + |
| 42 | +Affected packages: components, fields, layout, plugin-aggrid, plugin-ai, |
| 43 | +plugin-calendar, plugin-charts, plugin-chatbot, plugin-dashboard, |
| 44 | +plugin-designer, plugin-detail, plugin-editor, plugin-form, plugin-gantt, |
| 45 | +plugin-grid, plugin-kanban, plugin-list, plugin-map, plugin-markdown, |
| 46 | +plugin-report, plugin-timeline, plugin-view, plugin-workflow. |
0 commit comments