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

Creating reusable libraries with RequireJS & AlmondJS #118

Open
SkyIsTheLimit opened this issue Jul 17, 2016 · 1 comment
Open

Creating reusable libraries with RequireJS & AlmondJS #118

SkyIsTheLimit opened this issue Jul 17, 2016 · 1 comment

Comments

@SkyIsTheLimit
Copy link

SkyIsTheLimit commented Jul 17, 2016

Hi,

I'm trying to create a large application using requirejs and angular. The idea is to be able to compose applications of smaller reusable components developed and packaged using requirejs.

I have created a small component with just a single file and built it to an optimized file using wrap and almondjs to create a self contained module that can be included with other requirejs applications. The problem that I'm facing now is that internally within my smaller component I require angular as a dependency but do not include it with the optimized version of the component because other components would also be built on angular and I wouldn't want to include angular with every component. It would make more sense to be able to use angular from the main application in which these components are included. However, by using almond to create a reusable module, the individual component modules have lost the context of the parent application and hence cannot load angular using the configuration of the parent application.

Is there something I can do about this?

@Legends
Copy link

Legends commented Jan 17, 2017

DEAD!

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

2 participants