Skip to content

Commit

Permalink
Parser: Change suffix to use ES6 default module export
Browse files Browse the repository at this point in the history
- This export will be transpiled by Babel for the cjs distribution,
  but will enable others to  use a pure ES6 module distribution
- Instanbul: Ignore "parser.js" for coverage reporting. This file was ignored before
  via annotation, but this has no effect anymore due to the above change

Squashed by @nknapp
  • Loading branch information
Turbo87 authored and nknapp committed Feb 24, 2017
1 parent ad341bf commit 1b55017
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .istanbul.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
instrumentation:
excludes: ['**/spec/**']
excludes: ['**/spec/**', '**/handlebars/compiler/parser.js']
3 changes: 1 addition & 2 deletions src/parser-suffix.js
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
exports.__esModule = true;
exports['default'] = handlebars;
export default handlebars;

0 comments on commit 1b55017

Please sign in to comment.