diff --git a/package.json b/package.json index d62db1be..86a9572f 100644 --- a/package.json +++ b/package.json @@ -62,7 +62,7 @@ "watch": "yarn build -w" }, "dependencies": { - "@vue/composition-api": "^1.2.4", + "@vue/composition-api": "^1.3.1", "defu": "^5.0.0", "estree-walker": "^2.0.2", "fs-extra": "^9.1.0", diff --git a/src/module/index.ts b/src/module/index.ts index 655f0ec1..7e5234e9 100644 --- a/src/module/index.ts +++ b/src/module/index.ts @@ -31,7 +31,7 @@ const compositionApiModule: Module = function compositionApiModule() { // Define @vue/composition-api resolution to prevent using different versions of @vue/composition-api - const capiEntrypoint = '@vue/composition-api/dist/vue-composition-api.esm.js' + const capiEntrypoint = '@vue/composition-api/dist/vue-composition-api.mjs' const capiResolution = nuxtOptions.alias['@vue/composition-api'] || this.nuxt.resolver.resolveModule(capiEntrypoint) diff --git a/yarn.lock b/yarn.lock index 5c6d8885..326f8f3e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2590,12 +2590,12 @@ optionalDependencies: prettier "^1.18.2" -"@vue/composition-api@^1.2.4": - version "1.2.4" - resolved "https://registry.yarnpkg.com/@vue/composition-api/-/composition-api-1.2.4.tgz#4befcefc0e1c570fd0879a2d8b8f901f3a4e35d0" - integrity sha512-8LVV6O4slsroBhRKxly3em5H3D5Q+ggPG75lcilh5MfLGs69LEdwm6dKhSOXtQoSyMGF4Rq30E4DcouopM8Rxg== +"@vue/composition-api@^1.3.1": + version "1.3.3" + resolved "https://registry.yarnpkg.com/@vue/composition-api/-/composition-api-1.3.3.tgz#a782f2d40e41d4cbb6b4550692c7e01d2182d457" + integrity sha512-mjhfLjpCBecARYVJX65F0TYerlJQWtEgKjom4Btuu0x7k701EcvL66zyWQryf64HuIj9YR4h6aNRhM0AP/E3eQ== dependencies: - tslib "^2.3.0" + tslib "^2.3.1" "@vue/ref-transform@^3.2.11": version "3.2.13" @@ -13238,11 +13238,16 @@ tslib@^1.8.1, tslib@^1.9.0: resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg== -tslib@^2.0.3, tslib@^2.3.0: +tslib@^2.0.3: version "2.3.0" resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.3.0.tgz#803b8cdab3e12ba581a4ca41c8839bbb0dacb09e" integrity sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg== +tslib@^2.3.1: + version "2.3.1" + resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.3.1.tgz#e8a335add5ceae51aa261d32a490158ef042ef01" + integrity sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw== + tslib@~2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.1.0.tgz#da60860f1c2ecaa5703ab7d39bc05b6bf988b97a"