Skip to content

Commit

Permalink
Merge pull request #24 from pekonchan/next
Browse files Browse the repository at this point in the history
fix: 模板字符串拆分时带上括号避免优先级混乱
  • Loading branch information
pekonchan authored Jun 20, 2024
2 parents 75c4f97 + a2a96f2 commit 3c514a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion loader/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ module.exports = function i18nTransform (code) {
let sections = path.node.expressions.map(node => {
return {
start: node.start,
value: generator.default(node).code
value: `(${generator.default(node).code})`
}
})
path.node.quasis.forEach(node => {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "i18n-auto-webpack",
"version": "0.5.3",
"version": "0.5.4",
"description": "This is a tools to help you work i18n automatically in webpack. It includs two part: plugin and loader",
"main": "index.js",
"exports": {
Expand Down

0 comments on commit 3c514a7

Please sign in to comment.