Skip to content

Commit

Permalink
default is a reserved word
Browse files Browse the repository at this point in the history
Quoting it to fix in older browsers, especially Android 2.3.x.
  • Loading branch information
grassick committed Feb 18, 2015
1 parent 3c9ff77 commit 71690ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// Create a simple path alias to allow browserify to resolve
// the runtime on a supported path.
module.exports = require('./dist/cjs/handlebars.runtime').default;
module.exports = require('./dist/cjs/handlebars.runtime')['default'];

1 comment on commit 71690ae

@igorsechyn
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this also breaks the minification with yui compressor. i know, nobody is using the yui compressor any more, but we are hostages of a cms system, and have no other choice so far. is there a time plan, when this fix will be published on npm? we are using browserify to bundle our code and this comes as a dependency of the hbsfy transformation

Please sign in to comment.