A toolchain for building scalable, enterprise-ready component systems on top of TypeScript and Web Component standards. Stencil components can be distributed natively to React, Angular, Vue, and traditional web developers from a single, framework-agnostic codebase.
Currently, any 3rd party imports inside the components will be bundled with the dist for the component.
In some cases we may not want to do this. A good example is rxjs, which is relatively large. And in my specific case, where I use the components I already import rxjs.
Expected behavior:
There should be a way to not bundle 3rd party imports with the components. With rollup this can be done by using a combination of globals and external:
Stencil version:
I'm submitting a:
Current behavior:
Currently, any 3rd party imports inside the components will be bundled with the dist for the component. In some cases we may not want to do this. A good example is rxjs, which is relatively large. And in my specific case, where I use the components I already import rxjs.
Expected behavior:
There should be a way to not bundle 3rd party imports with the components. With rollup this can be done by using a combination of
globals
andexternal
:Steps to reproduce:
Related code:
Other information: