You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a project we would love to use this library for, but it would not be run via npm. Would be great to be able to have an module version (and maybe umd) to be able to import.
Happy to contribute it! Just want to make sure you are open before making a PR
The text was updated successfully, but these errors were encountered:
chaffeqa
changed the title
[FEATURE]: publish to CDN
[FEATURE]: Publish to CDN
May 31, 2024
@chaffeqa If you run npm run build for this project, it will build an index.mjs file in the dist directory (along with an .d.mts file) -- would this meet your needs?
Unfortunately no, I figured that out, but I have a few issues still:
It requires me to have an npm project. We have a rails website with a single page we want to load the builder into. The best solution is to load js scripts from a cdn.
Mjs versions require all other libs to be mjs, which not all are as of right now. Even react suggests loading the umd version via browser.
Right now I'm working around this by running a roll-up locally to build the umd version from the node_modules. It's a pretty involved step that I wouldn't expect most devs to know how to do. Took me a few hours to stumble through and is an extra build step
We have a project we would love to use this library for, but it would not be run via npm. Would be great to be able to have an module version (and maybe umd) to be able to import.
Happy to contribute it! Just want to make sure you are open before making a PR
The text was updated successfully, but these errors were encountered: