Created
May 16, 2023 18:42
-
-
Save frehner/ae41dcf3de3a3fbfd712868a008bfce8 to your computer and use it in GitHub Desktop.
The only way to do dot notation components that works with treeshaking
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 * as MyLib from 'my-lib'; | |
MyLib.Comp1 | |
MyLib.Comp2 |
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 {Comp1} from './comp1.ts'; | |
export {Comp2} from './comp2.ts' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment