From abae5d1f695647ea04bac66ff4b9ee2b933a102b Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Sun, 16 Aug 2020 13:36:59 -0500 Subject: [PATCH] fix(dist): export Components, JSX types from custom-elements build --- .../dist-custom-elements-bundle/custom-elements-types.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/compiler/output-targets/dist-custom-elements-bundle/custom-elements-types.ts b/src/compiler/output-targets/dist-custom-elements-bundle/custom-elements-types.ts index 892edab8d89..7198c3cbe63 100644 --- a/src/compiler/output-targets/dist-custom-elements-bundle/custom-elements-types.ts +++ b/src/compiler/output-targets/dist-custom-elements-bundle/custom-elements-types.ts @@ -24,7 +24,7 @@ const generateCustomElementsTypesOutput = async ( const code = [ `/* ${config.namespace} custom elements bundle */`, ``, - `import { Components } from "${componentsDtsRelPath}";`, + `import { Components, JSX } from "${componentsDtsRelPath}";`, ``, ...components.map(generateCustomElementType), `/**`, @@ -51,6 +51,8 @@ const generateCustomElementsTypesOutput = async ( ` */`, `export declare const setAssetPath: (path: string) => void;`, ``, + `export { Components, JSX };`, + `` ]; const usersIndexJsPath = join(config.srcDir, 'index.ts');