Currently experimenting with Vue and TypeScript, attempting to compile to AMD in my tsconfig file.
The type definition in vue/types/index.d.ts for Vue.js includes:
export default Vue;
However, this results in TypeScript compiling it like this:
import Vue as "vue";
export default Vue.extend({ ... });
which ultimately becomes:
define(["vue"], function(vue) {
exports.default = vue.default.extend({ ... })
});
The issue lies in TypeScript expecting a .default property on 'vue', which does not exist. Wondering if there is a way to override the default type definition for Vue that would look something like:
export = Vue;
or perhaps a configuration flag in tsconfig to prevent TypeScript from adding the .default property to the compiled AMD module?