-
Notifications
You must be signed in to change notification settings - Fork 7
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
Webpack does not resolve module 'bubblechart' even if module was installed via npm #3
Comments
This was premature. I can see the files present at dist now. My issue resolving the module should have other reason. In case you are curious my real problem is this error output from a Webpack build:
|
Thanks! Back when this was originally built I did not do a good job of making it play well with module loaders. I would definitely accept a Pull Request to improve the module loader compatibility. 👍 |
Adding main entry to
|
Right, but I think we also need to make sure it doesn't attach globally when required, but return the It should only attach globally when not requiring via a module system. See this for example |
Excellent point 👍 |
In order to use this as a module through
npm
, you need to manually build it before hand. Which means having things likegrunt
installed, even if you are relying on other build system likewebpack
, for instance.The usual approach to this is build and publish minified and dist source code along with rest of code at GitHub.
The text was updated successfully, but these errors were encountered: