deedubs / require-jade

Add jade to requireJS
MIT License
55 stars 17 forks source link

Optimization error when compiling using Rhino #13

Open isadovskiy opened 11 years ago

isadovskiy commented 11 years ago

Optimizer gives "Error: Environment unsupported." error when compiling project using Rhino. Everything works fine when using NodeJS optimizer.

Looks like this is the same issue as described here for CofeeScript requirejs plugin: https://groups.google.com/forum/#!msg/requirejs/RhjP4RWaqSA/YuMHkpGgCnMJ

Looks like they found some easy solution to fix it. Could you fix it for Jade plugin as well?

Thanks, Igor

vincentmac commented 11 years ago

I don't know if that will be possible. The Jade compiler requires Node. I'm not too familiar with Rhino.

isadovskiy commented 11 years ago

May be this could help

https://github.com/jrburke/require-cs/commit/657cec25e666539ed1b57211767e3c840d44be2c

Guys did this fix to eliminate similar issue for coffee script requirejs plugin