Better error for export * as ns without the correct plugin (#13296)
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
export * as ns from "./foo";
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"throws": "Export namespace should be first transformed by `@babel/plugin-proposal-export-namespace-from`."
|
||||
}
|
||||
5
packages/babel-plugin-transform-modules-commonjs/test/fixtures/noInterop-loose/options.json
vendored
Normal file
5
packages/babel-plugin-transform-modules-commonjs/test/fixtures/noInterop-loose/options.json
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"plugins": [
|
||||
["transform-modules-commonjs", { "noInterop": true, "loose": true }]
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user