thlorenz / proxyquire

🔮 Proxies nodejs require in order to allow overriding dependencies during testing.
MIT License
2.75k stars 100 forks source link

Using proxquire with jspm / SystemJS #125

Closed screendriver closed 8 years ago

screendriver commented 8 years ago

Is it possible to use proxyquire with jspm / SystemJS that runs in the browser? I tried a lot but I don't get it running.

bendrucker commented 8 years ago

See proxyquireify. That's the only option for the browser.

screendriver commented 8 years ago

Ok. Too bad. Browserify ist completely different to jspm / SystemJS. But thank you for your quick response 👍

bendrucker commented 8 years ago

Yup, that's the reason I still use and love Browserify versus other larger APIs like Webpack and entirely different conceptual tools like SystemJS. Browserify ships with the least and had an incredibly rich ecosystem of 3rd party tools, many of which are extremely mature.

screendriver commented 8 years ago

It depends 😁 I prefer technologies that are based on an industry standard specification that are working without any compilation / transpilation steps right in the browser as if they would support it natively. So I have not to change any code / builds when the browsers are ready to support it natively. It just works without any modifications in the future 😉