From cf764eab5fd33bff167525ffc866ea9d8a94e26e Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 29 Oct 2022 09:34:00 +0800 Subject: [PATCH] lizhouze@huawei.com Signed-off-by: unknown --- deps/weex-styler/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/weex-styler/index.js b/deps/weex-styler/index.js index 4509bcf..197cb85 100644 --- a/deps/weex-styler/index.js +++ b/deps/weex-styler/index.js @@ -211,7 +211,7 @@ function parse(code, done, resourcePath) { var ast, err, jsonStyle = {}, log = [] // css parse - ast = css.parse(code, {silent: true}) + ast = css.parse(code, {silent: true, source: resourcePath}); // catch syntax error if (ast.stylesheet.parsingErrors && ast.stylesheet.parsingErrors.length) { -- Gitee