Update: remove uiSyntax

Signed-off-by: laibo102 <laibo2@huawei.com>
Change-Id: I9637fe045e834ddf8be4175e123cd54f725eb6b9
This commit is contained in:
laibo102 2022-07-20 11:28:44 +08:00
parent 73e1ba6b07
commit 8185d3e90e
2 changed files with 2 additions and 6 deletions

View File

@ -273,10 +273,7 @@ function readManifest(manifestFilePath) {
}
function readModulePages(moduleJson) {
if ((moduleJson.module.uiSyntax === 'hml' ||
moduleJson.module.uiSyntax === 'js' ||
moduleJson.module.language === 'js') &&
moduleJson.module.pages) {
if (moduleJson.module.pages) {
const modulePagePath = path.resolve(process.env.aceProfilePath,
`${moduleJson.module.pages.replace(/\$profile\:/, '')}.json`);
if (fs.existsSync(modulePagePath)) {

View File

@ -33,7 +33,6 @@ const {
deleteFolderRecursive,
readManifest,
loadEntryObj,
compileCardModule,
hashProjectPath,
checkMultiResourceBuild,
readWorkerFile,
@ -256,7 +255,7 @@ module.exports = (env) => {
compareCache(path.resolve(process.env.cachePath, '.rich_cache'));
const workerFile = readWorkerFile();
if (process.env.compileMode === 'moduleJson') {
compileCardModule(env);
process.env.DEVICE_LEVEL = 'card';
config.entry = {};
} else {
deleteFolderRecursive(process.env.buildPath);