Skip to content

Commit

Permalink
fix: use .mjs version of @vue/compoisition-api (#577)
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu authored Nov 4, 2021
1 parent 261207d commit f49884b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/module/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const compositionApiModule: Module<never> = 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)
Expand Down
17 changes: 11 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit f49884b

Please sign in to comment.