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
9bb84b6
commit 6c4610f
Showing
10 changed files
with
63 additions
and
8 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
3 changes: 3 additions & 0 deletions
3
test/form/samples/exported-class-declaration-conflict/_config.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,3 @@ | ||
module.exports = { | ||
description: 'handles exporting class declarations with name conflicts in SystemJS' | ||
}; |
10 changes: 10 additions & 0 deletions
10
test/form/samples/exported-class-declaration-conflict/_expected/amd.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,10 @@ | ||
define(['exports'], (function (exports) { 'use strict'; | ||
|
||
let Foo$1 = class Foo {}; | ||
|
||
class Foo {} | ||
|
||
exports.First = Foo$1; | ||
exports.Second = Foo; | ||
|
||
})); |
8 changes: 8 additions & 0 deletions
8
test/form/samples/exported-class-declaration-conflict/_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,8 @@ | ||
'use strict'; | ||
|
||
let Foo$1 = class Foo {}; | ||
|
||
class Foo {} | ||
|
||
exports.First = Foo$1; | ||
exports.Second = Foo; |
5 changes: 5 additions & 0 deletions
5
test/form/samples/exported-class-declaration-conflict/_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,5 @@ | ||
let Foo$1 = class Foo {}; | ||
|
||
class Foo {} | ||
|
||
export { Foo$1 as First, Foo as Second }; |
13 changes: 13 additions & 0 deletions
13
test/form/samples/exported-class-declaration-conflict/_expected/iife.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 @@ | ||
(function (exports) { | ||
'use strict'; | ||
|
||
let Foo$1 = class Foo {}; | ||
|
||
class Foo {} | ||
|
||
exports.First = Foo$1; | ||
exports.Second = Foo; | ||
|
||
return exports; | ||
|
||
})({}); |
12 changes: 12 additions & 0 deletions
12
test/form/samples/exported-class-declaration-conflict/_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,12 @@ | ||
System.register([], (function (exports) { | ||
'use strict'; | ||
return { | ||
execute: (function () { | ||
|
||
let Foo$1 = class Foo {}; exports('First', Foo$1); | ||
|
||
class Foo {} exports('Second', Foo); | ||
|
||
}) | ||
}; | ||
})); |
2 changes: 2 additions & 0 deletions
2
test/form/samples/exported-class-declaration-conflict/first.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,2 @@ | ||
class Foo {} | ||
export { Foo }; |
2 changes: 2 additions & 0 deletions
2
test/form/samples/exported-class-declaration-conflict/main.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,2 @@ | ||
export { Foo as First } from './first'; | ||
export { Foo as Second } from './second'; |
2 changes: 2 additions & 0 deletions
2
test/form/samples/exported-class-declaration-conflict/second.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,2 @@ | ||
class Foo {} | ||
export { Foo }; |