enableTsInTemplate option (7613534)
When used with ts-loader
, due to ts-loader
's cache invalidation behavior, it sometimes prevents the template from being hot-reloaded in isolation, causing the component to reload despite only the template being edited. If this is annoying, you can set this option to false
(and avoid using TS expressions in templates).
Alternatively, leave this option on (by default) and use esbuild-loader
to transpile TS instead, which doesn't suffer from this problem (it's also a lot faster). However, do note you will need to rely on TS type checking from other sources (e.g. IDE or vue-tsc
).
defineCustomElement
on the component. This allows the custom element to be defined using an async version of the source component.<script setup>
(7137294)<script setup>
(7137294)esModuleInterop
& allowSyntheticDefaultImports
for TS (c76f5e5)type
query for render function imports (41af4b6)