felixge / node-sandboxed-module

A sandboxed node.js module loader that lets you inject dependencies into your modules.
MIT License
342 stars 42 forks source link

#41 source transformers for recursion #46

Closed mminder closed 9 years ago

mminder commented 9 years ago

We are using React in our project. .jsx files need to be transformed to .js files. It is not enough to transform the file under test, also other .jsx files required by the file under test need to be transformed.

This minimal change would allow this and fix issue #41 .

domenic commented 9 years ago

Nice!

I'd like to flip the configuration around a bit, if you don't mind:

If we can manage this then I'll release a 2.0.0 with the new defaults.

mminder commented 9 years ago

Ok, I did the changes. hope I understood you correctly ;) Otherwise feel free to comment or change my code.

domenic commented 9 years ago

Thanks! Merged as 16136b82ffa065aca4217ab7cf31a2751ce496b5 with some follow-up tweaks in b029c26ae3cb2f3ae69d8b52a91045832539f785