提交 0a387b8e 编写于 作者: fxy060608's avatar fxy060608

fix(app): tests

上级 85403856
import { compileTemplate } from '@vue/compiler-sfc'
import { UniAppPlugin } from '../../../uni-app-vite/src/plugin'
import { uniAppPlugin } from '../../../uni-app-vite/src/plugin'
import {
ref,
nextTick,
......@@ -33,7 +33,7 @@ const defaultPageNodeOptions = {
windowBottom: 0,
}
const { uni } = UniAppPlugin
const { uni } = uniAppPlugin()
function compile(source: string) {
return compileTemplate({
......
......@@ -3,6 +3,7 @@ const promises: Record<string, Promise<unknown>> = {
resolves.require = req
}),
}
const resolves: Record<string, (...args: any[]) => void> = {}
function deps(name: string) {
......
......@@ -49,7 +49,7 @@ export function buildOptions(configEnv: ConfigEnv): UserConfig['build'] {
configEnv.mode === 'production' &&
isConfusionFile(path.relative(inputDir, id))
) {
return 'app-confusion.js'
return 'app-confusion'
}
}
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册