This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare module "*.vue" { | |
import Vue from "vue" | |
export default Vue | |
} | |
/* Now when you're importing components from a page, for example: | |
<script lang="ts"> | |
import Vue from 'vue' | |
import TestComponent from '../components/test-component.vue' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"compilerOptions": { | |
// this aligns with Vue's browser support | |
"target": "es5", | |
// this enables stricter inference for data properties on `this` | |
"strict": false, | |
// if using webpack 2+ or rollup, to leverage tree shaking: | |
"module": "es2015", | |
"moduleResolution": "node", | |
"lib": [ |