From 7f2f5ad7ca2ea6f1259721ca853cf029ebc34176 Mon Sep 17 00:00:00 2001 From: Casey Corcoran Date: Thu, 30 Jul 2020 12:07:22 -0400 Subject: [PATCH] fix(build): dist-custom-elements-bundle types (#2597) Fixes #2596 --- .../custom-elements-types.ts | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) 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 906196fbc94..498f6e9de66 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 @@ -40,14 +40,15 @@ const generateCustomElementsTypesOutput = async ( `export declare const defineCustomElements: (opts?: any) => void;`, ``, `/**`, - `* Used to manually set the base path where assets can be found.`, - `* If the script is used as "module", it's recommended to use "import.meta.url",`, - `* such as "setAssetPath(import.meta.url)". Other options include`, - `* "setAssetPath(document.currentScript.src)", or using a bundler's replace plugin to`, - `* dynamically set the path at build time, such as "setAssetPath(process.env.ASSET_PATH)".`, - `* But do note that this configuration depends on how your script is bundled, or lack of`, - `* bunding, and where your assets can be loaded from. Additionally custom bundling`, - `* will have to ensure the static assets are copied to its build directory.`, + ` * Used to manually set the base path where assets can be found.`, + ` * If the script is used as "module", it's recommended to use "import.meta.url",`, + ` * such as "setAssetPath(import.meta.url)". Other options include`, + ` * "setAssetPath(document.currentScript.src)", or using a bundler's replace plugin to`, + ` * dynamically set the path at build time, such as "setAssetPath(process.env.ASSET_PATH)".`, + ` * But do note that this configuration depends on how your script is bundled, or lack of`, + ` * bunding, and where your assets can be loaded from. Additionally custom bundling`, + ` * will have to ensure the static assets are copied to its build directory.`, + ` */`, `export declare const setAssetPath: (path: string) => void;`, ``, ];