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

fix: tests

上级 8179e43c
......@@ -9,7 +9,8 @@ const uni_shared_1 = require("@dcloudio/uni-shared");
const uni_cli_shared_1 = require("@dcloudio/uni-cli-shared");
function uniOptions() {
return {
copyOptions: {
copyOptions() {
return {
assets: ['hybrid/html'],
targets: [
{
......@@ -17,6 +18,7 @@ function uniOptions() {
dest: process.env.UNI_OUTPUT_DIR,
},
],
};
},
compilerOptions: {
isNativeTag: uni_shared_1.isServiceNativeTag,
......
......@@ -7,7 +7,8 @@ import { normalizePath, UniVitePlugin } from '@dcloudio/uni-cli-shared'
export function uniOptions(): UniVitePlugin['uni'] {
return {
copyOptions: {
copyOptions() {
return {
assets: ['hybrid/html'],
targets: [
{
......@@ -17,6 +18,7 @@ export function uniOptions(): UniVitePlugin['uni'] {
dest: process.env.UNI_OUTPUT_DIR,
},
],
}
},
compilerOptions: {
isNativeTag: isServiceNativeTag,
......
......@@ -9,8 +9,8 @@ export interface CopyOptions {
assets?: string[]
targets?: readonly Target[]
}
export interface UniVitePlugin extends Plugin {
uni?: {
interface UniVitePluginUniOptions {
compilerOptions?: {
isNativeTag: ParserOptions['isNativeTag']
isCustomElement: ParserOptions['isCustomElement']
......@@ -18,7 +18,9 @@ export interface UniVitePlugin extends Plugin {
}
transformEvent?: Record<string, string>
copyOptions?: CopyOptions | (() => CopyOptions)
}
}
export interface UniVitePlugin extends Plugin {
uni?: UniVitePluginUniOptions
}
export * from './utils'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册