When I try to build a production.js file for my project I'm seeing steal complain on parsing code inside can/view/mustache/mustache.js. I was able to build a basic example that shows this issue: https://gist.github.com/anonymous/6598966
Strangely, it seems to be the combination of steal.dev.log and the inclusion of can/view/mustache/mustache.js that is causing this issue. When I remove the steal.dev.log statement, the build succeeds. I've provided the standard out from when I try to run the build:
> ./build.sh
Building to ./
opening brx/scripts/build.html
adding dependencies
+ stealconfig.js
+ stealtest.js
+ can/can.js
+ can/util/jquery/jquery.js
+ jquery
+ can/util/can.js
+ can/util/array/each.js
+ can/control/route/route.js
+ can/route/route.js
+ can/observe/observe.js
+ can/util/bind/bind.js
+ can/construct/construct.js
+ can/util/string/string.js
+ can/util/string/deparam/deparam.js
+ can/control/control.js
+ can/model/model.js
+ can/view/ejs/ejs.js
+ can/view/view.js
+ can/observe/compute/compute.js
+ can/view/scanner.js
+ can/view/elements.js
+ can/view/render.js
+ can/view/live.js
+ can/view/node_lists.js
+ can/view/mustache/mustache.js
no packages
Building ./production.js
last = index + $0.l
ength;
}
Parsing problem
steal/parse/tokens.js Bad number with 0.l.
last = index + $0.length;
}
});
names.push(ref.