enable the allowUndeclaredExports Babel option (#6660)

This commit is contained in:
Georgii Dolzhykov authored and GitHub committed 2019-10-15 18:32:46 +03:00
1 parent ab598e6e23
commit d4537dc5f2
3 files changed
+7

No files matched your search

+1
View File
@@ -16,6 +16,7 @@ function babelOptions(extraOptions, extraPlugins) {
allowImportExportEverywhere: true,
allowReturnOutsideFunction: true,
allowSuperOutsideMethod: true,
allowUndeclaredExports: true,
plugins: [
"jsx",
"doExpressions",
@@ -14,6 +14,8 @@ export * as ns from "mod";
export * as foo,{bar} from "./baz";
export { undefinedExport };
=====================================output=====================================
export {
value1,
@@ -29,5 +31,7 @@ export * as ns from "mod";
export * as foo, { bar } from "./baz";
export { undefinedExport };
================================================================================
`;
+2
View File
@@ -5,3 +5,5 @@ export a,{b} from "./baz";
export * as ns from "mod";
export * as foo,{bar} from "./baz";
export { undefinedExport };