Skip to content

Commit 0cf8bac

Browse files
chore(build): Refine build parameters for dist-custom-elements
It makes most sense for the openHPI application to automatically define all elements of the video player when importing it. All components of the player are needed anyway. Also, we bundle the Stencil runtime to avoid additional dependencies when using the web component in other applications.
1 parent 017766e commit 0cf8bac

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

stencil.config.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@ export const config: Config = {
99
plugins: [sass(), postcss({ plugins: [autoprefixer()] })],
1010
buildEs5: 'prod',
1111
outputTargets: [
12-
{ type: 'dist-custom-elements' },
12+
{
13+
type: 'dist-custom-elements',
14+
customElementsExportBehavior: 'bundle',
15+
externalRuntime: false,
16+
generateTypeDeclarations: true,
17+
},
1318
{ type: 'dist', esmLoaderPath: '../loader' },
1419
{
1520
type: 'docs-readme',

0 commit comments

Comments
 (0)