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
This plugin uses nanoid (possibly unnecessarily?), with import { nanoid } ..., and bundles this with webpack.
I'm bored of seeing dependabot updates for all these dependencies, so I will delete the webpack build - it's not used for anything other than old-browser compatibility with babel.
To import nanoid into the browser as a dependency, could do it like this
<script type="module">
import { nanoid } from '.......static etc./nanoid.js'
</script>
Or just bin it entirely, depending on why it is needed.
The text was updated successfully, but these errors were encountered:
This plugin uses nanoid (possibly unnecessarily?), with
import { nanoid } ...
, and bundles this with webpack.I'm bored of seeing dependabot updates for all these dependencies, so I will delete the webpack build - it's not used for anything other than old-browser compatibility with babel.
To import nanoid into the browser as a dependency, could do it like this
Or just bin it entirely, depending on why it is needed.
The text was updated successfully, but these errors were encountered: