Skip to content

Commit 508347e

Browse files
Turbo87nknapp
authored andcommitted
Parser: Change suffix to use ES6 default module export
- 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
1 parent ad341bf commit 508347e

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

.istanbul.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
instrumentation:
2-
excludes: ['**/spec/**']
2+
excludes: ['**/spec/**', '**/handlebars/compiler/parser.js']

src/parser-prefix.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
/* istanbul ignore next */
1+
// File ignored in coverage tests via setting in .istanbul.yml

src/parser-suffix.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
exports.__esModule = true;
2-
exports['default'] = handlebars;
1+
export default handlebars;

0 commit comments

Comments
 (0)