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

fix(mp): template is missing when incremental build (#3122)

上级 ee58b9a3
......@@ -8,7 +8,6 @@ import {
parseManifestJsonOnce,
findMiniProgramTemplateFiles,
MiniProgramCompilerOptions,
getComponentJsonFilenames,
} from '@dcloudio/uni-cli-shared'
import type { CompilerOptions } from '@dcloudio/uni-mp-compiler'
......@@ -23,7 +22,6 @@ import type {
SFCTemplateCompileOptions,
SFCTemplateCompileResults,
} from '@vue/compiler-sfc'
import { hasOwn } from '@vue/shared'
export interface UniMiniProgramPluginOptions {
cdn?: number
......@@ -155,16 +153,6 @@ export function uniMiniProgramPlugin(
source: templateFiles[filename],
})
})
// 部分组件可能模板为空
getComponentJsonFilenames().forEach((jsonFilename) => {
if (!hasOwn(templateFiles, jsonFilename)) {
this.emitFile({
type: 'asset',
fileName: jsonFilename + template.extname,
source: `<block/>`,
})
}
})
if (!nvueCssEmitted) {
const nvueCssPaths = getNVueCssPaths(resolvedConfig)
if (nvueCssPaths && nvueCssPaths.length) {
......
'use strict';
var version = "3.0.0-alpha-3030420211227003";
var version = "3.0.0-alpha-3030420211228001";
const STAT_VERSION = version;
const STAT_URL = 'https://tongji.dcloud.io/uni/stat';
......
var version = "3.0.0-alpha-3030420211227003";
var version = "3.0.0-alpha-3030420211228001";
const STAT_VERSION = version;
const STAT_URL = 'https://tongji.dcloud.io/uni/stat';
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册