Open isadovskiy opened 11 years ago
I don't know if that will be possible. The Jade compiler requires Node. I'm not too familiar with Rhino.
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
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