mirror of
https://gitee.com/openharmony/developtools_ace_js2bundle
synced 2024-11-27 01:20:27 +00:00
Update: remove uiSyntax
Signed-off-by: laibo102 <laibo2@huawei.com> Change-Id: I9637fe045e834ddf8be4175e123cd54f725eb6b9
This commit is contained in:
parent
73e1ba6b07
commit
8185d3e90e
@ -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)) {
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user