auto-i18n-plugin-core 0.0.15 → 0.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -220,7 +220,7 @@ var index$2 = /*#__PURE__*/Object.freeze({
220
220
  /*
221
221
  * @Author: xiaoshanwen
222
222
  * @Date: 2023-10-26 17:34:47
223
- * @LastEditTime: 2025-02-11 10:57:45
223
+ * @LastEditTime: 2025-02-11 23:09:10
224
224
  * @FilePath: /i18n_translation_vite/packages/autoI18nPluginCore/src/option.ts
225
225
  */
226
226
  /**
@@ -233,9 +233,9 @@ const DEFAULT_OPTION = {
233
233
  excludedCall: ['$i8n', 'require', '$$i8n', 'console.log', '$t'],
234
234
  /** 标记不用翻译的字符串模式数组,默认是匹配文件扩展名 */
235
235
  excludedPattern: [/\.\w+$/],
236
- /** 排查不需要翻译的目录下的文件路径(白名单) */
237
- excludedPath: [],
238
- /** 指定需要翻译文件的目录路径正则(黑名单) */
236
+ /** 排查不需要翻译的目录下的文件路径(黑名单), 默认不处理node_modules */
237
+ excludedPath: ['node_modules'],
238
+ /** 指定需要翻译文件的目录路径正则(白名单) */
239
239
  includePath: [/src\//],
240
240
  /** 配置文件生成位置,默认为 './lang' */
241
241
  globalPath: './lang',
package/dist/index.d.ts CHANGED
@@ -66,9 +66,9 @@ declare const DEFAULT_OPTION: {
66
66
  excludedCall: string[];
67
67
  /** 标记不用翻译的字符串模式数组,默认是匹配文件扩展名 */
68
68
  excludedPattern: RegExp[];
69
- /** 排查不需要翻译的目录下的文件路径(白名单) */
69
+ /** 排查不需要翻译的目录下的文件路径(黑名单), 默认不处理node_modules */
70
70
  excludedPath: string[];
71
- /** 指定需要翻译文件的目录路径正则(黑名单) */
71
+ /** 指定需要翻译文件的目录路径正则(白名单) */
72
72
  includePath: RegExp[];
73
73
  /** 配置文件生成位置,默认为 './lang' */
74
74
  globalPath: string;
package/dist/index.mjs CHANGED
@@ -199,7 +199,7 @@ var index$2 = /*#__PURE__*/Object.freeze({
199
199
  /*
200
200
  * @Author: xiaoshanwen
201
201
  * @Date: 2023-10-26 17:34:47
202
- * @LastEditTime: 2025-02-11 10:57:45
202
+ * @LastEditTime: 2025-02-11 23:09:10
203
203
  * @FilePath: /i18n_translation_vite/packages/autoI18nPluginCore/src/option.ts
204
204
  */
205
205
  /**
@@ -212,9 +212,9 @@ const DEFAULT_OPTION = {
212
212
  excludedCall: ['$i8n', 'require', '$$i8n', 'console.log', '$t'],
213
213
  /** 标记不用翻译的字符串模式数组,默认是匹配文件扩展名 */
214
214
  excludedPattern: [/\.\w+$/],
215
- /** 排查不需要翻译的目录下的文件路径(白名单) */
216
- excludedPath: [],
217
- /** 指定需要翻译文件的目录路径正则(黑名单) */
215
+ /** 排查不需要翻译的目录下的文件路径(黑名单), 默认不处理node_modules */
216
+ excludedPath: ['node_modules'],
217
+ /** 指定需要翻译文件的目录路径正则(白名单) */
218
218
  includePath: [/src\//],
219
219
  /** 配置文件生成位置,默认为 './lang' */
220
220
  globalPath: './lang',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "auto-i18n-plugin-core",
3
- "version": "0.0.15",
3
+ "version": "0.0.16",
4
4
  "description": "vite, webpack automatic translation plugin core code.",
5
5
  "keywords": [
6
6
  "i18n",