Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6889 from Janpot/issue-6867
Issue 6867
- Loading branch information
Showing
10 changed files
with
70 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export default function() {} |
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 default (function() {}) |
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 default function foo() {} |
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 default (function bar() {}) |
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 default class {} |
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 default (class {}) |
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 default class A {} |
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 default (class A {}) |
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,57 @@ | ||
it("should compile default export unnamed function declaration", function() { | ||
return import(/* webpackChunkName: "a" */ "./a") | ||
.then(({ default: a }) => { | ||
a() | ||
}); | ||
}); | ||
|
||
|
||
it("should compile default export unnamed function expression", function() { | ||
return import(/* webpackChunkName: "b" */ "./b") | ||
.then(({ default: b }) => { | ||
b() | ||
}); | ||
}); | ||
|
||
it("should compile default export named function declaration", function() { | ||
return import(/* webpackChunkName: "c" */ "./c") | ||
.then(({ default: c }) => { | ||
c() | ||
}); | ||
}); | ||
|
||
it("should compile default export named function expression", function() { | ||
return import(/* webpackChunkName: "d" */ "./d") | ||
.then(({ default: d }) => { | ||
d() | ||
}); | ||
}); | ||
|
||
it("should compile default export unnamed class declaration", function() { | ||
return import(/* webpackChunkName: "e" */ "./e") | ||
.then(({ default: E }) => { | ||
new E() | ||
}); | ||
}); | ||
|
||
|
||
it("should compile default export unnamed class expression", function() { | ||
return import(/* webpackChunkName: "f" */ "./f") | ||
.then(({ default: F }) => { | ||
new F() | ||
}); | ||
}); | ||
|
||
it("should compile default export named class declaration", function() { | ||
return import(/* webpackChunkName: "g" */ "./g") | ||
.then(({ default: G }) => { | ||
new G() | ||
}); | ||
}); | ||
|
||
it("should compile default export named class expression", function() { | ||
return import(/* webpackChunkName: "h" */ "./h") | ||
.then(({ default: H }) => { | ||
new H() | ||
}); | ||
}); |