yuku / textcomplete

Autocomplete for HTMLTextAreaElement and more.
https://yuku.takahashi.coffee/textcomplete/
MIT License
1.74k stars 305 forks source link

Distributable JS file #357

Open njt1982 opened 1 year ago

njt1982 commented 1 year ago

Hi,

This is related to https://github.com/yuku/textcomplete/issues/352 - it doesn't look like your build change generates a distributable JS file for use directly on the web?

You seem to have to include this as part of an existing build chain and have something compile it out.

I've tried building it into a packes JS file using JSDelivr, but I'm getting errors about export in the console: https://cdn.jsdelivr.net/combine/npm/@textcomplete/core@0.1.12,npm/@textcomplete/contenteditable@0.1.12,npm/@textcomplete/utils@0.1.12

This indicates the minified JS is being built to CommonJS rather than ES?

Similarly to #352, it would be nice if there was a top level package which included all of your subpackages and could just be loaded without needing to build the output JS... :)