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

coffee-script support #6

Closed ichernev closed 12 years ago

ichernev commented 12 years ago

It seems that this module doesn't play nice with coffee-script files. However, if I compile the coffee to js it executes nicely.

I'm using node v.0.6.9 with sandboxed module 0.1.2, coffee-script v 1.2.0.

felixge commented 12 years ago

I'm surprised that it doesn't work. An example would have been great.

That being said, I'm not going to support / "fix" this anytime soon as I don't use coffee script that much. I would accept a patch for it so.

ichernev commented 12 years ago

https://gist.github.com/1869953 download and run, it will create some files in ./tmp

domenic commented 12 years ago

Looks like this was fixed by #12.

felixge commented 12 years ago

Thanks for going over these issues @domenic !