@intlayer/babel 9.7.0 → 9.7.2

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.
Files changed (147) hide show
  1. package/dist/cjs/_virtual/_rolldown/runtime.cjs +1 -2
  2. package/dist/cjs/analyzeContentUsage.cjs +4 -5
  3. package/dist/cjs/babel-plugin-intlayer-extract.cjs +6 -7
  4. package/dist/cjs/babel-plugin-intlayer-field-rename.cjs +3 -4
  5. package/dist/cjs/babel-plugin-intlayer-minify.cjs +4 -5
  6. package/dist/cjs/babel-plugin-intlayer-optimize.cjs +5 -6
  7. package/dist/cjs/babel-plugin-intlayer-purge.cjs +10 -11
  8. package/dist/cjs/babel-plugin-intlayer-usage-analyzer.cjs +6 -7
  9. package/dist/cjs/babelParser.cjs +1 -2
  10. package/dist/cjs/compat/namespaceResolution.cjs +2 -3
  11. package/dist/cjs/compat/optimizePass.cjs +3 -4
  12. package/dist/cjs/compat/usageAnalysis.cjs +5 -6
  13. package/dist/cjs/dictionaryImports.cjs +1 -2
  14. package/dist/cjs/extractContent/babelProcessor.cjs +6 -7
  15. package/dist/cjs/extractContent/contentWriter.cjs +4 -5
  16. package/dist/cjs/extractContent/extractContent.cjs +12 -13
  17. package/dist/cjs/extractContent/index.cjs +8 -8
  18. package/dist/cjs/extractContent/processTsxFile.cjs +5 -6
  19. package/dist/cjs/extractContent/utils/constants.cjs +1 -2
  20. package/dist/cjs/extractContent/utils/detectPackageName.cjs +2 -3
  21. package/dist/cjs/extractContent/utils/extractDictionaryInfo.cjs +5 -6
  22. package/dist/cjs/extractContent/utils/extractDictionaryKey.cjs +1 -2
  23. package/dist/cjs/extractContent/utils/generateKey.cjs +1 -2
  24. package/dist/cjs/extractContent/utils/getComponentName.cjs +2 -3
  25. package/dist/cjs/extractContent/utils/getExistingIntlayerInfo.cjs +2 -3
  26. package/dist/cjs/extractContent/utils/getOrGenerateKey.cjs +2 -3
  27. package/dist/cjs/extractContent/utils/index.cjs +9 -9
  28. package/dist/cjs/extractContent/utils/resolveDictionaryKey.cjs +1 -2
  29. package/dist/cjs/extractScriptBlocks.cjs +1 -2
  30. package/dist/cjs/getExtractPluginOptions.cjs +6 -7
  31. package/dist/cjs/getOptimizePluginOptions.cjs +2 -3
  32. package/dist/cjs/getPurgePluginOptions.cjs +2 -3
  33. package/dist/cjs/index.cjs +22 -22
  34. package/dist/cjs/nativeCallers.cjs +1 -2
  35. package/dist/cjs/normalizedFilesList.cjs +1 -2
  36. package/dist/cjs/pruneContext.cjs +1 -2
  37. package/dist/cjs/staticAstReaders.cjs +1 -2
  38. package/dist/cjs/transformers.cjs +6 -7
  39. package/dist/esm/_virtual/_rolldown/runtime.mjs +1 -2
  40. package/dist/esm/analyzeContentUsage.mjs +2 -3
  41. package/dist/esm/babel-plugin-intlayer-extract.mjs +4 -5
  42. package/dist/esm/babel-plugin-intlayer-field-rename.mjs +2 -3
  43. package/dist/esm/babel-plugin-intlayer-minify.mjs +2 -3
  44. package/dist/esm/babel-plugin-intlayer-optimize.mjs +2 -3
  45. package/dist/esm/babel-plugin-intlayer-purge.mjs +4 -5
  46. package/dist/esm/babel-plugin-intlayer-usage-analyzer.mjs +4 -5
  47. package/dist/esm/babelParser.mjs +1 -2
  48. package/dist/esm/compat/namespaceResolution.mjs +1 -2
  49. package/dist/esm/compat/optimizePass.mjs +1 -2
  50. package/dist/esm/compat/usageAnalysis.mjs +3 -4
  51. package/dist/esm/dictionaryImports.mjs +1 -2
  52. package/dist/esm/extractContent/babelProcessor.mjs +2 -3
  53. package/dist/esm/extractContent/contentWriter.mjs +2 -3
  54. package/dist/esm/extractContent/extractContent.mjs +7 -8
  55. package/dist/esm/extractContent/index.mjs +3 -3
  56. package/dist/esm/extractContent/processTsxFile.mjs +3 -4
  57. package/dist/esm/extractContent/utils/constants.mjs +1 -2
  58. package/dist/esm/extractContent/utils/detectPackageName.mjs +1 -2
  59. package/dist/esm/extractContent/utils/extractDictionaryInfo.mjs +3 -4
  60. package/dist/esm/extractContent/utils/extractDictionaryKey.mjs +1 -2
  61. package/dist/esm/extractContent/utils/generateKey.mjs +1 -2
  62. package/dist/esm/extractContent/utils/getComponentName.mjs +1 -2
  63. package/dist/esm/extractContent/utils/getExistingIntlayerInfo.mjs +1 -2
  64. package/dist/esm/extractContent/utils/getOrGenerateKey.mjs +1 -2
  65. package/dist/esm/extractContent/utils/index.mjs +1 -1
  66. package/dist/esm/extractContent/utils/resolveDictionaryKey.mjs +1 -2
  67. package/dist/esm/extractScriptBlocks.mjs +1 -2
  68. package/dist/esm/getExtractPluginOptions.mjs +3 -4
  69. package/dist/esm/getOptimizePluginOptions.mjs +2 -3
  70. package/dist/esm/getPurgePluginOptions.mjs +2 -3
  71. package/dist/esm/index.mjs +15 -15
  72. package/dist/esm/nativeCallers.mjs +1 -2
  73. package/dist/esm/normalizedFilesList.mjs +1 -2
  74. package/dist/esm/pruneContext.mjs +1 -2
  75. package/dist/esm/staticAstReaders.mjs +1 -2
  76. package/dist/esm/transformers.mjs +3 -4
  77. package/dist/types/analyzeContentUsage.d.ts +0 -2
  78. package/dist/types/analyzeContentUsage.d.ts.map +1 -1
  79. package/dist/types/babel-plugin-intlayer-extract.d.ts +1 -3
  80. package/dist/types/babel-plugin-intlayer-extract.d.ts.map +1 -1
  81. package/dist/types/babel-plugin-intlayer-field-rename.d.ts +0 -2
  82. package/dist/types/babel-plugin-intlayer-field-rename.d.ts.map +1 -1
  83. package/dist/types/babel-plugin-intlayer-minify.d.ts +0 -2
  84. package/dist/types/babel-plugin-intlayer-minify.d.ts.map +1 -1
  85. package/dist/types/babel-plugin-intlayer-optimize.d.ts +0 -2
  86. package/dist/types/babel-plugin-intlayer-optimize.d.ts.map +1 -1
  87. package/dist/types/babel-plugin-intlayer-purge.d.ts +1 -3
  88. package/dist/types/babel-plugin-intlayer-purge.d.ts.map +1 -1
  89. package/dist/types/babel-plugin-intlayer-usage-analyzer.d.ts +1 -3
  90. package/dist/types/babel-plugin-intlayer-usage-analyzer.d.ts.map +1 -1
  91. package/dist/types/babelParser.d.ts +0 -2
  92. package/dist/types/babelParser.d.ts.map +1 -1
  93. package/dist/types/compat/namespaceResolution.d.ts +1 -3
  94. package/dist/types/compat/namespaceResolution.d.ts.map +1 -1
  95. package/dist/types/compat/optimizePass.d.ts +1 -3
  96. package/dist/types/compat/optimizePass.d.ts.map +1 -1
  97. package/dist/types/compat/usageAnalysis.d.ts +1 -3
  98. package/dist/types/compat/usageAnalysis.d.ts.map +1 -1
  99. package/dist/types/dictionaryImports.d.ts +0 -2
  100. package/dist/types/dictionaryImports.d.ts.map +1 -1
  101. package/dist/types/extractContent/babelProcessor.d.ts +1 -3
  102. package/dist/types/extractContent/babelProcessor.d.ts.map +1 -1
  103. package/dist/types/extractContent/contentWriter.d.ts +1 -2
  104. package/dist/types/extractContent/contentWriter.d.ts.map +1 -1
  105. package/dist/types/extractContent/extractContent.d.ts +1 -2
  106. package/dist/types/extractContent/extractContent.d.ts.map +1 -1
  107. package/dist/types/extractContent/index.d.ts +2 -2
  108. package/dist/types/extractContent/processTsxFile.d.ts +0 -2
  109. package/dist/types/extractContent/processTsxFile.d.ts.map +1 -1
  110. package/dist/types/extractContent/utils/constants.d.ts +0 -2
  111. package/dist/types/extractContent/utils/constants.d.ts.map +1 -1
  112. package/dist/types/extractContent/utils/detectPackageName.d.ts +0 -2
  113. package/dist/types/extractContent/utils/detectPackageName.d.ts.map +1 -1
  114. package/dist/types/extractContent/utils/extractDictionaryInfo.d.ts +1 -3
  115. package/dist/types/extractContent/utils/extractDictionaryInfo.d.ts.map +1 -1
  116. package/dist/types/extractContent/utils/extractDictionaryKey.d.ts +0 -2
  117. package/dist/types/extractContent/utils/extractDictionaryKey.d.ts.map +1 -1
  118. package/dist/types/extractContent/utils/generateKey.d.ts +0 -2
  119. package/dist/types/extractContent/utils/generateKey.d.ts.map +1 -1
  120. package/dist/types/extractContent/utils/getComponentName.d.ts +0 -2
  121. package/dist/types/extractContent/utils/getComponentName.d.ts.map +1 -1
  122. package/dist/types/extractContent/utils/getExistingIntlayerInfo.d.ts +0 -2
  123. package/dist/types/extractContent/utils/getExistingIntlayerInfo.d.ts.map +1 -1
  124. package/dist/types/extractContent/utils/getOrGenerateKey.d.ts +0 -2
  125. package/dist/types/extractContent/utils/getOrGenerateKey.d.ts.map +1 -1
  126. package/dist/types/extractContent/utils/resolveDictionaryKey.d.ts +0 -2
  127. package/dist/types/extractContent/utils/resolveDictionaryKey.d.ts.map +1 -1
  128. package/dist/types/extractScriptBlocks.d.ts +0 -2
  129. package/dist/types/extractScriptBlocks.d.ts.map +1 -1
  130. package/dist/types/getExtractPluginOptions.d.ts +0 -2
  131. package/dist/types/getExtractPluginOptions.d.ts.map +1 -1
  132. package/dist/types/getOptimizePluginOptions.d.ts +2 -3
  133. package/dist/types/getOptimizePluginOptions.d.ts.map +1 -1
  134. package/dist/types/getPurgePluginOptions.d.ts +2 -3
  135. package/dist/types/getPurgePluginOptions.d.ts.map +1 -1
  136. package/dist/types/index.d.ts +9 -9
  137. package/dist/types/nativeCallers.d.ts +0 -2
  138. package/dist/types/nativeCallers.d.ts.map +1 -1
  139. package/dist/types/normalizedFilesList.d.ts +0 -2
  140. package/dist/types/normalizedFilesList.d.ts.map +1 -1
  141. package/dist/types/pruneContext.d.ts +0 -2
  142. package/dist/types/pruneContext.d.ts.map +1 -1
  143. package/dist/types/staticAstReaders.d.ts +0 -2
  144. package/dist/types/staticAstReaders.d.ts.map +1 -1
  145. package/dist/types/transformers.d.ts +1 -3
  146. package/dist/types/transformers.d.ts.map +1 -1
  147. package/package.json +47 -47
@@ -1,13 +1,13 @@
1
- import { SERVER_CAPABLE_PACKAGES } from "./utils/constants.mjs";
2
1
  import { extractBabelContentForComponents } from "./babelProcessor.mjs";
2
+ import { SERVER_CAPABLE_PACKAGES } from "./utils/constants.mjs";
3
3
  import { readFileSync, writeFileSync } from "node:fs";
4
+ import { detectFormatCommand } from "@intlayer/engine/cli";
4
5
  import { parse } from "@babel/parser";
5
6
  import { execSync } from "node:child_process";
6
- import { detectFormatCommand } from "@intlayer/engine/cli";
7
7
  import _traverse from "@babel/traverse";
8
8
  import * as t from "@babel/types";
9
9
 
10
- //#region src/extractContent/processTsxFile.ts
10
+ // src/extractContent/processTsxFile.ts
11
11
  /**
12
12
  * Returns true when a string literal sits inside a JSX child expression
13
13
  * container (i.e. a React node slot), meaning content.key renders as an
@@ -340,6 +340,5 @@ const processTsxFile = (filePath, componentKey, packageName, configuration, save
340
340
  };
341
341
  };
342
342
 
343
- //#endregion
344
343
  export { processTsxFile };
345
344
  //# sourceMappingURL=processTsxFile.mjs.map
@@ -1,4 +1,4 @@
1
- //#region src/extractContent/utils/constants.ts
1
+ // src/extractContent/utils/constants.ts
2
2
  /**
3
3
  * The list of supported Intlayer integration packages.
4
4
  * This is the single source of truth for package name validation.
@@ -23,6 +23,5 @@ const packageList = [
23
23
  /** Packages that support a `/server` sub-path for React Server Components. */
24
24
  const SERVER_CAPABLE_PACKAGES = /* @__PURE__ */ new Set(["next-intlayer"]);
25
25
 
26
- //#endregion
27
26
  export { SERVER_CAPABLE_PACKAGES, packageList };
28
27
  //# sourceMappingURL=constants.mjs.map
@@ -2,7 +2,7 @@ import { packageList } from "./constants.mjs";
2
2
  import { existsSync, readFileSync } from "node:fs";
3
3
  import { getPackageJsonPath } from "@intlayer/config/utils";
4
4
 
5
- //#region src/extractContent/utils/detectPackageName.ts
5
+ // src/extractContent/utils/detectPackageName.ts
6
6
  /**
7
7
  * Detects which intlayer package is used in the project by reading package.json.
8
8
  */
@@ -20,6 +20,5 @@ const detectPackageName = (searchDir) => {
20
20
  return packageList[packageList.length - 1] ?? "intlayer";
21
21
  };
22
22
 
23
- //#endregion
24
23
  export { detectPackageName };
25
24
  //# sourceMappingURL=detectPackageName.mjs.map
@@ -1,12 +1,12 @@
1
1
  import { extractDictionaryKey } from "./extractDictionaryKey.mjs";
2
- import { getExtensionFromFormat, getFormatFromExtension, resolveRelativePath } from "@intlayer/engine/utils";
3
- import { basename, dirname, extname, relative, resolve } from "node:path";
4
2
  import * as ANSIColors from "@intlayer/config/colors";
5
3
  import { colorize } from "@intlayer/config/logger";
4
+ import { getExtensionFromFormat, getFormatFromExtension, resolveRelativePath } from "@intlayer/engine/utils";
5
+ import { basename, dirname, extname, relative, resolve } from "node:path";
6
6
  import { assertPathWithin, parseStringPattern } from "@intlayer/config/utils";
7
7
  import { getUnmergedDictionaries } from "@intlayer/dictionaries-entry/unmerged";
8
8
 
9
- //#region src/extractContent/utils/extractDictionaryInfo.ts
9
+ // src/extractContent/utils/extractDictionaryInfo.ts
10
10
  const getOutput = (configuration, locale) => {
11
11
  const output = configuration.compiler?.output;
12
12
  if (output === void 0 || output === null) throw new Error(`No output configuration found. Add a ${colorize("compiler.output", ANSIColors.BLUE)} in your configuration.`);
@@ -100,6 +100,5 @@ const extractDictionaryInfo = async (filePath, fileText, configuration, format)
100
100
  };
101
101
  };
102
102
 
103
- //#endregion
104
103
  export { extractDictionaryInfo, getOutput, resolveContentFilePaths };
105
104
  //# sourceMappingURL=extractDictionaryInfo.mjs.map
@@ -2,7 +2,7 @@ import { COMPILER_DICTIONARY_KEY_PREFIX } from "@intlayer/config/defaultValues";
2
2
  import { camelCaseToKebabCase } from "@intlayer/config/utils";
3
3
  import { detectExportedComponentName } from "@intlayer/engine/cli";
4
4
 
5
- //#region src/extractContent/utils/extractDictionaryKey.ts
5
+ // src/extractContent/utils/extractDictionaryKey.ts
6
6
  /**
7
7
  * Extracts a dictionary key from a file path.
8
8
  *
@@ -22,6 +22,5 @@ const extractDictionaryKey = (filePath, fileText, prefix = COMPILER_DICTIONARY_K
22
22
  return extractDictionaryKeyFromPath(filePath, prefix);
23
23
  };
24
24
 
25
- //#endregion
26
25
  export { extractDictionaryKey, extractDictionaryKeyFromPath };
27
26
  //# sourceMappingURL=extractDictionaryKey.mjs.map
@@ -1,4 +1,4 @@
1
- //#region src/extractContent/utils/generateKey.ts
1
+ // src/extractContent/utils/generateKey.ts
2
2
  const generateKey = (text, existingKeys) => {
3
3
  const maxWords = 5;
4
4
  const maxWordLength = 20;
@@ -15,6 +15,5 @@ const generateKey = (text, existingKeys) => {
15
15
  return key;
16
16
  };
17
17
 
18
- //#endregion
19
18
  export { generateKey };
20
19
  //# sourceMappingURL=generateKey.mjs.map
@@ -1,6 +1,6 @@
1
1
  import * as t from "@babel/types";
2
2
 
3
- //#region src/extractContent/utils/getComponentName.ts
3
+ // src/extractContent/utils/getComponentName.ts
4
4
  /**
5
5
  * Resolves the name of the component from various function declaration types.
6
6
  */
@@ -11,6 +11,5 @@ const getComponentName = (path) => {
11
11
  }
12
12
  };
13
13
 
14
- //#endregion
15
14
  export { getComponentName };
16
15
  //# sourceMappingURL=getComponentName.mjs.map
@@ -1,6 +1,6 @@
1
1
  import * as t from "@babel/types";
2
2
 
3
- //#region src/extractContent/utils/getExistingIntlayerInfo.ts
3
+ // src/extractContent/utils/getExistingIntlayerInfo.ts
4
4
  /**
5
5
  * Searches for an existing useIntlayer or getIntlayer call in the function body.
6
6
  */
@@ -43,6 +43,5 @@ const getExistingIntlayerInfo = (path) => {
43
43
  return result;
44
44
  };
45
45
 
46
- //#endregion
47
46
  export { getExistingIntlayerInfo };
48
47
  //# sourceMappingURL=getExistingIntlayerInfo.mjs.map
@@ -1,6 +1,6 @@
1
1
  import { generateKey } from "./generateKey.mjs";
2
2
 
3
- //#region src/extractContent/utils/getOrGenerateKey.ts
3
+ // src/extractContent/utils/getOrGenerateKey.ts
4
4
  /**
5
5
  * Gets an existing key for a given text or generates a new one.
6
6
  */
@@ -14,6 +14,5 @@ const getOrGenerateKey = (text, componentKey, existingKeys, extractedContent) =>
14
14
  return key;
15
15
  };
16
16
 
17
- //#endregion
18
17
  export { getOrGenerateKey };
19
18
  //# sourceMappingURL=getOrGenerateKey.mjs.map
@@ -1,7 +1,7 @@
1
1
  import { SERVER_CAPABLE_PACKAGES, packageList } from "./constants.mjs";
2
2
  import { detectPackageName } from "./detectPackageName.mjs";
3
- import { extractDictionaryKey, extractDictionaryKeyFromPath } from "./extractDictionaryKey.mjs";
4
3
  import { extractDictionaryInfo, getOutput, resolveContentFilePaths } from "./extractDictionaryInfo.mjs";
4
+ import { extractDictionaryKey, extractDictionaryKeyFromPath } from "./extractDictionaryKey.mjs";
5
5
  import { generateKey } from "./generateKey.mjs";
6
6
  import { getComponentName } from "./getComponentName.mjs";
7
7
  import { getExistingIntlayerInfo } from "./getExistingIntlayerInfo.mjs";
@@ -3,7 +3,7 @@ import { dirname, join, resolve } from "node:path";
3
3
  import { assertPathWithin } from "@intlayer/config/utils";
4
4
  import { getUnmergedDictionaries } from "@intlayer/dictionaries-entry/unmerged";
5
5
 
6
- //#region src/extractContent/utils/resolveDictionaryKey.ts
6
+ // src/extractContent/utils/resolveDictionaryKey.ts
7
7
  /**
8
8
  * Resolves a unique dictionary key, checking for existing dictionaries and files.
9
9
  * Note: this chokidar-specific variant fetches unmergedDictionaries internally
@@ -30,6 +30,5 @@ const resolveDictionaryKey = (initialKey, filePath, configuration, unmergedDicti
30
30
  return initialKey;
31
31
  };
32
32
 
33
- //#endregion
34
33
  export { resolveDictionaryKey };
35
34
  //# sourceMappingURL=resolveDictionaryKey.mjs.map
@@ -1,6 +1,6 @@
1
1
  import { extname } from "node:path";
2
2
 
3
- //#region src/extractScriptBlocks.ts
3
+ // src/extractScriptBlocks.ts
4
4
  /**
5
5
  * Regex that matches every `<script …>…<\/script>` block in an SFC (Vue or
6
6
  * Svelte). Works for both instance scripts and module/setup scripts.
@@ -97,6 +97,5 @@ const injectScriptBlocks = (originalCode, modifications) => {
97
97
  return result;
98
98
  };
99
99
 
100
- //#endregion
101
100
  export { extractScriptBlocks, injectScriptBlocks };
102
101
  //# sourceMappingURL=extractScriptBlocks.mjs.map
@@ -1,11 +1,11 @@
1
1
  import { writeContentHelper } from "./extractContent/contentWriter.mjs";
2
+ import * as ANSIColors from "@intlayer/config/colors";
2
3
  import { COMPILER_ENABLED } from "@intlayer/config/defaultValues";
4
+ import { colorize, colorizeKey, getAppLogger } from "@intlayer/config/logger";
3
5
  import { getConfiguration } from "@intlayer/config/node";
4
6
  import { buildComponentFilesList } from "@intlayer/engine/utils";
5
- import * as ANSIColors from "@intlayer/config/colors";
6
- import { colorize, colorizeKey, getAppLogger } from "@intlayer/config/logger";
7
7
 
8
- //#region src/getExtractPluginOptions.ts
8
+ // src/getExtractPluginOptions.ts
9
9
  /**
10
10
  * Get the options for the Intlayer Babel extraction plugin
11
11
  * This function loads the Intlayer configuration and sets up the onExtract callback
@@ -36,6 +36,5 @@ const getExtractPluginOptions = (configuration = getConfiguration(), isDev = pro
36
36
  };
37
37
  };
38
38
 
39
- //#endregion
40
39
  export { getExtractPluginOptions };
41
40
  //# sourceMappingURL=getExtractPluginOptions.mjs.map
@@ -1,10 +1,10 @@
1
1
  import { __require } from "./_virtual/_rolldown/runtime.mjs";
2
2
  import { getConfiguration } from "@intlayer/config/node";
3
- import { getNestedDictionaryGraph } from "@intlayer/core/dictionaryManipulator";
4
3
  import { buildComponentFilesList } from "@intlayer/engine/utils";
5
4
  import { join } from "node:path";
5
+ import { getNestedDictionaryGraph } from "@intlayer/core/dictionaryManipulator";
6
6
 
7
- //#region src/getOptimizePluginOptions.ts
7
+ // src/getOptimizePluginOptions.ts
8
8
  /**
9
9
  * Load dictionaries from the dictionaries-entry package
10
10
  */
@@ -58,6 +58,5 @@ const getOptimizePluginOptions = (params) => {
58
58
  };
59
59
  };
60
60
 
61
- //#endregion
62
61
  export { getOptimizePluginOptions };
63
62
  //# sourceMappingURL=getOptimizePluginOptions.mjs.map
@@ -1,10 +1,10 @@
1
1
  import { __require } from "./_virtual/_rolldown/runtime.mjs";
2
2
  import { IMPORT_MODE } from "@intlayer/config/defaultValues";
3
3
  import { getConfiguration } from "@intlayer/config/node";
4
- import { getNestedDictionaryReferences } from "@intlayer/core/dictionaryManipulator";
5
4
  import { buildComponentFilesList } from "@intlayer/engine/utils";
5
+ import { getNestedDictionaryReferences } from "@intlayer/core/dictionaryManipulator";
6
6
 
7
- //#region src/getPurgePluginOptions.ts
7
+ // src/getPurgePluginOptions.ts
8
8
  /**
9
9
  * Attempts to load compiled dictionaries from `@intlayer/dictionaries-entry`.
10
10
  * Returns an empty array if the entry point is not available (e.g. dictionaries
@@ -104,6 +104,5 @@ const getMinifyPluginOptions = (params) => {
104
104
  };
105
105
  };
106
106
 
107
- //#endregion
108
107
  export { getMinifyPluginOptions, getPurgePluginOptions };
109
108
  //# sourceMappingURL=getPurgePluginOptions.mjs.map
@@ -1,24 +1,24 @@
1
- import { unwrapAwait } from "./staticAstReaders.mjs";
2
- import { getMinifyPluginOptions, getPurgePluginOptions } from "./getPurgePluginOptions.mjs";
3
- import { CHAINABLE_RUNTIME_METHOD_NAMES, INTLAYER_CALLER_NAMES, NATIVE_CALLER_NAME_SET } from "./nativeCallers.mjs";
4
- import { createPruneContext, preserveNestedDictionaryFields } from "./pruneContext.mjs";
5
- import { DEFAULT_COMPAT_CALLERS, makeUsageAnalyzerBabelPlugin } from "./babel-plugin-intlayer-usage-analyzer.mjs";
6
- import { buildNestedRenameMapFromContent, generateShortFieldName, getNestedRenameEntryAtPath, makeFieldRenameBabelPlugin, renameIntlayerFieldAccesses, serializeFieldRenameMap } from "./babel-plugin-intlayer-field-rename.mjs";
7
- import { extractScriptBlocks, injectScriptBlocks } from "./extractScriptBlocks.mjs";
8
- import { intlayerOptimizeBabelPlugin } from "./babel-plugin-intlayer-optimize.mjs";
9
- import { BABEL_PARSER_OPTIONS, INTLAYER_USAGE_REGEX, SOURCE_FILE_REGEX, analyzeFieldUsageInFile, buildUsageCheckRegex, getUsageCheckRegex, optimizeSourceFile, renameFieldsInCode, renameFieldsInSourceFile } from "./transformers.mjs";
10
- import { getSharedPruneContext, intlayerPurgeBabelPlugin, runIntlayerPurgePipeline } from "./babel-plugin-intlayer-purge.mjs";
11
- import { intlayerMinifyBabelPlugin } from "./babel-plugin-intlayer-minify.mjs";
12
- import { SERVER_CAPABLE_PACKAGES, packageList } from "./extractContent/utils/constants.mjs";
13
- import { detectPackageName } from "./extractContent/utils/detectPackageName.mjs";
14
1
  import { extractDictionaryKey, extractDictionaryKeyFromPath } from "./extractContent/utils/extractDictionaryKey.mjs";
15
2
  import { extractDictionaryInfo, getOutput, resolveContentFilePaths } from "./extractContent/utils/extractDictionaryInfo.mjs";
3
+ import { mergeWithExistingMultilingualDictionary, mergeWithExistingPerLocaleDictionary, writeContentHelper } from "./extractContent/contentWriter.mjs";
4
+ import { intlayerExtractBabelPlugin } from "./babel-plugin-intlayer-extract.mjs";
5
+ import { SERVER_CAPABLE_PACKAGES, packageList } from "./extractContent/utils/constants.mjs";
6
+ import { detectPackageName } from "./extractContent/utils/detectPackageName.mjs";
16
7
  import { generateKey } from "./extractContent/utils/generateKey.mjs";
17
8
  import { getComponentName } from "./extractContent/utils/getComponentName.mjs";
18
- import { mergeWithExistingMultilingualDictionary, mergeWithExistingPerLocaleDictionary, writeContentHelper } from "./extractContent/contentWriter.mjs";
19
9
  import { extractContent, extractContentSync } from "./extractContent/extractContent.mjs";
20
- import { intlayerExtractBabelPlugin } from "./babel-plugin-intlayer-extract.mjs";
10
+ import { buildNestedRenameMapFromContent, generateShortFieldName, getNestedRenameEntryAtPath, makeFieldRenameBabelPlugin, renameIntlayerFieldAccesses, serializeFieldRenameMap } from "./babel-plugin-intlayer-field-rename.mjs";
11
+ import { CHAINABLE_RUNTIME_METHOD_NAMES, INTLAYER_CALLER_NAMES, NATIVE_CALLER_NAME_SET } from "./nativeCallers.mjs";
12
+ import { createPruneContext, preserveNestedDictionaryFields } from "./pruneContext.mjs";
13
+ import { unwrapAwait } from "./staticAstReaders.mjs";
14
+ import { intlayerMinifyBabelPlugin } from "./babel-plugin-intlayer-minify.mjs";
15
+ import { intlayerOptimizeBabelPlugin } from "./babel-plugin-intlayer-optimize.mjs";
16
+ import { getSharedPruneContext, intlayerPurgeBabelPlugin, runIntlayerPurgePipeline } from "./babel-plugin-intlayer-purge.mjs";
17
+ import { DEFAULT_COMPAT_CALLERS, makeUsageAnalyzerBabelPlugin } from "./babel-plugin-intlayer-usage-analyzer.mjs";
18
+ import { extractScriptBlocks, injectScriptBlocks } from "./extractScriptBlocks.mjs";
21
19
  import { getExtractPluginOptions } from "./getExtractPluginOptions.mjs";
22
20
  import { getOptimizePluginOptions } from "./getOptimizePluginOptions.mjs";
21
+ import { getMinifyPluginOptions, getPurgePluginOptions } from "./getPurgePluginOptions.mjs";
22
+ import { BABEL_PARSER_OPTIONS, INTLAYER_USAGE_REGEX, SOURCE_FILE_REGEX, analyzeFieldUsageInFile, buildUsageCheckRegex, getUsageCheckRegex, optimizeSourceFile, renameFieldsInCode, renameFieldsInSourceFile } from "./transformers.mjs";
23
23
 
24
24
  export { BABEL_PARSER_OPTIONS, CHAINABLE_RUNTIME_METHOD_NAMES, DEFAULT_COMPAT_CALLERS, INTLAYER_CALLER_NAMES, INTLAYER_USAGE_REGEX, NATIVE_CALLER_NAME_SET, SERVER_CAPABLE_PACKAGES, SOURCE_FILE_REGEX, analyzeFieldUsageInFile, buildNestedRenameMapFromContent, buildUsageCheckRegex, createPruneContext, detectPackageName, extractContent, extractContentSync, extractDictionaryInfo, extractDictionaryKey, extractDictionaryKeyFromPath, extractScriptBlocks, generateKey, generateShortFieldName, getComponentName, getExtractPluginOptions, getMinifyPluginOptions, getNestedRenameEntryAtPath, getOptimizePluginOptions, getOutput, getPurgePluginOptions, getSharedPruneContext, getUsageCheckRegex, injectScriptBlocks, intlayerExtractBabelPlugin, intlayerMinifyBabelPlugin, intlayerOptimizeBabelPlugin, intlayerPurgeBabelPlugin, makeFieldRenameBabelPlugin, makeUsageAnalyzerBabelPlugin, mergeWithExistingMultilingualDictionary, mergeWithExistingPerLocaleDictionary, optimizeSourceFile, packageList, preserveNestedDictionaryFields, renameFieldsInCode, renameFieldsInSourceFile, renameIntlayerFieldAccesses, resolveContentFilePaths, runIntlayerPurgePipeline, serializeFieldRenameMap, unwrapAwait, writeContentHelper };
@@ -1,4 +1,4 @@
1
- //#region src/nativeCallers.ts
1
+ // src/nativeCallers.ts
2
2
  /**
3
3
  * The intlayer getters the build pipeline recognises without any adapter, and
4
4
  * the runtime methods their result carries.
@@ -33,6 +33,5 @@ const NATIVE_CALLER_NAME_SET = new Set(INTLAYER_CALLER_NAMES);
33
33
  */
34
34
  const CHAINABLE_RUNTIME_METHOD_NAMES = /* @__PURE__ */ new Set(["onChange"]);
35
35
 
36
- //#endregion
37
36
  export { CHAINABLE_RUNTIME_METHOD_NAMES, INTLAYER_CALLER_NAMES, NATIVE_CALLER_NAME_SET };
38
37
  //# sourceMappingURL=nativeCallers.mjs.map
@@ -1,6 +1,6 @@
1
1
  import { normalizePath } from "@intlayer/config/utils";
2
2
 
3
- //#region src/normalizedFilesList.ts
3
+ // src/normalizedFilesList.ts
4
4
  /**
5
5
  * Cache of normalized files-list sets, keyed by the files-list array
6
6
  * reference. Babel reuses the same plugin options object for every file of a
@@ -24,6 +24,5 @@ const getNormalizedFilesListSet = (filesList) => {
24
24
  return normalizedSet;
25
25
  };
26
26
 
27
- //#endregion
28
27
  export { getNormalizedFilesListSet };
29
28
  //# sourceMappingURL=normalizedFilesList.mjs.map
@@ -1,4 +1,4 @@
1
- //#region src/pruneContext.ts
1
+ // src/pruneContext.ts
2
2
  const createPruneContext = () => ({
3
3
  dictionaryKeyToFieldUsageMap: /* @__PURE__ */ new Map(),
4
4
  dictionariesWithEdgeCases: /* @__PURE__ */ new Set(),
@@ -71,6 +71,5 @@ const recordFieldUsage = (pruneContext, dictionaryKey, fieldUsage) => {
71
71
  pruneContext.dictionaryKeyToFieldUsageMap.set(dictionaryKey, new Set(fieldUsage));
72
72
  };
73
73
 
74
- //#endregion
75
74
  export { createPruneContext, preserveNestedDictionaryFields, recordFieldUsage };
76
75
  //# sourceMappingURL=pruneContext.mjs.map
@@ -1,4 +1,4 @@
1
- //#region src/staticAstReaders.ts
1
+ // src/staticAstReaders.ts
2
2
  /**
3
3
  * Static-value readers shared by every pass that has to decide, at build time,
4
4
  * which dictionary a call site reads.
@@ -217,6 +217,5 @@ const isTestOnlyUse = (babelTypes, path) => {
217
217
  return false;
218
218
  };
219
219
 
220
- //#endregion
221
220
  export { ABSENT_VALUE, findObjectProperty, firstPathSegment, isTestOnlyUse, propertyKeyMatches, readJsxAttributeString, readObjectProperty, readObjectPropertyNode, readStaticFirstSegment, readStaticString, resolveContentRoot, skipTransparentWrappers, splitNamespace, unwrapAwait };
222
221
  //# sourceMappingURL=staticAstReaders.mjs.map
@@ -1,11 +1,11 @@
1
1
  import { INTLAYER_CALLER_NAMES } from "./nativeCallers.mjs";
2
- import { makeUsageAnalyzerBabelPlugin } from "./babel-plugin-intlayer-usage-analyzer.mjs";
3
2
  import { makeFieldRenameBabelPlugin } from "./babel-plugin-intlayer-field-rename.mjs";
4
- import { extractScriptBlocks, injectScriptBlocks } from "./extractScriptBlocks.mjs";
5
3
  import { intlayerOptimizeBabelPlugin } from "./babel-plugin-intlayer-optimize.mjs";
4
+ import { makeUsageAnalyzerBabelPlugin } from "./babel-plugin-intlayer-usage-analyzer.mjs";
5
+ import { extractScriptBlocks, injectScriptBlocks } from "./extractScriptBlocks.mjs";
6
6
  import { transformAsync } from "@babel/core";
7
7
 
8
- //#region src/transformers.ts
8
+ // src/transformers.ts
9
9
  /**
10
10
  * Babel parser options covering the superset of syntaxes used across all
11
11
  * supported frameworks (React / Vue / Svelte / Angular / …).
@@ -205,6 +205,5 @@ const optimizeSourceFile = async (code, sourceFilePath, options, fieldRenamePrun
205
205
  };
206
206
  };
207
207
 
208
- //#endregion
209
208
  export { BABEL_PARSER_OPTIONS, INTLAYER_USAGE_REGEX, SOURCE_FILE_REGEX, analyzeFieldUsageInFile, buildUsageCheckRegex, getUsageCheckRegex, optimizeSourceFile, renameFieldsInCode, renameFieldsInSourceFile };
210
209
  //# sourceMappingURL=transformers.mjs.map
@@ -1,7 +1,6 @@
1
1
  import { PruneContext } from "./pruneContext.js";
2
2
  import { NodePath } from "@babel/core";
3
3
  import * as BabelTypes from "@babel/types";
4
- //#region src/analyzeContentUsage.d.ts
5
4
  /**
6
5
  * Analyses how the result of a single `useIntlayer('key')` / `getIntlayer('key')`
7
6
  * call expression is consumed, then records the field usage into `pruneContext`.
@@ -19,5 +18,4 @@ import * as BabelTypes from "@babel/types";
19
18
  * uses (`!field`, `field && …`) expose no key names.
20
19
  */
21
20
  export declare const analyzeCallExpressionUsage: (babelTypes: typeof BabelTypes, pruneContext: PruneContext, callExpressionPath: NodePath<BabelTypes.CallExpression>, dictionaryKey: string, currentSourceFilePath: string, isSfcFile: boolean) => void;
22
- //#endregion
23
21
  //# sourceMappingURL=analyzeContentUsage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"analyzeContentUsage.d.ts","names":[],"sources":["../../src/analyzeContentUsage.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;qBA8Ba,6BAA0B,mBAClB,YAAU,cACf,cAAY,oBACN,SAAS,WAAW,iBAAe,uBAClC,+BACQ"}
1
+ {"version":3,"file":"analyzeContentUsage.d.ts","names":[],"sources":["../../src/analyzeContentUsage.ts"],"mappings":";;;;;;;;;;;;;;;;;;;qBA8Ba,6BAA0B,mBAClB,YAAU,cACf,cAAY,oBACN,SAAS,WAAW,iBAAe,uBAClC,+BACQ"}
@@ -1,9 +1,8 @@
1
1
  import { PackageName } from "./extractContent/utils/constants.js";
2
+ import { IntlayerConfig } from "@intlayer/types/config";
2
3
  import { PluginTarget } from "@babel/core";
3
4
  import { Locale } from "@intlayer/types/allLocales";
4
- import { IntlayerConfig } from "@intlayer/types/config";
5
5
  import { FilePathPattern } from "@intlayer/types/filePathPattern";
6
- //#region src/babel-plugin-intlayer-extract.d.ts
7
6
  export type ExtractResult = {
8
7
  dictionaryKey: string;
9
8
  filePath: string;
@@ -37,5 +36,4 @@ export type ExtractPluginOptions = {
37
36
  * tuple are the typed options read by the handlers.
38
37
  */
39
38
  export declare const intlayerExtractBabelPlugin: PluginTarget;
40
- //#endregion
41
39
  //# sourceMappingURL=babel-plugin-intlayer-extract.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"babel-plugin-intlayer-extract.d.ts","names":[],"sources":["../../src/babel-plugin-intlayer-extract.ts"],"mappings":";;;;;;YAeY;EACV;EACA;EACA,SAAS;EACT,QAAQ;;YAGE;EACV,cAAc;EACd;EACA;EAEA,iBAAiB;EACjB,eAAe;;;;;;EAMf,aAAa,QAAQ,yBAAyB;;;;EAI9C,SAAS;;;;;;;;;;;qBA6HE,4BAA4B"}
1
+ {"version":3,"file":"babel-plugin-intlayer-extract.d.ts","names":[],"sources":["../../src/babel-plugin-intlayer-extract.ts"],"mappings":";;;;;YAeY;EACV;EACA;EACA,SAAS;EACT,QAAQ;;YAGE;EACV,cAAc;EACd;EACA;EAEA,iBAAiB;EACjB,eAAe;;;;;;EAMf,aAAa,QAAQ,yBAAyB;;;;EAI9C,SAAS;;;;;;;;;;;qBA6HE,4BAA4B"}
@@ -2,7 +2,6 @@ import { NestedRenameEntry, NestedRenameMap, PruneContext } from "./pruneContext
2
2
  import "./babel-plugin-intlayer-usage-analyzer.js";
3
3
  import { NodePath, PluginObject } from "@babel/core";
4
4
  import * as BabelTypes from "@babel/types";
5
- //#region src/babel-plugin-intlayer-field-rename.d.ts
6
5
  /**
7
6
  * Converts a zero-based index to a short alphabetic identifier.
8
7
  * 0 → 'a', 1 → 'b', …, 25 → 'z', 26 → 'aa', 27 → 'ab', …
@@ -113,5 +112,4 @@ export declare const renameIntlayerFieldAccesses: (babelTypes: typeof BabelTypes
113
112
  export declare const makeFieldRenameBabelPlugin: (pruneContext: PruneContext) => ({ types: babelTypes }: {
114
113
  types: typeof BabelTypes;
115
114
  }) => PluginObject;
116
- //#endregion
117
115
  //# sourceMappingURL=babel-plugin-intlayer-field-rename.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"babel-plugin-intlayer-field-rename.d.ts","names":[],"sources":["../../src/babel-plugin-intlayer-field-rename.ts"],"mappings":";;;;;;;;;qBA8Ba,yBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA0CtB,kCAA+B,0BAEzC;;;;;;;;;;;;qBA2EU,6BAA0B,WAC1B,iBAAe,iCAEzB;;;;;;;YAqBS;;EAEV;;EAEA,UAAU;;;YAIA,2BAA2B,eAErC;;;;;;;;;;;;;;qBAgCW,0BAAuB,cACpB,iBACb,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;qBA8dL,8BAA2B,mBACnB,YAAU,aAChB,SAAS,WAAW,UAAQ,cAC3B;;;;;;;;;;qBAyIH,6BAA0B,cACtB,oBAAY,OAAA;EACD,cAAc;MAAe"}
1
+ {"version":3,"file":"babel-plugin-intlayer-field-rename.d.ts","names":[],"sources":["../../src/babel-plugin-intlayer-field-rename.ts"],"mappings":";;;;;;;;qBA8Ba,yBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA0CtB,kCAA+B,0BAEzC;;;;;;;;;;;;qBA2EU,6BAA0B,WAC1B,iBAAe,iCAEzB;;;;;;;YAqBS;;EAEV;;EAEA,UAAU;;;YAIA,2BAA2B,eAErC;;;;;;;;;;;;;;qBAgCW,0BAAuB,cACpB,iBACb,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;qBA8dL,8BAA2B,mBACnB,YAAU,aAChB,SAAS,WAAW,UAAQ,cAC3B;;;;;;;;;;qBAyIH,6BAA0B,cACtB,oBAAY,OAAA;EACD,cAAc;MAAe"}
@@ -1,6 +1,5 @@
1
1
  import { PluginObject } from "@babel/core";
2
2
  import * as BabelTypes from "@babel/types";
3
- //#region src/babel-plugin-intlayer-minify.d.ts
4
3
  /**
5
4
  * Pre-resolved options accepted by {@link intlayerMinifyBabelPlugin}.
6
5
  *
@@ -78,5 +77,4 @@ export type MinifyPluginOptions = {
78
77
  export declare const intlayerMinifyBabelPlugin: (babel: {
79
78
  types: typeof BabelTypes;
80
79
  }) => PluginObject;
81
- //#endregion
82
80
  //# sourceMappingURL=babel-plugin-intlayer-minify.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"babel-plugin-intlayer-minify.d.ts","names":[],"sources":["../../src/babel-plugin-intlayer-minify.ts"],"mappings":";;;;;;;;;;YAgBY;;;;;EAKV;;;;;;EAOA;;;;;EAMA;;;;EAKA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAkDW,4BAAyB;EACpC,cAAc;MACZ"}
1
+ {"version":3,"file":"babel-plugin-intlayer-minify.d.ts","names":[],"sources":["../../src/babel-plugin-intlayer-minify.ts"],"mappings":";;;;;;;;;YAgBY;;;;;EAKV;;;;;;EAOA;;;;;EAMA;;;;EAKA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAkDW,4BAAyB;EACpC,cAAc;MACZ"}
@@ -1,6 +1,5 @@
1
1
  import { PluginTarget } from "@babel/core";
2
2
  import { CallerDescriptor } from "@intlayer/config/callers";
3
- //#region src/babel-plugin-intlayer-optimize.d.ts
4
3
  /**
5
4
  * Options for the optimization Babel plugin
6
5
  */
@@ -101,5 +100,4 @@ export type OptimizePluginOptions = {
101
100
  * tuple are the typed options read by the handlers.
102
101
  */
103
102
  export declare const intlayerOptimizeBabelPlugin: PluginTarget;
104
- //#endregion
105
103
  //# sourceMappingURL=babel-plugin-intlayer-optimize.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"babel-plugin-intlayer-optimize.d.ts","names":[],"sources":["../../src/babel-plugin-intlayer-optimize.ts"],"mappings":";;;;;;YAmGY;;;;EAIV;;;;EAIA;;;;EAIA;;;;EAIA;;;;EAIA;;;;EAIA;;;;EAIA;;;;EAIA;;;;EAIA;;;;EAIA;;;;;;;;;;;;;;;EAeA;;;;EAIA;;;;EAIA,oBAAoB;;;;EAOpB;;;;EAIA;;;;;;;;;;;;;;EAcA,gBAAgB;;;;;;;;;;;qBAyyBL,6BAA6B"}
1
+ {"version":3,"file":"babel-plugin-intlayer-optimize.d.ts","names":[],"sources":["../../src/babel-plugin-intlayer-optimize.ts"],"mappings":";;;;;YAmGY;;;;EAIV;;;;EAIA;;;;EAIA;;;;EAIA;;;;EAIA;;;;EAIA;;;;EAIA;;;;EAIA;;;;EAIA;;;;EAIA;;;;;;;;;;;;;;;EAeA;;;;EAIA;;;;EAIA,oBAAoB;;;;EAOpB;;;;EAIA;;;;;;;;;;;;;;EAcA,gBAAgB;;;;;;;;;;;qBAyyBL,6BAA6B"}
@@ -1,10 +1,9 @@
1
1
  import { PruneContext } from "./pruneContext.js";
2
2
  import { CompatCallerConfig } from "./babel-plugin-intlayer-usage-analyzer.js";
3
+ import { IntlayerConfig } from "@intlayer/types/config";
3
4
  import { PluginObject } from "@babel/core";
4
5
  import * as BabelTypes from "@babel/types";
5
6
  import { NestedFieldReferences } from "@intlayer/core/dictionaryManipulator";
6
- import { IntlayerConfig } from "@intlayer/types/config";
7
- //#region src/babel-plugin-intlayer-purge.d.ts
8
7
  /**
9
8
  * Pre-resolved options accepted by {@link intlayerPurgeBabelPlugin}.
10
9
  *
@@ -172,5 +171,4 @@ export declare const runIntlayerPurgePipeline: (options: PurgePluginOptions) =>
172
171
  export declare const intlayerPurgeBabelPlugin: (_babel: {
173
172
  types: typeof BabelTypes;
174
173
  }) => PluginObject;
175
- //#endregion
176
174
  //# sourceMappingURL=babel-plugin-intlayer-purge.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"babel-plugin-intlayer-purge.d.ts","names":[],"sources":["../../src/babel-plugin-intlayer-purge.ts"],"mappings":";;;;;;;;;;;;;;YA2CY;;;;;;EAMV;;;;;EAMA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;EAMA;;;;;EAMA;;;;;;EAOA;;;;;;;;EASA,6BAA6B,YAAY;;;;;;EAOzC,8BAA8B;;;;;;;;;;;;EAgB9B,gBAAgB;;;;;;;EAQhB,YAAY,KAAK;;;;;;;;;;qBAwBN,wBAAqB,oBAAsB;;;;;;;;;;;;;;;;;;qBA4rB3C,2BAAwB,SAC1B,uBACR;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAmIU,2BAAwB;EACnC,cAAc;MACZ"}
1
+ {"version":3,"file":"babel-plugin-intlayer-purge.d.ts","names":[],"sources":["../../src/babel-plugin-intlayer-purge.ts"],"mappings":";;;;;;;;;;;;;YA2CY;;;;;;EAMV;;;;;EAMA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;EAMA;;;;;EAMA;;;;;;EAOA;;;;;;;;EASA,6BAA6B,YAAY;;;;;;EAOzC,8BAA8B;;;;;;;;;;;;EAgB9B,gBAAgB;;;;;;;EAQhB,YAAY,KAAK;;;;;;;;;;qBAwBN,wBAAqB,oBAAsB;;;;;;;;;;;;;;;;;;qBA4rB3C,2BAAwB,SAC1B,uBACR;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAmIU,2BAAwB;EACnC,cAAc;MACZ"}
@@ -2,9 +2,8 @@ import { DictionaryFieldUsage, NestedRenameEntry, NestedRenameMap, OpaqueFieldOc
2
2
  import { CHAINABLE_RUNTIME_METHOD_NAMES, INTLAYER_CALLER_NAMES, IntlayerCallerName, NATIVE_CALLER_NAME_SET } from "./nativeCallers.js";
3
3
  import { unwrapAwait } from "./staticAstReaders.js";
4
4
  import { PluginObject } from "@babel/core";
5
- import * as BabelTypes from "@babel/types";
6
5
  import { CallerDescriptor, CallerDescriptor as CallerDescriptor$1, CallerResultShape, CallerValueSource } from "@intlayer/config/callers";
7
- //#region src/babel-plugin-intlayer-usage-analyzer.d.ts
6
+ import * as BabelTypes from "@babel/types";
8
7
  /**
9
8
  * Configuration entry for a single compat namespace caller.
10
9
  *
@@ -41,6 +40,5 @@ export declare const makeUsageAnalyzerBabelPlugin: (pruneContext: PruneContext,
41
40
  }) => ({ types: babelTypes }: {
42
41
  types: typeof BabelTypes;
43
42
  }) => PluginObject;
44
- //#endregion
45
43
  export { CHAINABLE_RUNTIME_METHOD_NAMES, type CallerDescriptor, type CallerResultShape, type CallerValueSource, type DictionaryFieldUsage, INTLAYER_CALLER_NAMES, type IntlayerCallerName, NATIVE_CALLER_NAME_SET, type NestedRenameEntry, type NestedRenameMap, type OpaqueFieldOccurrence, type PruneContext, createPruneContext, preserveNestedDictionaryFields, unwrapAwait };
46
44
  //# sourceMappingURL=babel-plugin-intlayer-usage-analyzer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"babel-plugin-intlayer-usage-analyzer.d.ts","names":[],"sources":["../../src/babel-plugin-intlayer-usage-analyzer.ts"],"mappings":";;;;;;;;;;;;;YAuCY,qBAAqB;;;;;qBAMpB,wBAAwB;;;;;;;;;;;;;;;;;;;;qBAqBxB,+BAA4B,cAEvB,cAAY;EACd,yBAAyB;SAAoB,OAAA;EAEjC,cAAc;MAAe"}
1
+ {"version":3,"file":"babel-plugin-intlayer-usage-analyzer.d.ts","names":["CallerDescriptor"],"sources":["../../src/babel-plugin-intlayer-usage-analyzer.ts"],"mappings":";;;;;;;;;;;;YAuCY,qBAAqBA;;;;;qBAMpB,wBAAwBA;;;;;;;;;;;;;;;;;;;;qBAqBxB,+BAA4B,cAEvB,cAAY;EACd,yBAAyBA;SAAoB,OAAA;EAEjC,cAAc;MAAe"}
@@ -1,4 +1,3 @@
1
- //#region src/babelParser.d.ts
2
1
  /** A parser object accepted by `recast.parse`'s `parser` option. */
3
2
  export type RecastParser = {
4
3
  parse: (source: string) => unknown;
@@ -7,5 +6,4 @@ export type RecastParser = {
7
6
  export declare const typescriptParser: RecastParser;
8
7
  /** Drop-in replacement for `recast/parsers/babel-ts` (TS *and* JSX). */
9
8
  export declare const babelTsParser: RecastParser;
10
- //#endregion
11
9
  //# sourceMappingURL=babelParser.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"babelParser.d.ts","names":[],"sources":["../../src/babelParser.ts"],"mappings":";;YAsDY;EACV,QAAQ;;;qBAIG,kBAAkB;;qBAMlB,eAAe"}
1
+ {"version":3,"file":"babelParser.d.ts","names":[],"sources":["../../src/babelParser.ts"],"mappings":";YAsDY;EACV,QAAQ;;;qBAIG,kBAAkB;;qBAMlB,eAAe"}
@@ -1,7 +1,6 @@
1
1
  import { StaticOrAbsent } from "../staticAstReaders.js";
2
- import * as BabelTypes from "@babel/types";
3
2
  import { CallerDescriptor, CallerValueSource } from "@intlayer/config/callers";
4
- //#region src/compat/namespaceResolution.d.ts
3
+ import * as BabelTypes from "@babel/types";
5
4
  /**
6
5
  * Resolution of a compat caller's namespace from its
7
6
  * {@link CallerValueSource} list.
@@ -62,5 +61,4 @@ export type RewritableNamespaceMatch = {
62
61
  * registry.
63
62
  */
64
63
  export declare const resolveNamespaceForRewrite: (babelTypes: typeof BabelTypes, callArguments: BabelTypes.CallExpression['arguments'], descriptor: CallerDescriptor) => RewritableNamespaceMatch | undefined;
65
- //#endregion
66
64
  //# sourceMappingURL=namespaceResolution.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"namespaceResolution.d.ts","names":[],"sources":["../../../src/compat/namespaceResolution.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;qBAiCa;;;;;;;qBAoEA,8BAA2B,mBACnB,YAAU,eACd,WAAW,6BAA2B,SAC5C,wBACR;;;;;;qBAuBU,8BAA2B,mBACnB,YAAU,eACd,WAAW,6BAA2B,SAC5C;;;;;YAiBC;;EAEV;;EAEA;;;;;;EAMA,iBAAiB,WAAW;;EAE5B,gBAAgB,WAAW;;;;;;;;;;;;qBAahB,6BAA0B,mBAClB,YAAU,eACd,WAAW,6BAA2B,YACzC,qBACX"}
1
+ {"version":3,"file":"namespaceResolution.d.ts","names":[],"sources":["../../../src/compat/namespaceResolution.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;qBAiCa;;;;;;;qBAoEA,8BAA2B,mBACnB,YAAU,eACd,WAAW,6BAA2B,SAC5C,wBACR;;;;;;qBAuBU,8BAA2B,mBACnB,YAAU,eACd,WAAW,6BAA2B,SAC5C;;;;;YAiBC;;EAEV;;EAEA;;;;;;EAMA,iBAAiB,WAAW;;EAE5B,gBAAgB,WAAW;;;;;;;;;;;;qBAahB,6BAA0B,mBAClB,YAAU,eACd,WAAW,6BAA2B,YACzC,qBACX"}
@@ -1,7 +1,6 @@
1
1
  import { DictionaryImportRegistry, ImportMode } from "../dictionaryImports.js";
2
- import * as BabelTypes from "@babel/types";
3
2
  import { CallerDescriptor } from "@intlayer/config/callers";
4
- //#region src/compat/optimizePass.d.ts
3
+ import * as BabelTypes from "@babel/types";
5
4
  /**
6
5
  * Compat half of the optimize pass.
7
6
  *
@@ -99,5 +98,4 @@ export declare const createCompatOptimizePass: (babelTypes: typeof BabelTypes, c
99
98
  importMode: ImportMode | undefined;
100
99
  dictionaryModeMap?: Record<string, ImportMode | undefined>;
101
100
  }) => CompatOptimizePass | null;
102
- //#endregion
103
101
  //# sourceMappingURL=optimizePass.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"optimizePass.d.ts","names":[],"sources":["../../../src/compat/optimizePass.ts"],"mappings":";;;;;;;;;;;;;;;;;;;YAoCY;;;;;;EAMV,mBAAmB;;EAEnB,aACE,sBACA,sBACA;;EAGF,gBAAgB;;;;;;;EAOhB,yBAAyB,yBAAyB;;EAElD;;;;;;;EAOA;;;;;;;EAOA,uBACE,MACI,WAAW,iBACX,WAAW,2BACX,WAAW;;;;;;EAOjB,cAAc,MAAM;;;;;;;;;;;;EAYpB,eACE,oBAAoB,WAAW,kBAC/B,oBAAoB,eACpB,mBAAmB;;EAGrB,cAAc,UAAU,WAAW;;;;;EAKnC,iBAAiB,MAAM;;EAEvB,0BAA0B,YAAY,WAAW;;;;;;;;YASvC,cACR,WAAW,oBACX,WAAW;;;;;;;;;;qBAqJF,2BAAwB,mBAChB,YAAU,wBACL,oBAAkB,SACjC,0BAAwB;EAE/B,YAAY;EACZ,oBAAoB,eAAe;MAEpC"}
1
+ {"version":3,"file":"optimizePass.d.ts","names":[],"sources":["../../../src/compat/optimizePass.ts"],"mappings":";;;;;;;;;;;;;;;;;;YAoCY;;;;;;EAMV,mBAAmB;;EAEnB,aACE,sBACA,sBACA;;EAGF,gBAAgB;;;;;;;EAOhB,yBAAyB,yBAAyB;;EAElD;;;;;;;EAOA;;;;;;;EAOA,uBACE,MACI,WAAW,iBACX,WAAW,2BACX,WAAW;;;;;;EAOjB,cAAc,MAAM;;;;;;;;;;;;EAYpB,eACE,oBAAoB,WAAW,kBAC/B,oBAAoB,eACpB,mBAAmB;;EAGrB,cAAc,UAAU,WAAW;;;;;EAKnC,iBAAiB,MAAM;;EAEvB,0BAA0B,YAAY,WAAW;;;;;;;;YASvC,cACR,WAAW,oBACX,WAAW;;;;;;;;;;qBAqJF,2BAAwB,mBAChB,YAAU,wBACL,oBAAkB,SACjC,0BAAwB;EAE/B,YAAY;EACZ,oBAAoB,eAAe;MAEpC"}
@@ -1,8 +1,7 @@
1
1
  import { PruneContext } from "../pruneContext.js";
2
2
  import { NodePath } from "@babel/core";
3
- import * as BabelTypes from "@babel/types";
4
3
  import { CallerDescriptor } from "@intlayer/config/callers";
5
- //#region src/compat/usageAnalysis.d.ts
4
+ import * as BabelTypes from "@babel/types";
6
5
  /**
7
6
  * Analyses how the translation function produced by a compat namespace caller
8
7
  * (`useTranslation`, `useTranslations`, `getTranslations`, `getFixedT`,
@@ -71,5 +70,4 @@ export declare const createCompatUsageAnalyzer: (babelTypes: typeof BabelTypes,
71
70
  sourceFilePath: string;
72
71
  isSfcFile: boolean;
73
72
  }) => CompatUsageAnalyzer | null;
74
- //#endregion
75
73
  //# sourceMappingURL=usageAnalysis.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"usageAnalysis.d.ts","names":[],"sources":["../../../src/compat/usageAnalysis.ts"],"mappings":";;;;;;;;;;;;;;;;;qBAgCa,8BAA2B,mBACnB,YAAU,cACf,cAAY,eACX,WAAW,6BAA2B,cACvC,kBAAgB,oBAGP;;AAAA,+BAOF;;;;;;;AAAA,qBAAA,SAAS,WAAW,iBAKrB;;;;;AAAA;;;;;;;;;YAgRV;;;;;EAKV,aACE,sBACA,sBACA;;;;;;EAOF;;;;;EAKA,cACE,oBAAoB,SAAS,WAAW,iBACxC,yBACA;;EAGF,oBACE,uBAAuB,SAAS,WAAW;;;;;;;;;;;qBAalC,4BAAyB,mBACjB,YAAU,cACf,cAAY,wBACF,oBAAkB;EAC3B;EAAwB;MACtC"}
1
+ {"version":3,"file":"usageAnalysis.d.ts","names":[],"sources":["../../../src/compat/usageAnalysis.ts"],"mappings":";;;;;;;;;;;;;;;;qBAgCa,8BAA2B,mBACnB,YAAU,cACf,cAAY,eACX,WAAW,6BAA2B,cACvC,kBAAgB;;AAGP;;;;;;;AAOF,qBAAA,SAAS,WAAW;;;;;AAKrB;;;;;;;;;YAgRV;;;;;EAKV,aACE,sBACA,sBACA;;;;;;EAOF;;;;;EAKA,cACE,oBAAoB,SAAS,WAAW,iBACxC,yBACA;;EAGF,oBACE,uBAAuB,SAAS,WAAW;;;;;;;;;;;qBAalC,4BAAyB,mBACjB,YAAU,cACf,cAAY,wBACF,oBAAkB;EAC3B;EAAwB;MACtC"}