Skip to content
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

optional dependencies #83

Open
adriano-di-giovanni opened this issue Aug 3, 2016 · 2 comments
Open

optional dependencies #83

adriano-di-giovanni opened this issue Aug 3, 2016 · 2 comments

Comments

@adriano-di-giovanni
Copy link

I don't know if I can post this question here. Feel free to reject it, please.

What if my universal module need underscore OR lodash? May I be explicit about that in my module definition?

Thanks,
Adriano

@pgn-vole
Copy link

I would love to hear about that as well.
Let say I've an UMD module which contains tons of submodules, some of these submodules depends on libraries (let say moment.js) that are not necessary for others to work. I would like for my module to be properly initialized even if those dependencies are not defined.

This behavior works fine for the global exports of the wrapper because if root.whatever is not defined well the module will be initialized with this dependency beeing undefined. But in case of AMD and commonjs it just crashes because require('something-which-doesntexist') and define(['something-which-doesntexist']) throws.

@bonebizz21
Copy link

Please fix mine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants