specviz module entry points to minified code
The specviz npm module package.json
-
{
"entry": "dist/specviz.min.js",
}
This means when a user import
s the module, they are getting minified code. Bad for development mode!
The entry should point to the main development module -
{
"entry": "src/specviz.js",
}
Now the build process of the package depending on specviz
can bundle/minify accordingly.
Otherwise users can link the pre-built dist/specviz.min.js
using a <script>
tag -