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

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

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