Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add export-namespace-from to preset-env
- Loading branch information
Showing
18 changed files
with
95 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...ges/babel-preset-env/test/fixtures/export-namespace-from/auto-esm-not-supported/input.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * as foo from "./foo.mjs"; |
10 changes: 10 additions & 0 deletions
10
.../babel-preset-env/test/fixtures/export-namespace-from/auto-esm-not-supported/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"validateLogs": true, | ||
"caller": { | ||
"name": "test-fixture", | ||
"supportsStaticESM": false, | ||
"supportsDynamicImport": false, | ||
"supportsExportNamespaceFrom": false | ||
}, | ||
"presets": ["env"] | ||
} |
12 changes: 12 additions & 0 deletions
12
...ges/babel-preset-env/test/fixtures/export-namespace-from/auto-esm-not-supported/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
"use strict"; | ||
|
||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.foo = void 0; | ||
|
||
var _foo = _interopRequireDefault(require("./foo.mjs")); | ||
|
||
exports.foo = _foo; | ||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } |
1 change: 1 addition & 0 deletions
1
...set-env/test/fixtures/export-namespace-from/auto-export-namespace-not-supported/input.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * as foo from "./foo.mjs"; |
9 changes: 9 additions & 0 deletions
9
...-env/test/fixtures/export-namespace-from/auto-export-namespace-not-supported/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"caller": { | ||
"name": "test-fixture", | ||
"supportsStaticESM": true, | ||
"supportsDynamicImport": true, | ||
"supportsExportNamespaceFrom": false | ||
}, | ||
"presets": ["env"] | ||
} |
2 changes: 2 additions & 0 deletions
2
...et-env/test/fixtures/export-namespace-from/auto-export-namespace-not-supported/output.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import * as _foo from "./foo.mjs"; | ||
export { _foo as foo }; |
1 change: 1 addition & 0 deletions
1
...res/export-namespace-from/false-export-namespace-not-supported-caller-supported/input.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * as foo from "./foo.mjs"; |
7 changes: 7 additions & 0 deletions
7
.../export-namespace-from/false-export-namespace-not-supported-caller-supported/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"caller": { | ||
"name": "test-fixture", | ||
"supportsExportNamespaceFrom": true | ||
}, | ||
"presets": [["env", { "modules": false, "targets": "chrome 71" }]] | ||
} |
2 changes: 2 additions & 0 deletions
2
...es/export-namespace-from/false-export-namespace-not-supported-caller-supported/output.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import * as _foo from "./foo.mjs"; | ||
export { _foo as foo }; |
1 change: 1 addition & 0 deletions
1
...et-env/test/fixtures/export-namespace-from/false-export-namespace-not-supported/input.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * as foo from "./foo.mjs"; |
7 changes: 7 additions & 0 deletions
7
...env/test/fixtures/export-namespace-from/false-export-namespace-not-supported/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"caller": { | ||
"name": "test-fixture", | ||
"supportsExportNamespaceFrom": false | ||
}, | ||
"presets": [["env", { "modules": false, "targets": "chrome 71" }]] | ||
} |
2 changes: 2 additions & 0 deletions
2
...t-env/test/fixtures/export-namespace-from/false-export-namespace-not-supported/output.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import * as _foo from "./foo.mjs"; | ||
export { _foo as foo }; |
1 change: 1 addition & 0 deletions
1
...preset-env/test/fixtures/export-namespace-from/false-export-namespace-supported/input.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * as foo from "./foo.mjs"; |
7 changes: 7 additions & 0 deletions
7
...set-env/test/fixtures/export-namespace-from/false-export-namespace-supported/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"caller": { | ||
"name": "test-fixture", | ||
"supportsExportNamespaceFrom": false | ||
}, | ||
"presets": [["env", { "modules": false, "targets": "chrome 72" }]] | ||
} |
1 change: 1 addition & 0 deletions
1
...reset-env/test/fixtures/export-namespace-from/false-export-namespace-supported/output.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * as foo from "./foo.mjs"; |