-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[systemjs] Fix: export star alongside with single export named
- Loading branch information
1 parent
cba64f9
commit 85757c4
Showing
3 changed files
with
61 additions
and
25 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
5 changes: 5 additions & 0 deletions
5
...modules-systemjs/test/fixtures/systemjs/export-named-alongside-with-export-star/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,5 @@ | ||
export { default } from 'foo'; | ||
export * from 'foo'; | ||
|
||
export { a, b } from 'bar'; | ||
export * from 'bar'; |
29 changes: 29 additions & 0 deletions
29
...odules-systemjs/test/fixtures/systemjs/export-named-alongside-with-export-star/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,29 @@ | ||
System.register(["foo", "bar"], function (_export, _context) { | ||
"use strict"; | ||
|
||
return { | ||
setters: [function (_foo) { | ||
var _exportObj = {}; | ||
|
||
for (var _key in _foo) { | ||
if (_key !== "default" && _key !== "__esModule") _exportObj[_key] = _foo[_key]; | ||
} | ||
|
||
_exportObj.default = _foo.default; | ||
|
||
_export(_exportObj); | ||
}, function (_bar) { | ||
var _exportObj2 = {}; | ||
|
||
for (var _key2 in _bar) { | ||
if (_key2 !== "default" && _key2 !== "__esModule") _exportObj2[_key2] = _bar[_key2]; | ||
} | ||
|
||
_exportObj2.a = _bar.a; | ||
_exportObj2.b = _bar.b; | ||
|
||
_export(_exportObj2); | ||
}], | ||
execute: function () {} | ||
}; | ||
}); |