Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove webpack build, bundle nanoid #224

Open
cp2004 opened this issue Jul 14, 2022 · 0 comments
Open

Remove webpack build, bundle nanoid #224

cp2004 opened this issue Jul 14, 2022 · 0 comments
Labels
request New feature or request

Comments

@cp2004
Copy link
Owner

cp2004 commented Jul 14, 2022

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.

@cp2004 cp2004 added the request New feature or request label Feb 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
request New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant