Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(factory): work to export instance
``` export class Foo {} export default new Foo() ```
- Loading branch information
1 parent
d656ff5
commit 43b9207
Showing
3 changed files
with
40 additions
and
15 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
19 changes: 19 additions & 0 deletions
19
test/fixture/package/src/Export/NewExpressionAndExported.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,19 @@ | ||
/** | ||
* this is TestExportNewExpressionAndExported. | ||
*/ | ||
export class TestExportNewExpressionAndExported {} | ||
|
||
/** | ||
* this is instance of TestExportNewExpressionAndExported. | ||
*/ | ||
export default new TestExportNewExpressionAndExported(); | ||
|
||
/** | ||
* this is TestExportNewExpressionAndExported2. | ||
*/ | ||
export class TestExportNewExpressionAndExported2 {} | ||
|
||
/** | ||
* this is instance of TestExportNewExpressionAndExported2. | ||
*/ | ||
export const testExportNewExpressionAndExported2 = new TestExportNewExpressionAndExported2(); |