angular icon indicating copy to clipboard operation
angular copied to clipboard

Can 1.4 require loader now be used to read the source for Angular?

Open pauleveritt opened this issue 10 years ago • 1 comments

I was wondering out the CommonJS-ification of 1.4 might make it easier for angular-node. Obviously it replaces the work angular-node was doing to be importable. But for use outside of a browser, via jsdom, you still need the work custom.js is doing to read the JS source and modify the string before loading. Which means, having a private copy of Angular.

But can this part be eliminated? I don't know how require works, but can you use CommonJS to locate the path to an npm-installed Angular?

Sure wish Angular 1.4 had a hook that let you swap the window and the document.

Ben, alternatively you could declare this project as no longer interesting to you. :)

pauleveritt avatar Mar 09 '15 16:03 pauleveritt

Ben, alternatively you could declare this project as no longer interesting to you. :)

I think that is kind of where I'm at. :) Happy to add maintainers of anyone is interested in taking it over.

bclinkinbeard avatar Mar 09 '15 16:03 bclinkinbeard