-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This adds a default export object containing all named exports. Eg.: ```js import _king from './king.js'; export const king = _king; import _queen from './queen'; export const queen = _queen; export default { king, queen }; ```
- Loading branch information
1 parent
be0e6fd
commit 240c7e8
Showing
4 changed files
with
64 additions
and
11 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
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 |
---|---|---|
@@ -1,5 +1,13 @@ | ||
'create index'; | ||
|
||
export bar from './bar'; | ||
export foo from './foo.js'; | ||
import _bar from './bar'; | ||
export const bar = _bar; | ||
|
||
import _foo from './foo.js'; | ||
export const foo = _foo; | ||
|
||
export default { | ||
bar, | ||
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