mirror of
https://gitee.com/openharmony/third_party_weex-loader
synced 2024-11-26 17:10:58 +00:00
commit
506088708e
2
deps/weex-styler/index.js
vendored
2
deps/weex-styler/index.js
vendored
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user