Closed sylvainpolletvillard closed 7 years ago
At the moment .vue loader works only with es5/require() syntax. Basically it just tries to inject the template property into module.exports object. I'll see if I can do something simple for es6/typescript.
I've changed .vue loader so ES6 import/export should work now. However it will be transpiled by babel instead of typescript at the moment. That I still have to fix.
Thanks, I can confirm that it is now working with export default. I let you close this issue when you are done
Not sure if it is a regression or if it is not supported at the moment, but the <style>
tags in the .vue
files do not work.
This is a regression - will fix in the next release.
styles should work now in 0.0.11 (global only, scoped styles not supported yet).
.vue components are now transpiled by typescript (in .ts context). Added support for class-style components and decorators - https://github.com/activewidgets/getlibs-vue-hello-ts
Excellent work ! I will definitely use this
Hello and thank you for making this, it looks very promising.
I tried getlibs on a Vue + TypeScript project and got some trouble with single file components .vue files
index.html:
main.ts:
App.vue:
gives me
The App.vue!transpiled file :
It looks like it should export with
_export.template
instead ofmodule.exports.template