@uni-helper/uni-app-types
Version:
为 uni-app 组件提供 TypeScript 类型
18 lines (16 loc) • 328 B
JavaScript
//#region src/volar-plugin.ts
const nativeTags = [
"block",
"component",
"template",
"slot"
];
var volar_plugin_default = () => ({
version: 2,
resolveTemplateCompilerOptions(options) {
options.isNativeTag = (tag) => nativeTags.includes(tag);
return options;
}
});
//#endregion
module.exports = volar_plugin_default;