From eb6c3a292db90d8fd47d62726663b5da864b9cd8 Mon Sep 17 00:00:00 2001 From: wxzhang Date: Tue, 22 Feb 2022 17:45:23 +0800 Subject: [PATCH] update --- src/extract.plugin.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/extract.plugin.js b/src/extract.plugin.js index 24138c4..a7f9044 100644 --- a/src/extract.plugin.js +++ b/src/extract.plugin.js @@ -4,6 +4,7 @@ const through2 = require('through2') const deepmerge = require("deepmerge") +const path = require('path') // 捕获翻译函数的表达式 const DefaultTranslateMatcher = /\bt\(\s*("|'){1}(?:((?\w+):))?(?.*?)(((\1\s*\)){1})|((\1){1}\s*(,(\w|\d|(?:\{.*\})|(?:\[.*\])|([\"\'\(].*[\"\'\)]))*)*\s*\)))/gm