stencil-site
stencil-site copied to clipboard
[Documentation] inlineDynamicImports not documented
The docs for the Custom Elements Bundle output target do not mention the inlineDynamicImports option.
By default, the dist-custom-elements-bundle creates a bundle with dynamic import of the CSS file. In my case dynamic imports does not work (my case - importing Stencil components to Velo by Wix (previously known as Corvid)).
After reading a lot of Stencil source code we found this option inlineDynamicImports which solved the issue. However, this option is not documented and should be added to the docs.
e.g.
outputTargets: [
{
type: 'dist-custom-elements-bundle',
inlineDynamicImports: true
},
];