Tom Select is a lightweight (~16kb gzipped) hybrid of a textbox and select box. Forked from selectize.js to provide a framework agnostic autocomplete widget with native-feeling keyboard navigation. Useful for tagging, contact lists, etc.
I'm trying to use this package with the Symfony Asset Mapper, which leverages ESM loading to avoid Node/npm as a requirement. This seems to work well with your package, except for the fact that the CSS dist file is not mapped in the package.json, so ESM does not see that.
Expected behavior
CSS is included in the package, so that CDNs like jsDelivr will consider it and add to the needed files.
Bug description
I'm trying to use this package with the Symfony Asset Mapper, which leverages ESM loading to avoid Node/npm as a requirement. This seems to work well with your package, except for the fact that the CSS dist file is not mapped in the
package.json
, so ESM does not see that.Expected behavior
CSS is included in the package, so that CDNs like jsDelivr will consider it and add to the needed files.
Steps to reproduce
Additional context
The Symfony docs refer to the package.json configuration file as a way to fix this; we probably need to add keys like
sass
orstyle
to the root of thepackage.json
, like Bootstrap does: https://github.com/twbs/bootstrap/blob/e3e00b5002139adb0d5dadd6002e15b7b6cd371f/package.json#L40