If you use the plugin @codecoupler/cc-webpack-externals-plugin
in your Webpack configuration
you can install with this package the NPM module nanoid
and automatically configure this
as external library. The module will not be included in your library bundle.
Usage:
npm i @cc-external/nanoid
The version number of this package matches the major and minor number of the module nanoid
that is included as dependency. The patch number do not correspond to the module patch number.
This Package include the compiled Version of nanoid
and the origin module is not needed.
Nevertheless, you have to use the module name nanoid
in your import statements.