mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-16 18:17:31 +08:00
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:
@ -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/"
|
||||
|
@ -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,
|
||||
}
|
||||
],
|
||||
|
Reference in New Issue
Block a user