clean up explosion of module declarations, remove and inherit comments when taking off the declaration - fixes #1583

This commit is contained in:
Sebastian McKenzie
2015-05-21 01:03:23 +01:00
parent 16f7b967b5
commit f2f6bbb02c
4 changed files with 39 additions and 17 deletions

View File

@@ -0,0 +1,4 @@
bar();
// bar
export function foo() {}

View File

@@ -0,0 +1,8 @@
"use strict";
export { foo };
bar();
// bar
function foo() {}

View File

@@ -0,0 +1,4 @@
{
"blacklist": ["es6.modules"],
"noCheckAst": true
}