Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
48fff90
commit f2b8ee6
Showing
4 changed files
with
48 additions
and
0 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
13 changes: 13 additions & 0 deletions
13
test/form/samples/ns-external-star-reexport/_expected/cjs.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,13 @@ | ||
'use strict'; | ||
|
||
var externalNs1 = require('external-ns-1'); | ||
var externalNs2 = require('external-ns-2'); | ||
|
||
const val = 5; | ||
|
||
var ns = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.assign(externalNs1, externalNs2, { | ||
__proto__: null, | ||
val: val | ||
})); | ||
|
||
module.exports = ns; |
11 changes: 11 additions & 0 deletions
11
test/form/samples/ns-external-star-reexport/_expected/es.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,11 @@ | ||
import * as externalNs1 from 'external-ns-1'; | ||
import * as externalNs2 from 'external-ns-2'; | ||
|
||
const val = 5; | ||
|
||
var ns = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.assign(externalNs1, externalNs2, { | ||
__proto__: null, | ||
val: val | ||
})); | ||
|
||
export default ns; |
23 changes: 23 additions & 0 deletions
23
test/form/samples/ns-external-star-reexport/_expected/system.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,23 @@ | ||
System.register(['external-ns-1', 'external-ns-2'], function (exports) { | ||
'use strict'; | ||
var externalNs1, externalNs2; | ||
return { | ||
setters: [function (module) { | ||
externalNs1 = module; | ||
}, function (module) { | ||
externalNs2 = module; | ||
}], | ||
execute: function () { | ||
|
||
const val = 5; | ||
|
||
var ns = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.assign(externalNs1, externalNs2, { | ||
__proto__: null, | ||
val: val | ||
})); | ||
|
||
exports('default', ns); | ||
|
||
} | ||
}; | ||
}); |