From 508347ea9440368efd43f08e05f70435e0e8a9b6 Mon Sep 17 00:00:00 2001 From: Tobias Bieniek Date: Thu, 23 Feb 2017 17:44:31 +0100 Subject: [PATCH] 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 --- .istanbul.yml | 2 +- src/parser-prefix.js | 2 +- src/parser-suffix.js | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.istanbul.yml b/.istanbul.yml index e6911f19..960643ef 100644 --- a/.istanbul.yml +++ b/.istanbul.yml @@ -1,2 +1,2 @@ instrumentation: - excludes: ['**/spec/**'] + excludes: ['**/spec/**', '**/handlebars/compiler/parser.js'] diff --git a/src/parser-prefix.js b/src/parser-prefix.js index e26b9934..d9ed0411 100644 --- a/src/parser-prefix.js +++ b/src/parser-prefix.js @@ -1 +1 @@ -/* istanbul ignore next */ +// File ignored in coverage tests via setting in .istanbul.yml diff --git a/src/parser-suffix.js b/src/parser-suffix.js index 1f69f7a4..6e4aa20d 100644 --- a/src/parser-suffix.js +++ b/src/parser-suffix.js @@ -1,2 +1 @@ -exports.__esModule = true; -exports['default'] = handlebars; +export default handlebars;