{"_id":"@cnhis-frontend/unplugin-i18n-helper","_rev":"11-e8c30f5453b4afaf00aed5b892063ad1","name":"@cnhis-frontend/unplugin-i18n-helper","dist-tags":{"latest":"2.0.9"},"versions":{"2.0.0-beta.0":{"name":"@cnhis-frontend/unplugin-i18n-helper","version":"2.0.0-beta.0","keywords":["vite","unplugin","i18n"],"author":{"name":"chenzheng"},"license":"MIT","_id":"@cnhis-frontend/unplugin-i18n-helper@2.0.0-beta.0","maintainers":[{"name":"yysanf","email":"1098425142@qq.com"},{"name":"wenhongling","email":"1228514746@qq.com"},{"name":"cute1baby","email":"1138724604@qq.com"},{"name":"xiex127","email":"xiexuan127@foxmail.com"},{"name":"ruanlin","email":"ruanlin.kylin@gmail.com"}],"homepage":"https://github.com/yysanf/vite-plugin-i18n-helper/tree/master/#readme","bugs":{"url":"https://github.com/yysanf/vite-plugin-i18n-helper/issues"},"dist":{"shasum":"1d78af0d2c5d25f4f69d6ee03fd8a05c1109caa3","tarball":"https://registry.npmjs.org/@cnhis-frontend/unplugin-i18n-helper/-/unplugin-i18n-helper-2.0.0-beta.0.tgz","fileCount":14,"integrity":"sha512-AaYIxryb8jj8jh/SRlod60eL5t0CIhXY8xUue2F9yz0LWvQLsHH5xEGiWksfnS6PUNnM2ToLN+G/X7728RtpUg==","signatures":[{"sig":"MEQCIDJvJGIQTJKWY1IJU65+kK8ptLSI36IHdn6TCQoAWFY1AiBBbAoN3ZsgevN+bmag2Ucg3LV6/GvthhdcDeYi99Bw7A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":82182},"main":"dist/index.cjs","types":"dist/index.d.ts","module":"dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"03f23965b3e51619f825c2f3a7fb1e4e8ba45950","scripts":{"build":"cross-env ENV=production rollup -c --bundleConfigAsCjs"},"_npmUser":{"name":"yysanf","email":"1098425142@qq.com"},"repository":{"url":"git+https://github.com/yysanf/vite-plugin-i18n-helper.git","type":"git"},"_npmVersion":"8.5.5","description":"自动查找 包含中文 的字符串和模板字符串，并替换为自定义的国际化方法","directories":{},"_nodeVersion":"16.15.0","dependencies":{"unplugin":"^1.5.0","htmlparser2":"^8.0.1","magic-string":"^0.25.7","estree-walker":"^2.0.1","@rollup/pluginutils":"^5.0.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.0.1","rollup":"^3.2.3","prettier":"^2.7.1","typescript":"^4.8.4","@types/node":"^18.11.8","eslint-plugin-n":"^15.0.0","eslint-plugin-import":"^2.25.2","eslint-plugin-promise":"^6.0.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","@rollup/plugin-typescript":"^9.0.2","@typescript-eslint/parser":"^5.42.0","@typescript-eslint/eslint-plugin":"^5.0.0","eslint-config-standard-with-typescript":"^23.0.0"},"_npmOperationalInternal":{"tmp":"tmp/unplugin-i18n-helper_2.0.0-beta.0_1697437343680_0.05086700326980753","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@cnhis-frontend/unplugin-i18n-helper","version":"2.0.0","keywords":["vite","unplugin","i18n"],"author":{"name":"chenzheng"},"license":"MIT","_id":"@cnhis-frontend/unplugin-i18n-helper@2.0.0","maintainers":[{"name":"yysanf","email":"1098425142@qq.com"},{"name":"wenhongling","email":"1228514746@qq.com"},{"name":"cute1baby","email":"1138724604@qq.com"},{"name":"xiex127","email":"xiexuan127@foxmail.com"},{"name":"ruanlin","email":"ruanlin.kylin@gmail.com"}],"homepage":"https://github.com/yysanf/vite-plugin-i18n-helper/tree/unplugin/dev#readme","bugs":{"url":"https://github.com/yysanf/vite-plugin-i18n-helper/issues"},"dist":{"shasum":"f43fb22e75c05517d3bbbdd8ed6bcebbbd4bcde5","tarball":"https://registry.npmjs.org/@cnhis-frontend/unplugin-i18n-helper/-/unplugin-i18n-helper-2.0.0.tgz","fileCount":12,"integrity":"sha512-P7CLepsOKdJovZsUWYl23zaNDkRT9FchzaTIAiRSXsS2wVpjEF6K/8xjBGyj+JDZq47zw+zJiAqjRQL+HmPZLQ==","signatures":[{"sig":"MEUCIQDms3V4FZ+fxYUJFN2tBZlTZmp201RNhgkpHoDvTF3USAIgep4uhi3RGrh33Ev+DJqvBQNYNfX9N0EfPi7HI3IwGVg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":82693},"main":"dist/index.cjs","types":"dist/index.d.ts","module":"dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"bfd416f79bd58b27dc334ba6c4cd14f055739732","scripts":{"build":"cross-env ENV=production rollup -c --bundleConfigAsCjs"},"_npmUser":{"name":"yysanf","email":"1098425142@qq.com"},"repository":{"url":"git+https://github.com/yysanf/vite-plugin-i18n-helper.git","type":"git"},"_npmVersion":"10.8.1","description":"自动查找 包含中文 的字符串和模板字符串，并替换为自定义的国际化方法","directories":{},"_nodeVersion":"20.16.0","dependencies":{"unplugin":"^1.5.0","htmlparser2":"^8.0.1","magic-string":"^0.25.7","estree-walker":"^2.0.1","@rollup/pluginutils":"^5.0.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.0.1","rollup":"^3.2.3","prettier":"^2.7.1","typescript":"^4.8.4","@types/node":"^18.11.8","eslint-plugin-n":"^15.0.0","eslint-plugin-import":"^2.25.2","eslint-plugin-promise":"^6.0.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","@rollup/plugin-typescript":"^9.0.2","@typescript-eslint/parser":"^5.42.0","@typescript-eslint/eslint-plugin":"^5.0.0","eslint-config-standard-with-typescript":"^23.0.0"},"_npmOperationalInternal":{"tmp":"tmp/unplugin-i18n-helper_2.0.0_1725421065376_0.7254440887882736","host":"s3://npm-registry-packages"}},"2.0.1":{"name":"@cnhis-frontend/unplugin-i18n-helper","version":"2.0.1","keywords":["vite","unplugin","i18n"],"author":{"name":"chenzheng"},"license":"MIT","_id":"@cnhis-frontend/unplugin-i18n-helper@2.0.1","maintainers":[{"name":"yysanf","email":"1098425142@qq.com"},{"name":"wenhongling","email":"1228514746@qq.com"},{"name":"cute1baby","email":"1138724604@qq.com"},{"name":"xiex127","email":"xiexuan127@foxmail.com"},{"name":"ruanlin","email":"ruanlin.kylin@gmail.com"}],"homepage":"https://github.com/yysanf/vite-plugin-i18n-helper/tree/unplugin/dev#readme","bugs":{"url":"https://github.com/yysanf/vite-plugin-i18n-helper/issues"},"dist":{"shasum":"3295d88fefb468cb531d83955894ce0257907691","tarball":"https://registry.npmjs.org/@cnhis-frontend/unplugin-i18n-helper/-/unplugin-i18n-helper-2.0.1.tgz","fileCount":12,"integrity":"sha512-Flp+rTQT4SK/hMmFXOdSBqzpPbrVsrEM5RaNeFtIlc+N3YfbObnmAL54dpqObYJFRrdfsP7Bz5p2V3+dwB6Fiw==","signatures":[{"sig":"MEQCIEw1qCKBh/+ERMC3QggIXONOg/AqQFvJfyW5RMESdl9iAiBNV55e4I6Q+Cn4T2MMNCBz+5A8QAOHbvDEXeqYsI57sw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":85274},"main":"dist/index.cjs","types":"dist/index.d.ts","module":"dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"5dadb5724dfb5f2d7275477a9d2419bd7876bd23","scripts":{"build":"cross-env ENV=production rollup -c --bundleConfigAsCjs"},"_npmUser":{"name":"yysanf","email":"1098425142@qq.com"},"repository":{"url":"git+https://github.com/yysanf/vite-plugin-i18n-helper.git","type":"git"},"_npmVersion":"10.8.1","description":"自动查找 包含中文 的字符串和模板字符串，并替换为自定义的国际化方法","directories":{},"_nodeVersion":"20.16.0","dependencies":{"acorn":"^8.10.0","unplugin":"^1.5.0","acorn-jsx":"^5.3.2","htmlparser2":"^8.0.1","magic-string":"^0.25.7","estree-walker":"^2.0.1","@rollup/pluginutils":"^5.0.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.0.1","rollup":"^3.2.3","prettier":"^2.7.1","typescript":"^4.8.4","@types/node":"^18.11.8","eslint-plugin-n":"^15.0.0","eslint-plugin-import":"^2.25.2","eslint-plugin-promise":"^6.0.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","@rollup/plugin-typescript":"^9.0.2","@typescript-eslint/parser":"^5.42.0","@typescript-eslint/eslint-plugin":"^5.0.0","eslint-config-standard-with-typescript":"^23.0.0"},"_npmOperationalInternal":{"tmp":"tmp/unplugin-i18n-helper_2.0.1_1726650652237_0.327966103582757","host":"s3://npm-registry-packages"}},"2.0.2":{"name":"@cnhis-frontend/unplugin-i18n-helper","version":"2.0.2","keywords":["vite","unplugin","i18n"],"author":{"name":"chenzheng"},"license":"MIT","_id":"@cnhis-frontend/unplugin-i18n-helper@2.0.2","maintainers":[{"name":"yysanf","email":"1098425142@qq.com"},{"name":"wenhongling","email":"1228514746@qq.com"},{"name":"cute1baby","email":"1138724604@qq.com"},{"name":"xiex127","email":"xiexuan127@foxmail.com"},{"name":"ruanlin","email":"ruanlin.kylin@gmail.com"}],"homepage":"https://github.com/yysanf/vite-plugin-i18n-helper/tree/unplugin/dev#readme","bugs":{"url":"https://github.com/yysanf/vite-plugin-i18n-helper/issues"},"dist":{"shasum":"158a0bd3939d042133601515412fabea4d2fa3dc","tarball":"https://registry.npmjs.org/@cnhis-frontend/unplugin-i18n-helper/-/unplugin-i18n-helper-2.0.2.tgz","fileCount":12,"integrity":"sha512-SPLJ80Ga3rjmUM+wzfVloTf+26X0l6K1u89qLMo8y2/zmeX2wb5OZrzDiyJlKKz2VT/fPcYXekwYYF9g8KCjaA==","signatures":[{"sig":"MEQCIFDL13nL0LY5Z72KzLDB5MO7x9zzyDB3eTohqazRSOjkAiBVJdPmL1lI2xI7t5Sf9LqY4UJayfr4GMdOs0H8bsbgOw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":85378},"main":"dist/index.cjs","types":"dist/index.d.ts","module":"dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"4409ab2d3c7a1b09cb89eef72cb705300c4c6fa6","scripts":{"build":"cross-env ENV=production rollup -c --bundleConfigAsCjs"},"_npmUser":{"name":"yysanf","email":"1098425142@qq.com"},"repository":{"url":"git+https://github.com/yysanf/vite-plugin-i18n-helper.git","type":"git"},"_npmVersion":"10.8.1","description":"自动查找 包含中文 的字符串和模板字符串，并替换为自定义的国际化方法","directories":{},"_nodeVersion":"20.16.0","dependencies":{"acorn":"^8.10.0","unplugin":"^1.5.0","acorn-jsx":"^5.3.2","htmlparser2":"^8.0.1","magic-string":"^0.25.7","estree-walker":"^2.0.1","@rollup/pluginutils":"^5.0.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.0.1","rollup":"^3.2.3","prettier":"^2.7.1","typescript":"^4.8.4","@types/node":"^18.11.8","eslint-plugin-n":"^15.0.0","eslint-plugin-import":"^2.25.2","eslint-plugin-promise":"^6.0.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","@rollup/plugin-typescript":"^9.0.2","@typescript-eslint/parser":"^5.42.0","@typescript-eslint/eslint-plugin":"^5.0.0","eslint-config-standard-with-typescript":"^23.0.0"},"_npmOperationalInternal":{"tmp":"tmp/unplugin-i18n-helper_2.0.2_1726804003033_0.3263942446365149","host":"s3://npm-registry-packages"}},"2.0.3":{"name":"@cnhis-frontend/unplugin-i18n-helper","version":"2.0.3","keywords":["vite","unplugin","i18n"],"author":{"name":"chenzheng"},"license":"MIT","_id":"@cnhis-frontend/unplugin-i18n-helper@2.0.3","maintainers":[{"name":"yysanf","email":"1098425142@qq.com"},{"name":"wenhongling","email":"1228514746@qq.com"},{"name":"cute1baby","email":"1138724604@qq.com"},{"name":"xiex127","email":"xiexuan127@foxmail.com"},{"name":"ruanlin","email":"ruanlin.kylin@gmail.com"}],"homepage":"https://github.com/yysanf/vite-plugin-i18n-helper/tree/unplugin/dev#readme","bugs":{"url":"https://github.com/yysanf/vite-plugin-i18n-helper/issues"},"dist":{"shasum":"8342ce673f386f9a4fd2109eb61ad81cd683a4c3","tarball":"https://registry.npmjs.org/@cnhis-frontend/unplugin-i18n-helper/-/unplugin-i18n-helper-2.0.3.tgz","fileCount":12,"integrity":"sha512-6QVYEzYQA5dQ7Y7nSEnAfKW+vWwWOwZDvXsVXW/Wrdg/W1srO7PbYXbaDoiVOIJKZZ2HwkhQngTDdxj/MW8kdw==","signatures":[{"sig":"MEUCIQDh5rm1Jisqkf5QE6znGvh+xyeUxKnaYS8hmG4uEo8erQIgDcAK+U7jgdeX2BfQ+f5nvs4B2+RQE8TjCEu35ZAjtHU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":86059},"main":"dist/index.cjs","types":"dist/index.d.ts","module":"dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"85c32dab4e337531138c6ee30130fb1854f0d7fe","scripts":{"build":"cross-env ENV=production rollup -c --bundleConfigAsCjs"},"_npmUser":{"name":"yysanf","email":"1098425142@qq.com"},"repository":{"url":"git+https://github.com/yysanf/vite-plugin-i18n-helper.git","type":"git"},"_npmVersion":"10.8.1","description":"自动查找 包含中文 的字符串和模板字符串，并替换为自定义的国际化方法","directories":{},"_nodeVersion":"20.16.0","dependencies":{"acorn":"^8.10.0","unplugin":"^1.5.0","acorn-jsx":"^5.3.2","htmlparser2":"^8.0.1","magic-string":"^0.25.7","estree-walker":"^2.0.1","@rollup/pluginutils":"^5.0.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.0.1","rollup":"^3.2.3","prettier":"^2.7.1","typescript":"^4.8.4","@types/node":"^18.11.8","eslint-plugin-n":"^15.0.0","eslint-plugin-import":"^2.25.2","eslint-plugin-promise":"^6.0.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","@rollup/plugin-typescript":"^9.0.2","@typescript-eslint/parser":"^5.42.0","@typescript-eslint/eslint-plugin":"^5.0.0","eslint-config-standard-with-typescript":"^23.0.0"},"_npmOperationalInternal":{"tmp":"tmp/unplugin-i18n-helper_2.0.3_1729223876726_0.3368050336863464","host":"s3://npm-registry-packages"}},"2.0.4":{"name":"@cnhis-frontend/unplugin-i18n-helper","version":"2.0.4","keywords":["vite","unplugin","i18n"],"author":{"name":"chenzheng"},"license":"MIT","_id":"@cnhis-frontend/unplugin-i18n-helper@2.0.4","maintainers":[{"name":"yysanf","email":"1098425142@qq.com"},{"name":"ruanlin","email":"ruanlin.kylin@gmail.com"},{"name":"xiex127","email":"xiexuan127@foxmail.com"},{"name":"cute1baby","email":"1138724604@qq.com"},{"name":"wenhongling","email":"1228514746@qq.com"}],"homepage":"https://github.com/yysanf/vite-plugin-i18n-helper/tree/unplugin/dev#readme","bugs":{"url":"https://github.com/yysanf/vite-plugin-i18n-helper/issues"},"dist":{"shasum":"92890038dfb98e36e61a6f67656eb193722019a0","tarball":"https://registry.npmjs.org/@cnhis-frontend/unplugin-i18n-helper/-/unplugin-i18n-helper-2.0.4.tgz","fileCount":12,"integrity":"sha512-IpL7H3iFfepUoZmJQNhSxyhMosp5EnnL6Y1xIosDtY89BBhPj3FoiOnMn0+m8KFvyX7azC7XOVS8zJ0EZMFKAg==","signatures":[{"sig":"MEUCIGz2A/FJWOH4Ei8isK3SbNTVF51mEPuwQyhSDZS/uPwLAiEAzzIrRZO2IGp6mbmjCiKyrhdOdO2WnSkBZNQKV2ESWiY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":88842},"main":"dist/index.cjs","types":"dist/index.d.ts","module":"dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"99847b59839b7a1d27d1f3eb84ee0b0c59efd3d9","scripts":{"build":"cross-env ENV=production rollup -c --bundleConfigAsCjs"},"_npmUser":{"name":"yysanf","email":"1098425142@qq.com"},"repository":{"url":"git+https://github.com/yysanf/vite-plugin-i18n-helper.git","type":"git"},"_npmVersion":"10.8.1","description":"自动查找 包含中文 的字符串和模板字符串，并替换为自定义的国际化方法","directories":{},"_nodeVersion":"20.16.0","dependencies":{"acorn":"^8.10.0","unplugin":"^1.5.0","acorn-jsx":"^5.3.2","htmlparser2":"^8.0.1","magic-string":"^0.25.7","estree-walker":"^2.0.1","@rollup/pluginutils":"^5.0.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.0.1","rollup":"^3.2.3","prettier":"^2.7.1","typescript":"^4.8.4","@types/node":"^18.11.8","eslint-plugin-n":"^15.0.0","eslint-plugin-import":"^2.25.2","eslint-plugin-promise":"^6.0.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","@rollup/plugin-typescript":"^9.0.2","@typescript-eslint/parser":"^5.42.0","@typescript-eslint/eslint-plugin":"^5.0.0","eslint-config-standard-with-typescript":"^23.0.0"},"_npmOperationalInternal":{"tmp":"tmp/unplugin-i18n-helper_2.0.4_1734587488289_0.07213216719694127","host":"s3://npm-registry-packages-npm-production"}},"2.0.5":{"name":"@cnhis-frontend/unplugin-i18n-helper","version":"2.0.5","keywords":["vite","unplugin","i18n"],"author":{"name":"chenzheng"},"license":"MIT","_id":"@cnhis-frontend/unplugin-i18n-helper@2.0.5","maintainers":[{"name":"yysanf","email":"1098425142@qq.com"},{"name":"ruanlin","email":"ruanlin.kylin@gmail.com"},{"name":"xiex127","email":"xiexuan127@foxmail.com"},{"name":"cute1baby","email":"1138724604@qq.com"},{"name":"wenhongling","email":"1228514746@qq.com"}],"homepage":"https://github.com/yysanf/vite-plugin-i18n-helper/tree/unplugin/dev#readme","bugs":{"url":"https://github.com/yysanf/vite-plugin-i18n-helper/issues"},"dist":{"shasum":"10a9cbd0da8ae47fbb0159178518f42d87544bfd","tarball":"https://registry.npmjs.org/@cnhis-frontend/unplugin-i18n-helper/-/unplugin-i18n-helper-2.0.5.tgz","fileCount":12,"integrity":"sha512-elv3B7gpf3YQPg4kEmnQf52SD/ibEkMrpw3oggn83LT+4L4JyCFkLdyswibNFc2CLRF6CSNo1xfcsGEUnTyRjw==","signatures":[{"sig":"MEUCIQDfjEtQ7OkccgzSJ+9YxtU8dDn9AWqwwp88Kdtznq5D5gIgLGvOOu/6WQr92dQU85/zbfwETkTCyP1N6B3opF+bvhY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":89299},"main":"dist/index.cjs","types":"dist/index.d.ts","module":"dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"e0b15475616d5d335c6c66451274fb00e0ad2427","scripts":{"build":"cross-env ENV=production rollup -c --bundleConfigAsCjs"},"_npmUser":{"name":"yysanf","actor":{"name":"yysanf","type":"user","email":"1098425142@qq.com"},"email":"1098425142@qq.com"},"repository":{"url":"git+https://github.com/yysanf/vite-plugin-i18n-helper.git","type":"git"},"_npmVersion":"10.8.1","description":"自动查找 包含中文 的字符串和模板字符串，并替换为自定义的国际化方法","directories":{},"_nodeVersion":"20.16.0","dependencies":{"acorn":"^8.10.0","unplugin":"^1.5.0","acorn-jsx":"^5.3.2","htmlparser2":"^8.0.1","magic-string":"^0.25.7","estree-walker":"^2.0.1","@rollup/pluginutils":"^5.0.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.0.1","rollup":"^3.2.3","prettier":"^2.7.1","typescript":"^4.8.4","@types/node":"^18.11.8","eslint-plugin-n":"^15.0.0","eslint-plugin-import":"^2.25.2","eslint-plugin-promise":"^6.0.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","@rollup/plugin-typescript":"^9.0.2","@typescript-eslint/parser":"^5.42.0","@typescript-eslint/eslint-plugin":"^5.0.0","eslint-config-standard-with-typescript":"^23.0.0"},"_npmOperationalInternal":{"tmp":"tmp/unplugin-i18n-helper_2.0.5_1750391068046_0.29489594405331987","host":"s3://npm-registry-packages-npm-production"}},"2.0.6":{"name":"@cnhis-frontend/unplugin-i18n-helper","version":"2.0.6","keywords":["vite","unplugin","i18n"],"author":{"name":"chenzheng"},"license":"MIT","_id":"@cnhis-frontend/unplugin-i18n-helper@2.0.6","maintainers":[{"name":"yysanf","email":"1098425142@qq.com"},{"name":"ruanlin","email":"ruanlin.kylin@gmail.com"},{"name":"xiex127","email":"xiexuan127@foxmail.com"},{"name":"cute1baby","email":"1138724604@qq.com"},{"name":"wenhongling","email":"1228514746@qq.com"}],"homepage":"https://github.com/yysanf/vite-plugin-i18n-helper/tree/unplugin/dev#readme","bugs":{"url":"https://github.com/yysanf/vite-plugin-i18n-helper/issues"},"dist":{"shasum":"17e1cbdb91574613c96c77e6161debc2ffbed350","tarball":"https://registry.npmjs.org/@cnhis-frontend/unplugin-i18n-helper/-/unplugin-i18n-helper-2.0.6.tgz","fileCount":12,"integrity":"sha512-JxBUOXdLZ5wGTJGg9ocK25f5GmXikjjO+Tu/3+rCUmOujhG/n0R61WcnzZo/Bk+JhhfxCDrdBSFJn1aoE43g0g==","signatures":[{"sig":"MEYCIQCf/NkhLw+adxa4DJUmdKHkzeuQGtz/n+R3fuPJca19hAIhAIBlkKbh9WzHZ3rV9T9m0DprasOBg3WSHAGNIqtMQVJ2","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":91691},"main":"dist/index.cjs","types":"dist/index.d.ts","module":"dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"7abe17ddce90678c816cf6c48c43ed6b67db675e","scripts":{"build":"cross-env ENV=production rollup -c --bundleConfigAsCjs"},"_npmUser":{"name":"yysanf","email":"1098425142@qq.com"},"repository":{"url":"git+https://github.com/yysanf/vite-plugin-i18n-helper.git","type":"git"},"_npmVersion":"10.8.1","description":"自动查找 包含中文 的字符串和模板字符串，并替换为自定义的国际化方法","directories":{},"_nodeVersion":"20.16.0","dependencies":{"acorn":"^8.10.0","unplugin":"^1.5.0","acorn-jsx":"^5.3.2","htmlparser2":"^8.0.1","magic-string":"^0.25.7","estree-walker":"^2.0.1","@rollup/pluginutils":"^5.0.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.0.1","rollup":"^3.2.3","prettier":"^2.7.1","typescript":"^4.8.4","@types/node":"^18.11.8","eslint-plugin-n":"^15.0.0","eslint-plugin-import":"^2.25.2","eslint-plugin-promise":"^6.0.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","@rollup/plugin-typescript":"^9.0.2","@typescript-eslint/parser":"^5.42.0","@typescript-eslint/eslint-plugin":"^5.0.0","eslint-config-standard-with-typescript":"^23.0.0"},"_npmOperationalInternal":{"tmp":"tmp/unplugin-i18n-helper_2.0.6_1756706857592_0.8328176448682427","host":"s3://npm-registry-packages-npm-production"}},"2.0.7":{"name":"@cnhis-frontend/unplugin-i18n-helper","version":"2.0.7","keywords":["vite","unplugin","i18n"],"author":{"name":"chenzheng"},"license":"MIT","_id":"@cnhis-frontend/unplugin-i18n-helper@2.0.7","maintainers":[{"name":"yysanf","email":"1098425142@qq.com"},{"name":"ruanlin","email":"ruanlin.kylin@gmail.com"},{"name":"xiex127","email":"xiexuan127@foxmail.com"},{"name":"cute1baby","email":"1138724604@qq.com"},{"name":"wenhongling","email":"1228514746@qq.com"}],"homepage":"https://github.com/yysanf/vite-plugin-i18n-helper/tree/unplugin/dev#readme","bugs":{"url":"https://github.com/yysanf/vite-plugin-i18n-helper/issues"},"dist":{"shasum":"3a7ddbcc54b5c8f29c311c9e4661dcca3ec8fbe7","tarball":"https://registry.npmjs.org/@cnhis-frontend/unplugin-i18n-helper/-/unplugin-i18n-helper-2.0.7.tgz","fileCount":12,"integrity":"sha512-OjIyPMxkVQTxzJ4GewO88GEu4+jnnk/3DZcjc37HNslpqhGVWEoQg8gh1VNlBbqIUDfEL7QSn18F4VcrdHovbg==","signatures":[{"sig":"MEQCIDM5Mia5pP648S8NvtPWuy8wX8EfxsLd0CFO2oCO6SjRAiBjz2lQPabqiqusl9ar2osWu2FA1XhlCZtqJrofAnEohw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":91861},"main":"dist/index.cjs","types":"dist/index.d.ts","module":"dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"5ec7adad56e9c90a393a58ec3912e1da6619d8a4","scripts":{"build":"cross-env ENV=production rollup -c --bundleConfigAsCjs"},"_npmUser":{"name":"yysanf","email":"1098425142@qq.com"},"repository":{"url":"git+https://github.com/yysanf/vite-plugin-i18n-helper.git","type":"git"},"_npmVersion":"10.8.1","description":"自动查找 包含中文 的字符串和模板字符串，并替换为自定义的国际化方法","directories":{},"_nodeVersion":"20.16.0","dependencies":{"acorn":"^8.10.0","unplugin":"^1.5.0","acorn-jsx":"^5.3.2","htmlparser2":"^8.0.1","magic-string":"^0.25.7","estree-walker":"^2.0.1","@rollup/pluginutils":"^5.0.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.0.1","rollup":"^3.2.3","prettier":"^2.7.1","typescript":"^4.8.4","@types/node":"^18.11.8","eslint-plugin-n":"^15.0.0","eslint-plugin-import":"^2.25.2","eslint-plugin-promise":"^6.0.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","@rollup/plugin-typescript":"^9.0.2","@typescript-eslint/parser":"^5.42.0","@typescript-eslint/eslint-plugin":"^5.0.0","eslint-config-standard-with-typescript":"^23.0.0"},"_npmOperationalInternal":{"tmp":"tmp/unplugin-i18n-helper_2.0.7_1756712443443_0.45283748193446627","host":"s3://npm-registry-packages-npm-production"}},"2.0.8":{"name":"@cnhis-frontend/unplugin-i18n-helper","version":"2.0.8","keywords":["vite","unplugin","i18n"],"author":{"name":"chenzheng"},"license":"MIT","_id":"@cnhis-frontend/unplugin-i18n-helper@2.0.8","maintainers":[{"name":"yysanf","email":"1098425142@qq.com"},{"name":"ruanlin","email":"ruanlin.kylin@gmail.com"},{"name":"xiex127","email":"xiexuan127@foxmail.com"},{"name":"cute1baby","email":"1138724604@qq.com"},{"name":"wenhongling","email":"1228514746@qq.com"}],"homepage":"https://github.com/yysanf/vite-plugin-i18n-helper/tree/unplugin/dev#readme","bugs":{"url":"https://github.com/yysanf/vite-plugin-i18n-helper/issues"},"dist":{"shasum":"cfb0568930bf644b99a0039c83544620eefb498c","tarball":"https://registry.npmjs.org/@cnhis-frontend/unplugin-i18n-helper/-/unplugin-i18n-helper-2.0.8.tgz","fileCount":12,"integrity":"sha512-JgsObUwg+ww6tqre1ghN71q+Lwl5x6wynlDqzZ0wNAtOTYoo3EVI9qBzHoEuHxLN9LFDpw+IqcOiAVatgSJz9A==","signatures":[{"sig":"MEYCIQCo8zXPE6PfY8Q+rpY6qqZNc7BRYbY//pJ/hdI/ZTk1HwIhALi6xsY5uzNMkdGb/E7mQ6myF20EqPYkVXv3OHMxA5fX","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":92813},"main":"dist/index.cjs","types":"dist/index.d.ts","module":"dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"5646d3326aa1de6e894ce78bc7e549c776dbc454","scripts":{"build":"cross-env ENV=production rollup -c --bundleConfigAsCjs"},"_npmUser":{"name":"yysanf","email":"1098425142@qq.com"},"repository":{"url":"git+https://github.com/yysanf/vite-plugin-i18n-helper.git","type":"git"},"_npmVersion":"10.8.1","description":"自动查找 包含中文 的字符串和模板字符串，并替换为自定义的国际化方法","directories":{},"_nodeVersion":"20.16.0","dependencies":{"acorn":"^8.10.0","unplugin":"^1.5.0","acorn-jsx":"^5.3.2","htmlparser2":"^8.0.1","magic-string":"^0.25.7","estree-walker":"^2.0.1","@rollup/pluginutils":"^5.0.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.0.1","rollup":"^3.2.3","prettier":"^2.7.1","typescript":"^4.8.4","@types/node":"^18.11.8","eslint-plugin-n":"^15.0.0","eslint-plugin-import":"^2.25.2","eslint-plugin-promise":"^6.0.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","@rollup/plugin-typescript":"^9.0.2","@typescript-eslint/parser":"^5.42.0","@typescript-eslint/eslint-plugin":"^5.0.0","eslint-config-standard-with-typescript":"^23.0.0"},"_npmOperationalInternal":{"tmp":"tmp/unplugin-i18n-helper_2.0.8_1757299593053_0.32128255214855406","host":"s3://npm-registry-packages-npm-production"}},"2.0.9":{"name":"@cnhis-frontend/unplugin-i18n-helper","version":"2.0.9","license":"MIT","scripts":{"build":"cross-env ENV=production rollup -c --bundleConfigAsCjs"},"main":"dist/index.cjs","module":"dist/index.mjs","types":"dist/index.d.ts","exports":{".":{"require":"./dist/index.cjs","import":"./dist/index.mjs","types":"./dist/index.d.ts"}},"repository":{"type":"git","url":"git+https://github.com/yysanf/vite-plugin-i18n-helper.git"},"bugs":{"url":"https://github.com/yysanf/vite-plugin-i18n-helper/issues"},"homepage":"https://github.com/yysanf/vite-plugin-i18n-helper/tree/unplugin/dev#readme","devDependencies":{"@rollup/plugin-typescript":"^9.0.2","@types/node":"^18.11.8","@typescript-eslint/eslint-plugin":"^5.0.0","@typescript-eslint/parser":"^5.42.0","eslint":"^8.0.1","eslint-config-prettier":"^8.5.0","eslint-config-standard-with-typescript":"^23.0.0","eslint-plugin-import":"^2.25.2","eslint-plugin-n":"^15.0.0","eslint-plugin-prettier":"^4.2.1","eslint-plugin-promise":"^6.0.0","prettier":"^2.7.1","rollup":"^3.2.3","typescript":"^4.8.4"},"dependencies":{"@rollup/pluginutils":"^5.0.0","acorn":"^8.10.0","acorn-jsx":"^5.3.2","estree-walker":"^2.0.1","htmlparser2":"^8.0.1","magic-string":"^0.30.21","unplugin":"^1.5.0"},"description":"自动查找 包含中文 的字符串和模板字符串，并替换为自定义的国际化方法","keywords":["vite","unplugin","i18n"],"author":{"name":"chenzheng"},"_id":"@cnhis-frontend/unplugin-i18n-helper@2.0.9","gitHead":"df75abeaaa9007e49429888809a7341410a06272","_nodeVersion":"20.20.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-wzM3ySsebFThsGfXBoiXQoeg3syJTnNqtT8O71/5LhWYaDbW1sxB5t5Nzdbz678mwEsLcaXO4/HKfX2TbH+HYw==","shasum":"530dd15e59d99b31cce15b6f7e6bc3194a1e744e","tarball":"https://registry.npmjs.org/@cnhis-frontend/unplugin-i18n-helper/-/unplugin-i18n-helper-2.0.9.tgz","fileCount":12,"unpackedSize":93385,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIFr7kcKCr9a0zU8PHrf2I2qT5ShfA/yPHs5c7hZ9IvcAAiAb7JTHMDsk3/dEpM/fQsOgkUWfa2rTh/ThPs+rHPmVLQ=="}]},"_npmUser":{"name":"yysanf","email":"1098425142@qq.com"},"directories":{},"maintainers":[{"name":"yysanf","email":"1098425142@qq.com"},{"name":"ruanlin","email":"ruanlin.kylin@gmail.com"},{"name":"xiex127","email":"xiexuan127@foxmail.com"},{"name":"cute1baby","email":"1138724604@qq.com"},{"name":"wenhongling","email":"1228514746@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/unplugin-i18n-helper_2.0.9_1787561855010_0.697758871638585"},"_hasShrinkwrap":false}},"time":{"created":"2023-10-16T06:22:23.602Z","modified":"2026-08-24T08:57:35.323Z","2.0.0-beta.0":"2023-10-16T06:22:23.913Z","2.0.0":"2024-09-04T03:37:45.534Z","2.0.1":"2024-09-18T09:10:52.439Z","2.0.2":"2024-09-20T03:46:43.250Z","2.0.3":"2024-10-18T03:57:56.960Z","2.0.4":"2024-12-19T05:51:28.472Z","2.0.5":"2025-06-20T03:44:28.210Z","2.0.6":"2025-09-01T06:07:37.758Z","2.0.7":"2025-09-01T07:40:43.638Z","2.0.8":"2025-09-08T02:46:33.286Z","2.0.9":"2026-08-24T08:57:35.146Z"},"bugs":{"url":"https://github.com/yysanf/vite-plugin-i18n-helper/issues"},"author":{"name":"chenzheng"},"license":"MIT","homepage":"https://github.com/yysanf/vite-plugin-i18n-helper/tree/unplugin/dev#readme","keywords":["vite","unplugin","i18n"],"repository":{"type":"git","url":"git+https://github.com/yysanf/vite-plugin-i18n-helper.git"},"description":"自动查找 包含中文 的字符串和模板字符串，并替换为自定义的国际化方法","maintainers":[{"name":"yysanf","email":"1098425142@qq.com"},{"name":"ruanlin","email":"ruanlin.kylin@gmail.com"},{"name":"xiex127","email":"xiexuan127@foxmail.com"},{"name":"cute1baby","email":"1138724604@qq.com"},{"name":"wenhongling","email":"1228514746@qq.com"}],"readme":"# unplugin-i18n-helper\r\n\r\n## 简介\r\n- 自动查找 包含中文 的字符串和模板字符串，并替换为自定义的国际化方法\r\n\r\n## 安装\r\n\r\n**node version:** >=16.0.0\r\n\r\n```bash\r\nnpm i @cnhis-frontend/unplugin-i18n-helper -D\r\n# or\r\nyarn add @cnhis-frontend/unplugin-i18n-helper -D\r\n# or\r\npnpm install @cnhis-frontend/unplugin-i18n-helper -D\r\n```\r\n\r\n## 使用\r\n\r\n- vite.config.ts 中的配置插件\r\n\r\n```ts\r\nimport i18nHelperPlugin from '@cnhis-frontend/unplugin-i18n-helper'\r\nimport path from 'path'\r\nexport default () => {\r\n  return {\r\n    plugins: [\r\n      i18nHelperPlugin.vite({\r\n        includes: [\"src/**\"],\r\n        exclude: [\"node_modules/*\", \"src/i18n.js\"],\r\n        customI18n: \"i18nHelper\",\r\n        customI18nUrl: \"/src/i18n\",\r\n        dictJson: path.resolve(__dirname, \"./src/dict.json\"),\r\n        toI18nCodeFunc: ['toI18nCode'], // 需要将中文入参转化为国际化code入参 的函数\r\n        raw: true,\r\n        output: false,\r\n        skipCallExpression: /^fn$/ // 默认值 /^console\\.[a-zA-Z]+$/ 不处理console.log 等 console 调用\r\n      }),\r\n    ],\r\n  }\r\n}\r\n```\r\n## 示例\r\n```ts\r\n// 原始代码\r\nimport {toI18nCode} from \"/src/i18n.js\"\r\nconst fn = (val) => \"(\" + val + \")\";\r\nconst name1 = \"一二三\"; // 普通字符串\r\nconst name2 = `一二三${name1}`; // 模板字符串\r\nconst name3 = `${`一二三${name1}`}一二三${fn(name1)}`; // 复杂模板字符串\r\nconst name4 = \"三\" + \"2\" +  \"一二三\"; // 表达式不参与 只针对字符串和模板字符串\r\nconst name5 = \"i18n!:一二三\"; // i18n!: 开头的内容不参与编译\r\nconst name6 = \"    一二三   \";  // 首尾空格不参与编译 可设置ignorePrefix和ignoreSuffix自定义规则\r\nfn('一二三'); // skipCallExpression 配置 跳过 fn 的入参处理\r\nconsole.log('一二三')\r\nconsole(toI18nCode('一二三')) // toI18nCodeFunc配置了 toI18nCode\r\nconsole(toI18nCode('一二三:'))\r\n```\r\n- 无 dictJson 参数时 会 转义所有包含中文的字符\r\n\r\n```ts\r\n// 处理后结果\r\nimport {i18nHelper, toI18nCode} from \"/src/i18n.js\"\r\nconst fn = (val) => \"(\" + val + \")\";\r\nconst name1 = i18nHelper(\"一二三\");\r\nconst name2 = i18nHelper(\"一二三{0}\",[name1]);\r\nconst name3 = i18nHelper(\"{0}一二三{1}\",[i18nHelper(\"一二三{0}\",[name1]),fn(name1)]);\r\nconst name4 = i18nHelper(\"三\") + \"2\" +  i18nHelper(\"一二三\");\r\nconst name5 = \"一二三\";\r\nconst name6 = `    ${i18nHelper(\"一二三\")}   `;\r\nfn('一二三'); // skipCallExpression 配置 跳过 fn 的入参处理\r\nconsole.log(i18nHelper(\"一二三\"));\r\nconsole(toI18nCode('一二三')) // 将 一二三 中文入参转化为国际化code入参\r\nconsole(toI18nCode('一二三:'))\r\n```\r\n\r\n- 有 dictJson 参数时 会 转义 dictJson 中匹配到的字符\r\n```json\r\njson 内容\r\n{\r\n  \"一二三\": \"123\",\r\n  \"一二三{0}\": \"123{0}\",\r\n  \"{0}一二三{1}\": \"{0}123{1}\"\r\n}\r\n```\r\n```ts\r\n// 处理后结果\r\nimport {i18nHelper} from \"/src/i18n.js\"\r\nconst fn = val => '(' + val + ')';\r\nconst name1 = i18nHelper(\"123\",null,\"一二三\");\r\nconst name2 = i18nHelper(\"123{0}\",[name1],\"一二三{0}\");\r\nconst name3 = i18nHelper(\"{0}123{1}\",[i18nHelper(\"123{0}\",[name1],\"一二三{0}\"),fn(name1)],\"{0}一二三{1}\");\r\nconst name4 = \"三\" + \"2\" +  i18nHelper(\"123\",null,\"一二三\");\r\nconst name5 = \"一二三\";\r\nconst name6 = `    ${i18nHelper(\"123\",null,\"一二三\")}   `; \r\nconsole(toI18nCode(\"123\", null,\"一二三\")) // 将 一二三 中文入参转化为国际化code入参\r\nconsole(toI18nCode(\"123\", null,\"一二三\", '{0}:')) // 若ignorePrefix/ignoreSuffix命中则会有第四个入参\r\n```\r\n\r\n### 参数说明\r\n\r\n| 参数 | 类型 | 默认值 | 必填 | 说明 |\r\n| ---------   | --------- | --------- | --------- | --------- |\r\n| customI18n    | `string` | - | 是 | 自定义 i18n 方法 |\r\n| customI18nUrl | `string` | - | 是 | 自定义i8n 方法导入地址 |\r\n| toI18nCodeFunc | `Array<string\\|RegExp>` | - | 否 | 需要将中文入参转化为国际化code入参 的函数 |\r\n| dictJson      | `string[]` | - | 否 | 匹配字典 |\r\n| includes      | `Array<string\\|RegExp>\\|string\\|RegExp`  |  -  | 否|  匹配文件规则 |\r\n| exclude       | `Array<string\\|RegExp>\\|string\\|RegExp`  |  -  | 否 | 忽略文件规则 |\r\n| ignoreMark   | `string` | i18n!: | 否 | 忽略以该标识开头的内容 |\r\n| ignorePrefix   | `RegExp` | `/^\\s+/` | 否 | 忽略正则匹配的前缀内容 (默认首尾空格会忽略)|\r\n| ignoreSuffix   | `RegExp` | `/\\s+$/` | 否 | 忽略正则匹配的后缀内容 (默认首尾空格会忽略) |\r\n| skipCallExpression   | `Array<RegExp>\\|RegExp` | /^console\\.[a-zA-Z]+$/ | 否 | 跳过调用表达式的入参处理(默认不处理console.*())  |\r\n| transforms   | `Array<string>` |  | 否 |  参见 内置 transfrom\r\n| raw   | `boolean` | - | 否 | 是否保留 dictJson 匹配前的 原始值 (是 将作为customI18n 第三个参数传入) |\r\n| output   | `boolean\\|string` | - | 否 | 输出字符串处理结果文件(仅支持html/json文件)  |\r\n| jsx   | `boolean` | - | 否 | 针对jsx的处理  |\r\n\r\n\r\n### 内置 transfrom\r\n- ~~V3Template (**不适用vue3.5及以上版本** 并需执行于 .vue 文件被编译**之后**，已弃用)~~\r\n  - vue3 template 模板的中文节点经过vue3的模板优化被标记为静态节，包含中文的静态节点转为国际化代码后，V3Template会将这些再编译成响应式节点\r\n- V2Template (需执行于 .vue 文件被编译 之后)\r\n  - vue2 包含中文的静态节点静态节点转为国际化代码后 V2Template会将这些再编译成响应式节点\r\n\r\n\r\n### webpack\r\n-  dictJson的内容更改后没有生效：具有缓存功能的loader(cache-loader, vue-loader)导致的，一般这些 loader 有缓存过期的配置项。例如 vue-cli 里的 vue-loader\r\n``` js\r\n// vue.config.js\r\nchainWebpack: config => {\r\n  // 将国际化字典内容生成hash\r\n  const hash = i18nHelperPlugin.createFileHash(path.resolve(__dirname, './src/dict.json'));\r\n  config.module\r\n    .rule(\"vue\")\r\n    .use(\"vue-loader\")\r\n    .tap(options => {\r\n      // 找到 vue-loader 的配置 并 设置 cacheIdentifier 加入国际化字典配置的hash\r\n      options.cacheIdentifier += hash; \r\n      return options;\r\n    });\r\n}\r\n\r\n// webpack5 的 buildDependencies 里面加入 配置\r\nconfigureWebpack: {\r\n  cache: {\r\n    buildDependencies: {\r\n      config: [path.resolve(__dirname, './src/dict.json')],\r\n    },\r\n  }\r\n}\r\n```\r\n\r\n- babel处理早于插件导致 ES6 模板字符串编译失效\r\n``` js\r\n/** 例如在 vue-cli脚手架项目中 */\r\n// 源码\r\nconst name = `${1}一二三${2}`;\r\n//预期结果\r\nconst name = i18nHelper(\"{0}123{1}\",[1,2],\"{0}一二三{1}\")\r\n//实际结果\r\nvar name = \"\".concat(1, i18nHelper(\"123\",null,\"一二三\"), 2);\r\n\r\n\r\n/**\r\n * 方案一\r\n * 因为 babel-loader 对ES6语法做了转义, 而插件执行顺序是在 babel后\r\n * 所以需要将 babel 处理时机置后 改为enforce=\"post\" \r\n * 注意js 文件中有 jsx 的代码则要启用配置选项jsx避免报错\r\n */\r\n// vue.config.js\r\nchainWebpack: config => {\r\n    config.module\r\n    .rule(\"js\")\r\n    .post()\r\n    .end();\r\n}\r\n\r\n/**\r\n * 方案二\r\n * 若不考虑兼容性问题，可以 exclude 选项 关掉 babel 的 模板字符串 处理插件\r\n */\r\n// babel.config.js\r\nmodule.exports = {\r\n  presets: [\r\n    [\r\n      \"@vue/cli-plugin-babel/preset\",\r\n      {\r\n        exclude: [\"transform-template-literals\"],\r\n      },\r\n    ],\r\n  ],\r\n};\r\n```\r\n\r\n### 辅助功能\r\n- 查看替换字符串 (vite)\r\n  *  ip + 端口 + '/virtual:i18n-helper/result' (例如 http://127.0.0.1:5173/virtual:i18n-helper/result)\r\n  * 绿色已完成替换   橙色 未完成\r\n- 构建时输出替换结果\r\n  * 设置 output:true  会输出  _i18n_helper_result.html 文件\r\n  * 设置 output: xxx.json 会输出 xxx.json 文件\r\n    ```json\r\n    {\r\n      // 已处理的code及对应中文\r\n      \"compeletedMap\": {\r\n        \"123\": \"一二三\",\r\n        \"123{0}\": \"一二三{0}\",\r\n        \"{0}123{1}\": \"{0}一二三{1}\"\r\n      },\r\n      // 未处理的中文\r\n      \"unCompletedWord\": [\r\n        \"文本测试\"\r\n      ]\r\n    }\r\n    ```\r\n  * 注意事项 webpack 开启了缓存(cache-loader等)时,命中缓存则无输出结果\r\n","readmeFilename":"README.md"}