Better error for export * as ns without the correct plugin (#13296)

This commit is contained in:
Huáng Jùnliàng
2021-05-11 18:40:13 -04:00
committed by GitHub
parent cca97d1e78
commit 9e241fc180
4 changed files with 28 additions and 5 deletions

View File

@@ -0,0 +1,2 @@
export * as ns from "./foo";

View File

@@ -0,0 +1,3 @@
{
"throws": "Export namespace should be first transformed by `@babel/plugin-proposal-export-namespace-from`."
}

View File

@@ -0,0 +1,5 @@
{
"plugins": [
["transform-modules-commonjs", { "noInterop": true, "loose": true }]
]
}