[Bug]: vanilla
missing from exports in package.json
- but necessary for many plugins
#825
Labels
bug
Something isn't working
Bug description
The release docs for 2.4.1 mention updates to exports in
package.json
. As I was updatingdjango-tomselect
to incorporate these changes, I noticed the tiny custom plugin we have, which usesgetDom
from vanilla, could not be updated to remove the deprecatedsrc/
in the path. In fact, many plugins import various things fromvanilla
, but when various exports were added in 5979369,vanilla
was not among them. This isn't an issue for the built-in plugins, because they use relative imports, but it is an issue for custom plugins.The issue is that the
exports
section ofpackage.json
does not includevanilla.js
I recommend adding the following to exports, which worked perfectly on my local machine:
Expected behavior
Steps to reproduce
See above
Additional context
OS: Ubuntu 24.04
NPM (LTS)
tom-select ^2.4.1
For context, here is the
dropdown_footer
plugin:I am no JavaScript expert, so if I am misunderstanding something, or if there is a better approach than what I recommended here, please let me know.
The text was updated successfully, but these errors were encountered: