From a2a96f261c23ff952a58a3003efdeef15e83657e Mon Sep 17 00:00:00 2001 From: pekonchan Date: Thu, 20 Jun 2024 20:14:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=A8=A1=E6=9D=BF=E5=AD=97=E7=AC=A6?= =?UTF-8?q?=E4=B8=B2=E6=8B=86=E5=88=86=E6=97=B6=E5=B8=A6=E4=B8=8A=E6=8B=AC?= =?UTF-8?q?=E5=8F=B7=E9=81=BF=E5=85=8D=E4=BC=98=E5=85=88=E7=BA=A7=E6=B7=B7?= =?UTF-8?q?=E4=B9=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- loader/index.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/loader/index.js b/loader/index.js index a180005..d4fe42f 100644 --- a/loader/index.js +++ b/loader/index.js @@ -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 => { diff --git a/package.json b/package.json index b62e081..00621fd 100644 --- a/package.json +++ b/package.json @@ -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": {