component/component.github.io

How can you require native templates?

Closed this issue · 4 comments

Hello,

I am wondering why you components do not seem to require their templates to be precompiled to javascript?

https://github.com/component/component.io/blob/master/lib/list/component.json#L11

If I do this I am always getting an error "Failed to require..." (as I did not add them to the script array).

Sorry if this does not fit well to be an issue....

Bodo

The templates are being transpiled by lib/build/templates.js hook at lib/build/index.js#L21

Ah thank you! Will use this in my projects :)

Great, I have assembled some at component-hooks

I noticed it for later! Bodo