donejs / done-component

A plugin for creating <can-component>s
https://www.npmjs.com/package/done-component
MIT License
8 stars 2 forks source link

Make the component the default export #93

Closed matthewp closed 6 years ago

matthewp commented 6 years ago

When using the new canjs routing setup, you want the default export to be the Component so that you can do:

const Component = (await import('something.component')).default;

new Component()