Files
ionic-framework/packages/vue/rollup.config.mjs
Christian Bromann eb725fce6e 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
2025-01-29 16:31:31 +00:00

27 lines
528 B
JavaScript

import resolve from '@rollup/plugin-node-resolve';
import typescript from '@rollup/plugin-typescript';
const external = ['vue', 'vue-router'];
export default {
input: 'src/index.ts',
output: [
{
dir: 'dist/',
entryFileNames: '[name].js',
chunkFileNames: '[name]-[hash].js',
format: 'es',
sourcemap: true
},
],
plugins: [
typescript(),
resolve()
],
external: (
id => external.includes(id) ||
id.startsWith('@ionic/core') ||
id.startsWith('ionicons')
)
};