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
- Remove istanbul annotation from `parser-prefix` (@nknapp)

Squashed by @nknapp

(cherry picked from commit 508347e)
  • Loading branch information
Turbo87 authored and nknapp committed Feb 24, 2017
1 parent 63a8e0c commit b617375
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .istanbul.yml
@@ -1,2 +1,2 @@
instrumentation:
excludes: ['**/spec/**']
excludes: ['**/spec/**', '**/handlebars/compiler/parser.js']
2 changes: 1 addition & 1 deletion src/parser-prefix.js
@@ -1 +1 @@
/* istanbul ignore next */
// File ignored in coverage tests via setting in .istanbul.yml
3 changes: 1 addition & 2 deletions src/parser-suffix.js
@@ -1,2 +1 @@
exports.__esModule = true;
exports['default'] = handlebars;
export default handlebars;

0 comments on commit b617375

Please sign in to comment.