mirror of
https://github.com/openharmony/developtools_ace-js2bundle.git
synced 2026-07-19 10:15:08 -04:00
fix not include log Signed-off-by: houhaoyu <houhaoyu@huawei.com> Change-Id: Ifb58e6ee3cec751aeea4cfc09f9c564eb2f0b0e4
This commit is contained in:
@@ -760,7 +760,7 @@ function validateStyle(css, out, nodeLoc, relativePath) {
|
||||
if (css) {
|
||||
const cssStyle = {}
|
||||
const cssArray = css.split(';')
|
||||
processCssArray(css, out, nodeLoc, cssStyle, cssArray)
|
||||
processCssArray(css, out, nodeLoc, cssStyle, cssArray, log)
|
||||
out.jsonTemplate.style = cssStyle
|
||||
setDebugLine(out.jsonTemplate, relativePath, nodeLoc.line)
|
||||
} else {
|
||||
@@ -772,7 +772,7 @@ function validateStyle(css, out, nodeLoc, relativePath) {
|
||||
}
|
||||
}
|
||||
|
||||
function processCssArray(css, out, nodeLoc, cssStyle, cssArray) {
|
||||
function processCssArray(css, out, nodeLoc, cssStyle, cssArray, log) {
|
||||
for (let i = 0; i < cssArray.length; i++) {
|
||||
let styleContent = cssArray[i].trim().split(':')
|
||||
if (preprocessSystemResourceReference(styleContent, cssStyle)) {
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
/**
|
||||
* Copyright (c) Huawei Technologies Co., Ltd. 2021-2021. All rights reserved.
|
||||
*/
|
||||
import { generate } from 'escodegen'
|
||||
import loaderUtils from 'loader-utils'
|
||||
import path from 'path'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user