How can you require native templates?
Closed this issue · 4 comments
bodokaiser commented
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
Deleted user commented
The templates are being transpiled by lib/build/templates.js hook at lib/build/index.js#L21
bodokaiser commented
Ah thank you! Will use this in my projects :)
Deleted user commented
Great, I have assembled some at component-hooks
bodokaiser commented
I noticed it for later! Bodo