maccman / sprockets-commonjs

Adds CommonJS support to Sprockets
178 stars 66 forks source link

Consider making "require sprockets/commonjs" explicit (or configurable) #38

Closed tylergannon closed 9 years ago

tylergannon commented 9 years ago

Hi, I've got a Rails application that shares some legacy angular modules with some newer, es6/react stuff. I had to monkeypatch this gem once I saw that it was injecting the file into all of my applications, and breaking some of them.

It would be nice if it could be "turned on" in the normal way, by doing

//= require sprockets/commonjs

Thanks! Tyler