-
Notifications
You must be signed in to change notification settings - Fork 291
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
external dependencies #9
Comments
Sorry for the late reply. Is there |
So the library will be bundled together with all its dependencies? Thanks |
@adamkleingit the proper way for handling this case is webpack's externals. @riskers Now, when I'm reading your question again I think I understood what's going on. Correct me if I'm wrong but you build your library using webpack and then you have a build step (again using webpack) that uses your library. If that's the case then you'll have to use |
But how to include dependencies into your library? |
Oh, solution found |
@gen4sp I've tried your solution above on including dependencies but it's not working correctly because it's now looking for all its dependencies. I'm trying to include request library. |
I resolved my issue by adding the following into the config object:
a good read from jlongster blog |
@riskers do we have to keep the issue open? |
Now, I have a library
xx
dependingjQuery
:I find #3 , so I write this externals:
It's great! The bundle file is small!
But, when I use my library:
then use webpack, the library put
xx
andjQuery
together. I don't know how to separate them?The text was updated successfully, but these errors were encountered: