@stencil/vue-output-target
Advanced tools
Comparing version 0.2.2-2 to 0.2.2-3
@@ -153,10 +153,8 @@ 'use strict'; | ||
let registerCustomElements = ''; | ||
if (outputTarget.useCustomElementsBuild) { | ||
if (outputTarget.useCustomElementsBuild && outputTarget.componentCorePackage !== undefined) { | ||
const cmpImports = components.map(component => { | ||
const pascalImport = dashToPascalCase(component.tagName); | ||
return `${pascalImport} as ${pascalImport}Cmp`; | ||
return `import { ${pascalImport} as ${pascalImport}Cmp } from '${normalizePath(outputTarget.componentCorePackage)}/components/${component.tagName}.js';`; | ||
}); | ||
sourceImports = !outputTarget.componentCorePackage | ||
? `import { ${cmpImports.join(', ')} } from '${normalizePath(componentsTypeFile)}';\n` | ||
: `import { ${cmpImports.join(', ')} } from '${normalizePath(outputTarget.componentCorePackage)}';\n`; | ||
sourceImports = cmpImports.join('\n'); | ||
} | ||
@@ -163,0 +161,0 @@ else if (outputTarget.includePolyfills && outputTarget.includeDefineCustomElements) { |
@@ -144,10 +144,8 @@ import path from 'path'; | ||
let registerCustomElements = ''; | ||
if (outputTarget.useCustomElementsBuild) { | ||
if (outputTarget.useCustomElementsBuild && outputTarget.componentCorePackage !== undefined) { | ||
const cmpImports = components.map(component => { | ||
const pascalImport = dashToPascalCase(component.tagName); | ||
return `${pascalImport} as ${pascalImport}Cmp`; | ||
return `import { ${pascalImport} as ${pascalImport}Cmp } from '${normalizePath(outputTarget.componentCorePackage)}/components/${component.tagName}.js';`; | ||
}); | ||
sourceImports = !outputTarget.componentCorePackage | ||
? `import { ${cmpImports.join(', ')} } from '${normalizePath(componentsTypeFile)}';\n` | ||
: `import { ${cmpImports.join(', ')} } from '${normalizePath(outputTarget.componentCorePackage)}';\n`; | ||
sourceImports = cmpImports.join('\n'); | ||
} | ||
@@ -154,0 +152,0 @@ else if (outputTarget.includePolyfills && outputTarget.includeDefineCustomElements) { |
@@ -29,10 +29,8 @@ import path from 'path'; | ||
let registerCustomElements = ''; | ||
if (outputTarget.useCustomElementsBuild) { | ||
if (outputTarget.useCustomElementsBuild && outputTarget.componentCorePackage !== undefined) { | ||
const cmpImports = components.map(component => { | ||
const pascalImport = dashToPascalCase(component.tagName); | ||
return `${pascalImport} as ${pascalImport}Cmp`; | ||
return `import { ${pascalImport} as ${pascalImport}Cmp } from '${normalizePath(outputTarget.componentCorePackage)}/components/${component.tagName}.js';`; | ||
}); | ||
sourceImports = !outputTarget.componentCorePackage | ||
? `import { ${cmpImports.join(', ')} } from '${normalizePath(componentsTypeFile)}';\n` | ||
: `import { ${cmpImports.join(', ')} } from '${normalizePath(outputTarget.componentCorePackage)}';\n`; | ||
sourceImports = cmpImports.join('\n'); | ||
} | ||
@@ -39,0 +37,0 @@ else if (outputTarget.includePolyfills && outputTarget.includeDefineCustomElements) { |
{ | ||
"name": "@stencil/vue-output-target", | ||
"version": "0.2.2-2", | ||
"version": "0.2.2-3", | ||
"description": "Vue output target for @stencil/core components.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.cjs.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40696
861