jrburke/r.js — Issue #72: Be able to support building JS 1.8/ES.next code
Author: jrburke
Created: 2012-01-05 03:52:41+00:00
State: open

Right now uglifyjs is used to get an AST to walk looking for define calls and dependencies to generate the build. This will likely fail on JS 1.8 code.

Look at swapping out the AST generator to something else if uglifyjs will not work. I've plaid with narcissus lexer/parser in the past, look at it again. Just need enough of a an AST to get the define/require calls, so it can be tolerant/skip other things.

This is related to [this ticket enabling runtime loading of JS 1.8 code](https://github.com/jrburke/requirejs/issues/157).