Files
ionic-framework/packages/vue/rollup.config.js
Liam DeBeasi 86bbed07fc refactor(vue): only ship es modules (#26054)
resolves #25104

BREAKING CHANGE:

`@ionic/vue` and `@ionic/vue-router` no longer ship a CommonJS entry point. Instead, only an ES Module entry point is provided for improved compatibility with Vite.
2022-09-30 11:43:50 -04:00

16 lines
368 B
JavaScript

const external = ['vue', 'vue-router'];
export default {
input: 'dist-transpiled/index.js',
output: [
{
dir: 'dist/',
entryFileNames: '[name].js',
chunkFileNames: '[name]-[hash].js',
format: 'es',
sourcemap: true
},
],
external: id => external.includes(id) || id.startsWith('@ionic/core') || id.startsWith('ionicons')
};