HerringtonDarkholme / av-ts

A modern, type-safe, idiomatic Vue binding library
MIT License
216 stars 11 forks source link

Correctly importing vue to av-ts #68

Closed Jeet-iitm closed 7 years ago

Jeet-iitm commented 7 years ago

As vue is not exported as default, we will not be able to properly import it with just "import Vue from 'vue'". Instead we must import as "import * as Vue from 'vue'"

Since vue is not being imported properly projects dependent of av-ts gives a lot of vue error. To fix that error, vue imports has been corrected in this PR.

HerringtonDarkholme commented 7 years ago

Please note we properly set allowSyntheticDefaultImport option in TS. Also, Vue's default export for Webpack is in ESM format.

So av-ts is correct in source code.