mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-14 16:52:26 +08:00
fix(vue): update Stencil Vue output target (#30159)
This patch includes some necessary updates for `@stencil/vue-output-target@v0.9.0`: - we started to export Stencils helpers as runtime via `@stencil/vue-output-target/runtime` similar to what we did in React - this version requires some updates to Vue and TypeScript as well - adjustments related to that update
This commit is contained in:

committed by
GitHub

parent
0030be8195
commit
eb725fce6e
@ -37,7 +37,7 @@ function generateOverlays() {
|
||||
let componentImports = [];
|
||||
let componentDefinitions = [];
|
||||
|
||||
components.forEach(component => {
|
||||
components.sort((a, b) => a.tag.localeCompare(b.tag)).forEach(component => {
|
||||
const docsBlock = getDocsBlock(component.tag);
|
||||
const props = getPropsFromDocsBlock(docsBlock);
|
||||
|
||||
@ -57,13 +57,12 @@ export const ${component.name} = /*@__PURE__*/ defineOverlayContainer<JSX.${comp
|
||||
* Changes made to this file will be overwritten on build.
|
||||
*/
|
||||
|
||||
import {
|
||||
import type {
|
||||
JSX,
|
||||
} from '@ionic/core/components';
|
||||
|
||||
${componentImports.join('\n')}
|
||||
|
||||
import { defineOverlayContainer } from '../vue-component-lib/overlays';
|
||||
import { defineOverlayContainer } from '../utils/overlays';
|
||||
${componentDefinitions.join('')}
|
||||
`;
|
||||
|
||||
|
Reference in New Issue
Block a user