Fork自 DCloud / uni-app
体验新版 GitCode,发现更多精彩内容 >>
import { isServiceNativeTag, isServiceCustomElement, } from '@dcloudio/uni-shared' import { UniVitePlugin } from '@dcloudio/uni-cli-shared'
import { TemplateCompiler } from '@vue/compiler-sfc' import * as compiler from '@dcloudio/uni-mp-compiler'
export function uniOptions(): UniVitePlugin['uni'] { return {
compiler: compiler as TemplateCompiler,
compilerOptions: { isNativeTag: isServiceNativeTag, isCustomElement: isServiceCustomElement, }, } }