OctoPrint-WLED icon indicating copy to clipboard operation
OctoPrint-WLED copied to clipboard

Remove webpack build, bundle nanoid

Open cp2004 opened this issue 1 year ago • 0 comments

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 avatar Jul 14 '22 14:07 cp2004