Open huafu opened 11 years ago
Just tested with precompile: no
and got the same error (except the type:[= STRING]
since it's not precompiled of course). Sounds like only the first template got compiled into
window.require.register("templates/application", function(exports, require, module)
{
Ember.TEMPLATES[=application] = Ember.Handlebars.compile(...
where it should be, as the following ones:
window.require.register("templates/application", function(exports, require, module
{
Ember.TEMPLATES['application'] = Ember.Handlebars.compile(...
I have an application using your plugin, and all works fine until I uses the
--optimize
options while runningbrunch build
. Other scripts compile correctly while optimizing, I got the ember debug lines in the console, but it's telling me there is an unexpected=
in the template.js file:Here is my config:
And I can see in this javascript, after reformatting it for better reading, where is the unexpected
=
(in fact there is not only one, but many):So as you can see there are problematic
=
first inEmber.TEMPLATES[= application]
(where also application should be surrounded by quotes but isn't), and then intypes:[= STRING]
(which I can find in any "program" function created).Feel free to ask for more information(s) to debug if needed.