mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-14 16:52:26 +08:00

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.
16 lines
368 B
JavaScript
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')
|
|
};
|