Skip to content

Commit

Permalink
fix(cli): unicode 编码处理,close #701, #741
Browse files Browse the repository at this point in the history
  • Loading branch information
luckyadam committed Sep 29, 2018
1 parent 1a58eb0 commit d97d0dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/taro-cli/src/h5.js
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ function processEntry (code, filePath) {
}
}
})
const generateCode = unescape(generate(ast).code.replace(/\\u/g, '%u'))
const generateCode = generate(ast).code
return {
code: generateCode
}
Expand Down Expand Up @@ -616,7 +616,7 @@ function processOthers (code, filePath) {
}
}
})
const generateCode = unescape(generate(ast).code.replace(/\\u/g, '%u'))
const generateCode = generate(ast).code
return {
code: generateCode
}
Expand Down
2 changes: 1 addition & 1 deletion packages/taro-cli/src/weapp.js
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,7 @@ function parseAst (type, ast, depComponents, sourceFilePath, filePath, npmSkip =
}
})
return {
code: unescape(generate(ast).code.replace(/\\u/g, '%u')),
code: generate(ast).code,
styleFiles,
scriptFiles,
jsonFiles,
Expand Down

0 comments on commit d97d0dc

Please sign in to comment.