enable the allowUndeclaredExports Babel option (#6660)
This commit is contained in:
1 parent
ab598e6e23
commit
d4537dc5f2
3 files changed
+7
No files matched your search
@@ -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 };
|
||||
|
||||
================================================================================
|
||||
`;
|
||||
@@ -5,3 +5,5 @@ export a,{b} from "./baz";
|
||||
export * as ns from "mod";
|
||||
|
||||
export * as foo,{bar} from "./baz";
|
||||
|
||||
export { undefinedExport };
|
||||
Reference in new issue
Block a user