writer / writer-framework

No-code in the front, Python in the back. An open-source framework for creating data apps.
https://dev.writer.com/framework/introduction
Apache License 2.0
1.32k stars 76 forks source link

fix: custom components not loading with cjs extension #406

Closed FabienArcellier closed 6 months ago

FabienArcellier commented 6 months ago

fix #405


This fix ensure vite build generates js files for custom components

> streamsync-ui@0.0.0 custom.build
> vite build --config vite.config.custom.ts

vite v5.2.8 building for production...
transforming...
✓ 11 modules transformed.
rendering chunks...
computing gzip size...
custom_components_dist/style.css         1.33 kB │ gzip: 0.44 kB
custom_components_dist/templates.umd.js  4.36 kB │ gzip: 1.68 kB
✓ built in 199ms

--- other minor changes