Created
November 30, 2020 10:39
-
-
Save cawa-93/2d62803d98be6d2153b020f6d5879e5d to your computer and use it in GitHub Desktop.
reexport-test
This file contains hidden or 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
| export { B as ButtonComponent } from './main.js'; | |
| function IconComponent() { | |
| console.log('This is IconComponent'); | |
| } | |
| function HeavyComponent() { | |
| console.log('This is HeavyComponent'); | |
| } | |
| export { HeavyComponent, IconComponent }; |
This file contains hidden or 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
| function ButtonComponent() { | |
| console.log('This is ButtonComponent'); | |
| } | |
| ButtonComponent(); | |
| import('./index-407b6fe0.js').then(({IconComponent}) => IconComponent()); | |
| export { ButtonComponent as B }; |
This file contains hidden or 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
| export function HeavyComponent() { | |
| console.log('This is HeavyComponent'); | |
| } |
This file contains hidden or 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
| export function IconComponent() { | |
| console.log('This is IconComponent'); | |
| } |
This file contains hidden or 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
| export * from './ButtonComponent.js' | |
| export * from './IconComponent.js' | |
| export * from './HeavyComponent.js' |
This file contains hidden or 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
| import {ButtonComponent} from './components/index.js'; | |
| ButtonComponent() | |
| import('./components/index.js').then(({IconComponent}) => IconComponent()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment