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.
This commit is contained in:
Liam DeBeasi
2022-09-30 10:43:50 -05:00
committed by GitHub
parent 1f3ddf2370
commit 86bbed07fc
5 changed files with 11 additions and 16 deletions

View File

@ -14,7 +14,6 @@
"sync": "sh ./scripts/sync.sh"
},
"main": "./dist/index.js",
"module": "./dist/index.esm.js",
"types": "./dist/types/index.d.ts",
"files": [
"dist/"

View File

@ -1,14 +1,9 @@
export default {
input: 'dist-transpiled/index.js',
output: [
{
file: 'dist/index.esm.js',
format: 'es',
sourcemap: true,
},
{
file: 'dist/index.js',
format: 'commonjs',
format: 'es',
sourcemap: true,
}
],