stencil-site icon indicating copy to clipboard operation
stencil-site copied to clipboard

[Documentation] inlineDynamicImports not documented

Open yoavaa opened this issue 5 years ago • 0 comments

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
  },
];

yoavaa avatar Jan 03 '21 06:01 yoavaa