diff --git a/package.json b/package.json index 2d72f9a9..6f190d9a 100644 --- a/package.json +++ b/package.json @@ -48,6 +48,7 @@ "@typescript-eslint/parser": "^5.21.0", "@vue/eslint-config-prettier": "^6.0.0", "@vue/eslint-config-typescript": "^5.1.0", + "@vue/runtime-dom": "^3.2.33", "@vue/test-utils": "^1.3.0", "cypress": "^9.6.0", "eslint": "^6.7.2", diff --git a/src/shims-tsx.d.ts b/src/shims-tsx.d.ts deleted file mode 100644 index 87f1db55..00000000 --- a/src/shims-tsx.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import Vue, { VNode } from 'vue'; - -declare global { - namespace JSX { - // tslint:disable no-empty-interface - type Element = VNode; - // tslint:disable no-empty-interface - type ElementClass = Vue; - interface IntrinsicElements { - [elem: string]: any; - } - } -} diff --git a/src/shims.vue.d.ts b/src/shims.vue.d.ts deleted file mode 100644 index 54244845..00000000 --- a/src/shims.vue.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -declare module '*.vue' { - import Vue from 'vue'; - - export default Vue; -} diff --git a/tsconfig.json b/tsconfig.json index 2cc8183b..ebc41c2a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -33,5 +33,13 @@ "exclude": [ "node_modules", // "tests" - ] + ], + "vueCompilerOptions": { + "experimentalCompatMode": 2, + "experimentalTemplateCompilerOptions": { + "compatConfig": { + "MODE": 2 + } // optional + } + } } diff --git a/yarn.lock b/yarn.lock index 8086b11a..feebd0e9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1523,13 +1523,30 @@ estree-walker "^2.0.2" magic-string "^0.25.7" -"@vue/reactivity@^3.2.31": +"@vue/reactivity@3.2.33", "@vue/reactivity@^3.2.31": version "3.2.33" resolved "https://registry.yarnpkg.com/@vue/reactivity/-/reactivity-3.2.33.tgz#c84eedb5225138dbfc2472864c151d3efbb4b673" integrity sha512-62Sq0mp9/0bLmDuxuLD5CIaMG2susFAGARLuZ/5jkU1FCf9EDbwUuF+BO8Ub3Rbodx0ziIecM/NsmyjardBxfQ== dependencies: "@vue/shared" "3.2.33" +"@vue/runtime-core@3.2.33": + version "3.2.33" + resolved "https://registry.yarnpkg.com/@vue/runtime-core/-/runtime-core-3.2.33.tgz#2df8907c85c37c3419fbd1bdf1a2df097fa40df2" + integrity sha512-N2D2vfaXsBPhzCV3JsXQa2NECjxP3eXgZlFqKh4tgakp3iX6LCGv76DLlc+IfFZq+TW10Y8QUfeihXOupJ1dGw== + dependencies: + "@vue/reactivity" "3.2.33" + "@vue/shared" "3.2.33" + +"@vue/runtime-dom@^3.2.33": + version "3.2.33" + resolved "https://registry.yarnpkg.com/@vue/runtime-dom/-/runtime-dom-3.2.33.tgz#123b8969247029ea0d9c1983676d4706a962d848" + integrity sha512-LSrJ6W7CZTSUygX5s8aFkraDWlO6K4geOwA3quFF2O+hC3QuAMZt/0Xb7JKE3C4JD4pFwCSO7oCrZmZ0BIJUnw== + dependencies: + "@vue/runtime-core" "3.2.33" + "@vue/shared" "3.2.33" + csstype "^2.6.8" + "@vue/shared@3.2.33", "@vue/shared@^3.2.31": version "3.2.33" resolved "https://registry.yarnpkg.com/@vue/shared/-/shared-3.2.33.tgz#69a8c99ceb37c1b031d5cc4aec2ff1dc77e1161e" @@ -2211,6 +2228,11 @@ cssstyle@^2.3.0: dependencies: cssom "~0.3.6" +csstype@^2.6.8: + version "2.6.20" + resolved "https://registry.yarnpkg.com/csstype/-/csstype-2.6.20.tgz#9229c65ea0b260cf4d3d997cb06288e36a8d6dda" + integrity sha512-/WwNkdXfckNgw6S5R125rrW8ez139lBHWouiBvX8dfMFtcn6V81REDqnH7+CRpRipfYlyU1CmOnOxrmGcFOjeA== + cypress@^9.6.0: version "9.6.0" resolved "https://registry.yarnpkg.com/cypress/-/cypress-9.6.0.tgz#84473b3362255fa8f5e627a596e58575c9e5320f"