require-jade icon indicating copy to clipboard operation
require-jade copied to clipboard

Optimization error when compiling using Rhino

Open isadovskiy opened this issue 13 years ago • 2 comments

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

isadovskiy avatar Mar 13 '13 10:03 isadovskiy

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

vincentmac avatar Mar 13 '13 20:03 vincentmac

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

isadovskiy avatar Mar 13 '13 22:03 isadovskiy