File tree Expand file tree Collapse file tree 6 files changed +4
-4
lines changed Expand file tree Collapse file tree 6 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -100,9 +100,9 @@ export function generateEntryPointData(type: LibraryType): string {
100
100
101
101
for ( const component of library . vueComponents ?. tags . map ( tag => tag . name ) ) {
102
102
if ( Array . isArray ( component ) )
103
- arr . push ( `export { default as ${ component [ 1 ] } } from '../../../../../ resources/components/${ component [ 0 ] } .vue'` )
103
+ arr . push ( `export { default as ${ component [ 1 ] } } from '../../../../resources/components/${ component [ 0 ] } .vue'` )
104
104
else
105
- arr . push ( `export { default as ${ component } } from '../../../../../ resources/components/${ component } .vue'` )
105
+ arr . push ( `export { default as ${ component } } from '../../../../resources/components/${ component } .vue'` )
106
106
}
107
107
108
108
// join the array into a string with each element being on a new line
@@ -122,12 +122,12 @@ export function generateEntryPointData(type: LibraryType): string {
122
122
123
123
for ( const component of library . webComponents ?. tags . map ( tag => tag . name ) ) {
124
124
if ( Array . isArray ( component ) ) {
125
- imports . push ( `import ${ component [ 1 ] } from '../../../../../ resources/components/${ component [ 0 ] } .vue'` )
125
+ imports . push ( `import ${ component [ 1 ] } from '../../../../resources/components/${ component [ 0 ] } .vue'` )
126
126
declarations . push ( `const ${ component [ 1 ] } CustomElement = defineCustomElement(${ component [ 1 ] } )` )
127
127
definitions . push ( `customElements.define('${ kebabCase ( component [ 1 ] ) } ', ${ component [ 1 ] } CustomElement)` )
128
128
}
129
129
else {
130
- imports . push ( `import ${ component } from '../../../../../ resources/components/${ component } .vue'` )
130
+ imports . push ( `import ${ component } from '../../../../resources/components/${ component } .vue'` )
131
131
declarations . push ( `const ${ component } CustomElement = defineCustomElement(${ component } )` )
132
132
definitions . push ( `customElements.define('${ kebabCase ( component ) } ', ${ component } CustomElement)` )
133
133
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments