Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
vijaybritto
on Aug 23, 2017
|
parent
|
context
|
favorite
| on:
Stencil – A reusable web component generator
If we use third party library code in multiple stencils. Will they be included separately in each one of them. Let's say d3 for graphics?
yesimahuman
on Aug 23, 2017
[–]
Yes right this second, but next on our list is providing a seamless solution to dependency dedupe. Not yet ready but it's promising.
vijaybritto
on Aug 23, 2017
|
parent
[–]
Okay, that is definitely needed if we want to build serious components. Else it's gonna go crazy heavy!
danbucholtz
on Aug 23, 2017
|
root
|
parent
[–]
A simple solution today would be to put the shared, heavy code in it's own component and call methods directly on that component. That's how we're share code across components in Ionic.
ospatil
on Aug 28, 2017
|
root
|
parent
[–]
Could you please add an example of this in the documentation? It looks great BTW.
Consider applying for YC's Fall 2026 batch!
Applications
are open till July 27.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: