Skip to content

Instantly share code, notes, and snippets.

@frehner
Created May 16, 2023 18:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save frehner/ae41dcf3de3a3fbfd712868a008bfce8 to your computer and use it in GitHub Desktop.
Save frehner/ae41dcf3de3a3fbfd712868a008bfce8 to your computer and use it in GitHub Desktop.
The only way to do dot notation components that works with treeshaking
import * as MyLib from 'my-lib';
MyLib.Comp1
MyLib.Comp2
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