@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.
- package/dist/cjs/_virtual/_rolldown/runtime.cjs +1 -2
- package/dist/cjs/analyzeContentUsage.cjs +4 -5
- package/dist/cjs/babel-plugin-intlayer-extract.cjs +6 -7
- package/dist/cjs/babel-plugin-intlayer-field-rename.cjs +3 -4
- package/dist/cjs/babel-plugin-intlayer-minify.cjs +4 -5
- package/dist/cjs/babel-plugin-intlayer-optimize.cjs +5 -6
- package/dist/cjs/babel-plugin-intlayer-purge.cjs +10 -11
- package/dist/cjs/babel-plugin-intlayer-usage-analyzer.cjs +6 -7
- package/dist/cjs/babelParser.cjs +1 -2
- package/dist/cjs/compat/namespaceResolution.cjs +2 -3
- package/dist/cjs/compat/optimizePass.cjs +3 -4
- package/dist/cjs/compat/usageAnalysis.cjs +5 -6
- package/dist/cjs/dictionaryImports.cjs +1 -2
- package/dist/cjs/extractContent/babelProcessor.cjs +6 -7
- package/dist/cjs/extractContent/contentWriter.cjs +4 -5
- package/dist/cjs/extractContent/extractContent.cjs +12 -13
- package/dist/cjs/extractContent/index.cjs +8 -8
- package/dist/cjs/extractContent/processTsxFile.cjs +5 -6
- package/dist/cjs/extractContent/utils/constants.cjs +1 -2
- package/dist/cjs/extractContent/utils/detectPackageName.cjs +2 -3
- package/dist/cjs/extractContent/utils/extractDictionaryInfo.cjs +5 -6
- package/dist/cjs/extractContent/utils/extractDictionaryKey.cjs +1 -2
- package/dist/cjs/extractContent/utils/generateKey.cjs +1 -2
- package/dist/cjs/extractContent/utils/getComponentName.cjs +2 -3
- package/dist/cjs/extractContent/utils/getExistingIntlayerInfo.cjs +2 -3
- package/dist/cjs/extractContent/utils/getOrGenerateKey.cjs +2 -3
- package/dist/cjs/extractContent/utils/index.cjs +9 -9
- package/dist/cjs/extractContent/utils/resolveDictionaryKey.cjs +1 -2
- package/dist/cjs/extractScriptBlocks.cjs +1 -2
- package/dist/cjs/getExtractPluginOptions.cjs +6 -7
- package/dist/cjs/getOptimizePluginOptions.cjs +2 -3
- package/dist/cjs/getPurgePluginOptions.cjs +2 -3
- package/dist/cjs/index.cjs +22 -22
- package/dist/cjs/nativeCallers.cjs +1 -2
- package/dist/cjs/normalizedFilesList.cjs +1 -2
- package/dist/cjs/pruneContext.cjs +1 -2
- package/dist/cjs/staticAstReaders.cjs +1 -2
- package/dist/cjs/transformers.cjs +6 -7
- package/dist/esm/_virtual/_rolldown/runtime.mjs +1 -2
- package/dist/esm/analyzeContentUsage.mjs +2 -3
- package/dist/esm/babel-plugin-intlayer-extract.mjs +4 -5
- package/dist/esm/babel-plugin-intlayer-field-rename.mjs +2 -3
- package/dist/esm/babel-plugin-intlayer-minify.mjs +2 -3
- package/dist/esm/babel-plugin-intlayer-optimize.mjs +2 -3
- package/dist/esm/babel-plugin-intlayer-purge.mjs +4 -5
- package/dist/esm/babel-plugin-intlayer-usage-analyzer.mjs +4 -5
- package/dist/esm/babelParser.mjs +1 -2
- package/dist/esm/compat/namespaceResolution.mjs +1 -2
- package/dist/esm/compat/optimizePass.mjs +1 -2
- package/dist/esm/compat/usageAnalysis.mjs +3 -4
- package/dist/esm/dictionaryImports.mjs +1 -2
- package/dist/esm/extractContent/babelProcessor.mjs +2 -3
- package/dist/esm/extractContent/contentWriter.mjs +2 -3
- package/dist/esm/extractContent/extractContent.mjs +7 -8
- package/dist/esm/extractContent/index.mjs +3 -3
- package/dist/esm/extractContent/processTsxFile.mjs +3 -4
- package/dist/esm/extractContent/utils/constants.mjs +1 -2
- package/dist/esm/extractContent/utils/detectPackageName.mjs +1 -2
- package/dist/esm/extractContent/utils/extractDictionaryInfo.mjs +3 -4
- package/dist/esm/extractContent/utils/extractDictionaryKey.mjs +1 -2
- package/dist/esm/extractContent/utils/generateKey.mjs +1 -2
- package/dist/esm/extractContent/utils/getComponentName.mjs +1 -2
- package/dist/esm/extractContent/utils/getExistingIntlayerInfo.mjs +1 -2
- package/dist/esm/extractContent/utils/getOrGenerateKey.mjs +1 -2
- package/dist/esm/extractContent/utils/index.mjs +1 -1
- package/dist/esm/extractContent/utils/resolveDictionaryKey.mjs +1 -2
- package/dist/esm/extractScriptBlocks.mjs +1 -2
- package/dist/esm/getExtractPluginOptions.mjs +3 -4
- package/dist/esm/getOptimizePluginOptions.mjs +2 -3
- package/dist/esm/getPurgePluginOptions.mjs +2 -3
- package/dist/esm/index.mjs +15 -15
- package/dist/esm/nativeCallers.mjs +1 -2
- package/dist/esm/normalizedFilesList.mjs +1 -2
- package/dist/esm/pruneContext.mjs +1 -2
- package/dist/esm/staticAstReaders.mjs +1 -2
- package/dist/esm/transformers.mjs +3 -4
- package/dist/types/analyzeContentUsage.d.ts +0 -2
- package/dist/types/analyzeContentUsage.d.ts.map +1 -1
- package/dist/types/babel-plugin-intlayer-extract.d.ts +1 -3
- package/dist/types/babel-plugin-intlayer-extract.d.ts.map +1 -1
- package/dist/types/babel-plugin-intlayer-field-rename.d.ts +0 -2
- package/dist/types/babel-plugin-intlayer-field-rename.d.ts.map +1 -1
- package/dist/types/babel-plugin-intlayer-minify.d.ts +0 -2
- package/dist/types/babel-plugin-intlayer-minify.d.ts.map +1 -1
- package/dist/types/babel-plugin-intlayer-optimize.d.ts +0 -2
- package/dist/types/babel-plugin-intlayer-optimize.d.ts.map +1 -1
- package/dist/types/babel-plugin-intlayer-purge.d.ts +1 -3
- package/dist/types/babel-plugin-intlayer-purge.d.ts.map +1 -1
- package/dist/types/babel-plugin-intlayer-usage-analyzer.d.ts +1 -3
- package/dist/types/babel-plugin-intlayer-usage-analyzer.d.ts.map +1 -1
- package/dist/types/babelParser.d.ts +0 -2
- package/dist/types/babelParser.d.ts.map +1 -1
- package/dist/types/compat/namespaceResolution.d.ts +1 -3
- package/dist/types/compat/namespaceResolution.d.ts.map +1 -1
- package/dist/types/compat/optimizePass.d.ts +1 -3
- package/dist/types/compat/optimizePass.d.ts.map +1 -1
- package/dist/types/compat/usageAnalysis.d.ts +1 -3
- package/dist/types/compat/usageAnalysis.d.ts.map +1 -1
- package/dist/types/dictionaryImports.d.ts +0 -2
- package/dist/types/dictionaryImports.d.ts.map +1 -1
- package/dist/types/extractContent/babelProcessor.d.ts +1 -3
- package/dist/types/extractContent/babelProcessor.d.ts.map +1 -1
- package/dist/types/extractContent/contentWriter.d.ts +1 -2
- package/dist/types/extractContent/contentWriter.d.ts.map +1 -1
- package/dist/types/extractContent/extractContent.d.ts +1 -2
- package/dist/types/extractContent/extractContent.d.ts.map +1 -1
- package/dist/types/extractContent/index.d.ts +2 -2
- package/dist/types/extractContent/processTsxFile.d.ts +0 -2
- package/dist/types/extractContent/processTsxFile.d.ts.map +1 -1
- package/dist/types/extractContent/utils/constants.d.ts +0 -2
- package/dist/types/extractContent/utils/constants.d.ts.map +1 -1
- package/dist/types/extractContent/utils/detectPackageName.d.ts +0 -2
- package/dist/types/extractContent/utils/detectPackageName.d.ts.map +1 -1
- package/dist/types/extractContent/utils/extractDictionaryInfo.d.ts +1 -3
- package/dist/types/extractContent/utils/extractDictionaryInfo.d.ts.map +1 -1
- package/dist/types/extractContent/utils/extractDictionaryKey.d.ts +0 -2
- package/dist/types/extractContent/utils/extractDictionaryKey.d.ts.map +1 -1
- package/dist/types/extractContent/utils/generateKey.d.ts +0 -2
- package/dist/types/extractContent/utils/generateKey.d.ts.map +1 -1
- package/dist/types/extractContent/utils/getComponentName.d.ts +0 -2
- package/dist/types/extractContent/utils/getComponentName.d.ts.map +1 -1
- package/dist/types/extractContent/utils/getExistingIntlayerInfo.d.ts +0 -2
- package/dist/types/extractContent/utils/getExistingIntlayerInfo.d.ts.map +1 -1
- package/dist/types/extractContent/utils/getOrGenerateKey.d.ts +0 -2
- package/dist/types/extractContent/utils/getOrGenerateKey.d.ts.map +1 -1
- package/dist/types/extractContent/utils/resolveDictionaryKey.d.ts +0 -2
- package/dist/types/extractContent/utils/resolveDictionaryKey.d.ts.map +1 -1
- package/dist/types/extractScriptBlocks.d.ts +0 -2
- package/dist/types/extractScriptBlocks.d.ts.map +1 -1
- package/dist/types/getExtractPluginOptions.d.ts +0 -2
- package/dist/types/getExtractPluginOptions.d.ts.map +1 -1
- package/dist/types/getOptimizePluginOptions.d.ts +2 -3
- package/dist/types/getOptimizePluginOptions.d.ts.map +1 -1
- package/dist/types/getPurgePluginOptions.d.ts +2 -3
- package/dist/types/getPurgePluginOptions.d.ts.map +1 -1
- package/dist/types/index.d.ts +9 -9
- package/dist/types/nativeCallers.d.ts +0 -2
- package/dist/types/nativeCallers.d.ts.map +1 -1
- package/dist/types/normalizedFilesList.d.ts +0 -2
- package/dist/types/normalizedFilesList.d.ts.map +1 -1
- package/dist/types/pruneContext.d.ts +0 -2
- package/dist/types/pruneContext.d.ts.map +1 -1
- package/dist/types/staticAstReaders.d.ts +0 -2
- package/dist/types/staticAstReaders.d.ts.map +1 -1
- package/dist/types/transformers.d.ts +1 -3
- package/dist/types/transformers.d.ts.map +1 -1
- package/package.json +47 -47
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as BabelTypes from "@babel/types";
|
|
2
|
-
//#region src/dictionaryImports.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* How a dictionary reaches a call site.
|
|
5
4
|
*
|
|
@@ -42,5 +41,4 @@ export type DictionaryImportRegistry = {
|
|
|
42
41
|
};
|
|
43
42
|
/** Creates an empty registry for one source file. */
|
|
44
43
|
export declare const createDictionaryImportRegistry: (babelTypes: typeof BabelTypes) => DictionaryImportRegistry;
|
|
45
|
-
//#endregion
|
|
46
44
|
//# sourceMappingURL=dictionaryImports.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dictionaryImports.d.ts","names":[],"sources":["../../src/dictionaryImports.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"dictionaryImports.d.ts","names":[],"sources":["../../src/dictionaryImports.ts"],"mappings":";;;;;;;;;YAWY;;;;;;;;qBAgBC,sBAAmB,mBACX,YAAU,aAClB,MACL,eACL,WAAW;;;;;;;;;;;;;YAeF;;WAED,eAAe,YAAY,WAAW;;WAEtC,gBAAgB,YAAY,WAAW;;;;;EAKhD,WAAW,aAAa,MAAM,eAAe,WAAW;;;qBAI7C,iCAA8B,mBACtB,eAClB"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { ExistingIntlayerInfo } from "./utils/getExistingIntlayerInfo.js";
|
|
2
2
|
import "./utils/index.js";
|
|
3
|
-
import * as t from "@babel/types";
|
|
4
3
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
4
|
+
import * as t from "@babel/types";
|
|
5
5
|
import { NodePath } from "@babel/traverse";
|
|
6
|
-
//#region src/extractContent/babelProcessor.d.ts
|
|
7
6
|
export type BabelReplacement = {
|
|
8
7
|
path: NodePath;
|
|
9
8
|
key: string;
|
|
@@ -39,5 +38,4 @@ export declare const extractTsContent: (ast: t.File, fileCode: string, existingK
|
|
|
39
38
|
extractedContent: Record<string, string>;
|
|
40
39
|
replacements: BabelReplacement[];
|
|
41
40
|
};
|
|
42
|
-
//#endregion
|
|
43
41
|
//# sourceMappingURL=babelProcessor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"babelProcessor.d.ts","names":[],"sources":["../../../src/extractContent/babelProcessor.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"babelProcessor.d.ts","names":[],"sources":["../../../src/extractContent/babelProcessor.ts"],"mappings":";;;;;YAYY;EACV,MAAM;EACN;EACA;EAOA;EACA,oBAAoB,EAAE;EACtB;;;;;;qBA+IW,0BAAuB,MAC5B,SAAS,EAAE,aAAa,EAAE,cAAY,kBAC5B,cACF,aAAW,yBACA,MAAM,qBAAmB,kBAChC,eAAe,yBAAuB,cAC1C,oBAAkB,cAClB,IAAI,EAAE;;;;;qBAwIT,mCAAgC,KACtC,EAAE,MAAI,kBACK,cACF,aAAW,oBACP,eACH,gBAAc,kBACb,uBACM;EAEtB,kBAAkB,eAAe;EACjC,cAAc;EACd,wBAAwB,IAAI;EAC5B,iBAAiB,IAAI,EAAE;EACvB,gBAAgB;EAChB,SAAS,IAAI,EAAE;;EAEf,oBAAoB,IAAI,EAAE,MAAM;EAChC;;;;;qBA8aW,mBAAgB,KACtB,EAAE,MAAI,kBACK,cACF,aAAW,eACV,gBAAc,kBACb,uBACM;EAEtB,kBAAkB;EAClB,cAAc"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
2
2
|
import { Dictionary, DictionaryKey } from "@intlayer/types/dictionary";
|
|
3
|
-
//#region src/extractContent/contentWriter.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Translation node structure used in dictionaries
|
|
6
5
|
*/
|
|
@@ -30,5 +29,5 @@ export declare const mergeWithExistingPerLocaleDictionary: (extractedContent: Re
|
|
|
30
29
|
* Helper to write extracted content to dictionary file(s).
|
|
31
30
|
*/
|
|
32
31
|
export declare const writeContentHelper: (extractedContent: Record<string, string>, dictionaryKey: DictionaryKey, filePath: string, configuration: IntlayerConfig) => Promise<string>;
|
|
33
|
-
|
|
32
|
+
export {};
|
|
34
33
|
//# sourceMappingURL=contentWriter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contentWriter.d.ts","names":[],"sources":["../../../src/extractContent/contentWriter.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"contentWriter.d.ts","names":[],"sources":["../../../src/extractContent/contentWriter.ts"],"mappings":";;;;;KAmCK;EACH;EACA,aAAa;;;;;KAMV,uBAAuB,eAAe;;;;;;;qBAa9B,0CAAuC,kBAChC,wBAAsB,oBACpB,mBAAiB,0BAEpC;;;;;;;qBAkDU,uCAAoC,kBAC7B,wBAAsB,oBACpB,sBACnB;;;;qBA8CU,qBAAkB,kBACX,wBAAsB,eACzB,eAAa,kBACZ,eACD,mBACd"}
|
|
@@ -2,7 +2,6 @@ import { PackageName } from "./utils/constants.js";
|
|
|
2
2
|
import "./utils/index.js";
|
|
3
3
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
4
4
|
import { GetConfigurationOptions } from "@intlayer/config/node";
|
|
5
|
-
//#region src/extractContent/extractContent.d.ts
|
|
6
5
|
export type ExtractIntlayerOptions = {
|
|
7
6
|
configOptions?: GetConfigurationOptions;
|
|
8
7
|
codeOnly?: boolean;
|
|
@@ -32,5 +31,5 @@ export declare const extractContent: (filePath: string, packageName: PackageName
|
|
|
32
31
|
* need persistence should supply an `onExtract` callback
|
|
33
32
|
*/
|
|
34
33
|
export declare const extractContentSync: (filePath: string, packageName: PackageName, options?: ExtractIntlayerOptions) => ExtractResult | undefined;
|
|
35
|
-
|
|
34
|
+
export {};
|
|
36
35
|
//# sourceMappingURL=extractContent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extractContent.d.ts","names":[],"sources":["../../../src/extractContent/extractContent.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"extractContent.d.ts","names":[],"sources":["../../../src/extractContent/extractContent.ts"],"mappings":";;;;YAsBY;EACV,gBAAgB;EAChB;EACA;EACA,uBAAuB;EACvB,gBAAgB;EAChB;EACA,aAAa;IACX;IACA,SAAS;IACT;eACW;;KAsRV;EACH;EACA,qBAAqB,eAAe;;qBAmCzB,iBAAc,kBACT,aACH,aAAW,UACd,2BACT,QAAQ;;;;;;;;;;;qBA8EE,qBAAkB,kBACb,aACH,aAAW,UACd,2BACT"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { mergeWithExistingMultilingualDictionary, mergeWithExistingPerLocaleDictionary, writeContentHelper } from "./contentWriter.js";
|
|
2
|
+
import { ExtractIntlayerOptions, extractContent, extractContentSync } from "./extractContent.js";
|
|
1
3
|
import { PackageName, SERVER_CAPABLE_PACKAGES, packageList } from "./utils/constants.js";
|
|
2
4
|
import { detectPackageName } from "./utils/detectPackageName.js";
|
|
3
5
|
import { ExtractDictionaryInfoOptions, ResolveContentFilePaths, extractDictionaryInfo, getOutput, resolveContentFilePaths } from "./utils/extractDictionaryInfo.js";
|
|
4
6
|
import { extractDictionaryKey, extractDictionaryKeyFromPath } from "./utils/extractDictionaryKey.js";
|
|
5
7
|
import { generateKey } from "./utils/generateKey.js";
|
|
6
8
|
import { getComponentName } from "./utils/getComponentName.js";
|
|
7
|
-
import { mergeWithExistingMultilingualDictionary, mergeWithExistingPerLocaleDictionary, writeContentHelper } from "./contentWriter.js";
|
|
8
|
-
import { ExtractIntlayerOptions, extractContent, extractContentSync } from "./extractContent.js";
|
|
9
9
|
export { ExtractDictionaryInfoOptions, ExtractIntlayerOptions, PackageName, ResolveContentFilePaths, SERVER_CAPABLE_PACKAGES, detectPackageName, extractContent, extractContentSync, extractDictionaryInfo, extractDictionaryKey, extractDictionaryKeyFromPath, generateKey, getComponentName, getOutput, mergeWithExistingMultilingualDictionary, mergeWithExistingPerLocaleDictionary, packageList, resolveContentFilePaths, writeContentHelper };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { PackageName } from "./utils/constants.js";
|
|
2
2
|
import "./utils/index.js";
|
|
3
3
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
4
|
-
//#region src/extractContent/processTsxFile.d.ts
|
|
5
4
|
export type TextEdit = {
|
|
6
5
|
start: number;
|
|
7
6
|
end: number;
|
|
@@ -14,5 +13,4 @@ export declare const processTsxFile: (filePath: string, componentKey: string, pa
|
|
|
14
13
|
extractedContent: Record<string, Record<string, string>>;
|
|
15
14
|
modifiedCode: string;
|
|
16
15
|
} | null;
|
|
17
|
-
//#endregion
|
|
18
16
|
//# sourceMappingURL=processTsxFile.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"processTsxFile.d.ts","names":[],"sources":["../../../src/extractContent/processTsxFile.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"processTsxFile.d.ts","names":[],"sources":["../../../src/extractContent/processTsxFile.ts"],"mappings":";;;YAcY;EACV;EACA;EACA;;;;;qBA4BW,iBAAc,kBACT,sBACI,aACP,aAAW,eACT,gBAAc,gBAChB,uBACS,yBAAuB;EAG7C,kBAAkB,eAAe;EACjC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/extractContent/utils/constants.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* The list of supported Intlayer integration packages.
|
|
4
3
|
* This is the single source of truth for package name validation.
|
|
@@ -9,5 +8,4 @@ export declare const packageList: readonly ['next-intlayer', 'react-intlayer', '
|
|
|
9
8
|
/** Packages that support a `/server` sub-path for React Server Components. */
|
|
10
9
|
export declare const SERVER_CAPABLE_PACKAGES: ReadonlySet<string>;
|
|
11
10
|
export type PackageName = (typeof packageList)[number];
|
|
12
|
-
//#endregion
|
|
13
11
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","names":[],"sources":["../../../../src/extractContent/utils/constants.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"constants.d.ts","names":[],"sources":["../../../../src/extractContent/utils/constants.ts"],"mappings":";;;;;;qBAMa;;qBAiBA,yBAAyB;YAI1B,sBAAsB"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { PackageName } from "./constants.js";
|
|
2
|
-
//#region src/extractContent/utils/detectPackageName.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Detects which intlayer package is used in the project by reading package.json.
|
|
5
4
|
*/
|
|
6
5
|
export declare const detectPackageName: (searchDir: string) => PackageName;
|
|
7
|
-
//#endregion
|
|
8
6
|
//# sourceMappingURL=detectPackageName.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"detectPackageName.d.ts","names":[],"sources":["../../../../src/extractContent/utils/detectPackageName.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"detectPackageName.d.ts","names":[],"sources":["../../../../src/extractContent/utils/detectPackageName.ts"],"mappings":";;;;qBAOa,oBAAiB,sBAAwB"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { Locale } from "@intlayer/types/allLocales";
|
|
2
1
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
2
|
+
import { Locale } from "@intlayer/types/allLocales";
|
|
3
3
|
import { FilePathPatternFunction } from "@intlayer/types/filePathPattern";
|
|
4
4
|
import { Format } from "@intlayer/engine/utils";
|
|
5
|
-
//#region src/extractContent/utils/extractDictionaryInfo.d.ts
|
|
6
5
|
export declare const getOutput: (configuration: IntlayerConfig, locale?: Locale) => FilePathPatternFunction | false;
|
|
7
6
|
export type ResolveContentFilePaths = {
|
|
8
7
|
absolutePath: string;
|
|
@@ -23,5 +22,4 @@ export type ExtractDictionaryInfoOptions = {
|
|
|
23
22
|
export declare const extractDictionaryInfo: (filePath: string, fileText: string, configuration: IntlayerConfig, format?: Format) => Promise<{
|
|
24
23
|
dictionaryKey: string;
|
|
25
24
|
} & ResolveContentFilePaths>;
|
|
26
|
-
//#endregion
|
|
27
25
|
//# sourceMappingURL=extractDictionaryInfo.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extractDictionaryInfo.d.ts","names":[],"sources":["../../../../src/extractContent/utils/extractDictionaryInfo.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"extractDictionaryInfo.d.ts","names":[],"sources":["../../../../src/extractContent/utils/extractDictionaryInfo.ts"],"mappings":";;;;qBAqBa,YAAS,eACL,gBAAc,SACpB,WACR;YA0CS;EACV;EACA;EACA;;;;;;qBAOW,0BAAuB,kBAClB,sBACI,eACL,gBAAc,SACpB,QAAM,SACN,WACR,QAAQ;YA8HC;EACV,gBAAgB;;;;;qBAML,wBAAqB,kBAChB,kBACA,eACD,gBAAc,SACpB,WACR;EAEC;IACE"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/extractContent/utils/extractDictionaryKey.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Extracts a dictionary key from a file path.
|
|
4
3
|
*
|
|
@@ -6,5 +5,4 @@
|
|
|
6
5
|
*/
|
|
7
6
|
export declare const extractDictionaryKeyFromPath: (filePath: string, prefix?: string) => string;
|
|
8
7
|
export declare const extractDictionaryKey: (filePath: string, fileText: string, prefix?: string) => string;
|
|
9
|
-
//#endregion
|
|
10
8
|
//# sourceMappingURL=extractDictionaryKey.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extractDictionaryKey.d.ts","names":[],"sources":["../../../../src/extractContent/utils/extractDictionaryKey.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"extractDictionaryKey.d.ts","names":[],"sources":["../../../../src/extractContent/utils/extractDictionaryKey.ts"],"mappings":";;;;;qBASa,+BAA4B,kBACvB;qBAkBL,uBAAoB,kBACf,kBACA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generateKey.d.ts","names":[],"sources":["../../../../src/extractContent/utils/generateKey.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"generateKey.d.ts","names":[],"sources":["../../../../src/extractContent/utils/generateKey.ts"],"mappings":"A,qBAAa,cAAW,cACV,cACE"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { NodePath } from "@babel/traverse";
|
|
2
|
-
//#region src/extractContent/utils/getComponentName.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Resolves the name of the component from various function declaration types.
|
|
5
4
|
*/
|
|
6
5
|
export declare const getComponentName: (path: NodePath) => string | undefined;
|
|
7
|
-
//#endregion
|
|
8
6
|
//# sourceMappingURL=getComponentName.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getComponentName.d.ts","names":[],"sources":["../../../../src/extractContent/utils/getComponentName.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"getComponentName.d.ts","names":[],"sources":["../../../../src/extractContent/utils/getComponentName.ts"],"mappings":";;;;qBAMa,mBAAgB,MAAU"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as t from "@babel/types";
|
|
2
2
|
import { NodePath } from "@babel/traverse";
|
|
3
|
-
//#region src/extractContent/utils/getExistingIntlayerInfo.d.ts
|
|
4
3
|
export type ExistingIntlayerInfo = {
|
|
5
4
|
key: string;
|
|
6
5
|
hook: 'useIntlayer' | 'getIntlayer';
|
|
@@ -17,5 +16,4 @@ export type ExistingIntlayerInfo = {
|
|
|
17
16
|
* Searches for an existing useIntlayer or getIntlayer call in the function body.
|
|
18
17
|
*/
|
|
19
18
|
export declare const getExistingIntlayerInfo: (path: NodePath) => ExistingIntlayerInfo | undefined;
|
|
20
|
-
//#endregion
|
|
21
19
|
//# sourceMappingURL=getExistingIntlayerInfo.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getExistingIntlayerInfo.d.ts","names":[],"sources":["../../../../src/extractContent/utils/getExistingIntlayerInfo.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"getExistingIntlayerInfo.d.ts","names":[],"sources":["../../../../src/extractContent/utils/getExistingIntlayerInfo.ts"],"mappings":";;YAGY;EACV;EACA;;EAEA;;EAEA;;EAEA;;EAEA,oBAAoB,EAAE;;;;;qBAMX,0BAAuB,MAC5B,aACL"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
//#region src/extractContent/utils/getOrGenerateKey.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Gets an existing key for a given text or generates a new one.
|
|
4
3
|
*/
|
|
5
4
|
export declare const getOrGenerateKey: (text: string, componentKey: string, existingKeys: Set<string>, extractedContent: Record<string, Record<string, string>>) => string;
|
|
6
|
-
//#endregion
|
|
7
5
|
//# sourceMappingURL=getOrGenerateKey.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getOrGenerateKey.d.ts","names":[],"sources":["../../../../src/extractContent/utils/getOrGenerateKey.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"getOrGenerateKey.d.ts","names":[],"sources":["../../../../src/extractContent/utils/getOrGenerateKey.ts"],"mappings":";;;qBAKa,mBAAgB,cACf,sBACQ,cACN,aAAW,kBACP,eAAe"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
2
|
-
//#region src/extractContent/utils/resolveDictionaryKey.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Resolves a unique dictionary key, checking for existing dictionaries and files.
|
|
5
4
|
* Note: this chokidar-specific variant fetches unmergedDictionaries internally
|
|
6
5
|
* from the configuration (unlike the `@intlayer/babel` version which takes it as a parameter).
|
|
7
6
|
*/
|
|
8
7
|
export declare const resolveDictionaryKey: (initialKey: string, filePath: string, configuration: IntlayerConfig, unmergedDictionaries?: Record<string, unknown>, usedKeys?: Set<string>) => string;
|
|
9
|
-
//#endregion
|
|
10
8
|
//# sourceMappingURL=resolveDictionaryKey.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolveDictionaryKey.d.ts","names":[],"sources":["../../../../src/extractContent/utils/resolveDictionaryKey.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"resolveDictionaryKey.d.ts","names":[],"sources":["../../../../src/extractContent/utils/resolveDictionaryKey.ts"],"mappings":";;;;;;qBAYa,uBAAoB,oBACb,kBACF,eACD,gBAAc,uBACN,yBAAuB,WACpC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/extractScriptBlocks.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* A script block extracted from an SFC (Vue or Svelte) source file.
|
|
4
3
|
*
|
|
@@ -42,5 +41,4 @@ export declare const injectScriptBlocks: (originalCode: string, modifications: R
|
|
|
42
41
|
block: ScriptBlock;
|
|
43
42
|
modifiedContent: string;
|
|
44
43
|
}>) => string;
|
|
45
|
-
//#endregion
|
|
46
44
|
//# sourceMappingURL=extractScriptBlocks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extractScriptBlocks.d.ts","names":[],"sources":["../../src/extractScriptBlocks.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"extractScriptBlocks.d.ts","names":[],"sources":["../../src/extractScriptBlocks.ts"],"mappings":";;;;;;;;;YAWY;EACV;EACA;EACA;;;;;;;;;;;;;;;;qBA8FW,sBAAmB,kBACd,iBAEf;;;;;;;;;;;qBA+BU,qBAAkB,sBACT,eACL;EACb,OAAO;EACP"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ExtractPluginOptions } from "./babel-plugin-intlayer-extract.js";
|
|
2
2
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
3
|
-
//#region src/getExtractPluginOptions.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Mode of the compiler
|
|
6
5
|
* - 'dev': Development mode with HMR support
|
|
@@ -13,5 +12,4 @@ export type CompilerMode = 'dev' | 'build';
|
|
|
13
12
|
* to write dictionaries to the filesystem.
|
|
14
13
|
*/
|
|
15
14
|
export declare const getExtractPluginOptions: (configuration?: IntlayerConfig, isDev?: CompilerMode | string | undefined) => ExtractPluginOptions;
|
|
16
|
-
//#endregion
|
|
17
15
|
//# sourceMappingURL=getExtractPluginOptions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getExtractPluginOptions.d.ts","names":[],"sources":["../../src/getExtractPluginOptions.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"getExtractPluginOptions.d.ts","names":[],"sources":["../../src/getExtractPluginOptions.ts"],"mappings":";;;;;;;YAcY;;;;;;qBAOC,0BAAuB,gBACnB,gBAAc,QACtB,sCACN"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { OptimizePluginOptions } from "./babel-plugin-intlayer-optimize.js";
|
|
2
|
-
import { Dictionary } from "@intlayer/types/dictionary";
|
|
3
2
|
import { GetConfigurationOptions } from "@intlayer/config/node";
|
|
4
|
-
|
|
3
|
+
import { Dictionary } from "@intlayer/types/dictionary";
|
|
5
4
|
type GetOptimizePluginOptionsParams = {
|
|
6
5
|
/**
|
|
7
6
|
* Configuration options for loading intlayer config
|
|
@@ -28,5 +27,5 @@ type GetOptimizePluginOptionsParams = {
|
|
|
28
27
|
* needed for dictionary optimization and import rewriting.
|
|
29
28
|
*/
|
|
30
29
|
export declare const getOptimizePluginOptions: (params?: GetOptimizePluginOptionsParams) => OptimizePluginOptions;
|
|
31
|
-
|
|
30
|
+
export {};
|
|
32
31
|
//# sourceMappingURL=getOptimizePluginOptions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getOptimizePluginOptions.d.ts","names":[],"sources":["../../src/getOptimizePluginOptions.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"getOptimizePluginOptions.d.ts","names":[],"sources":["../../src/getOptimizePluginOptions.ts"],"mappings":";;;KAWK;;;;EAIH,gBAAgB;;;;EAIhB,eAAe;;;;;;EAMf;;;;EAIA,YAAY,QAAQ;;;;;;;qBAyBT,2BAAwB,SAC1B,mCACR"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { MinifyPluginOptions } from "./babel-plugin-intlayer-minify.js";
|
|
2
2
|
import { PurgePluginOptions } from "./babel-plugin-intlayer-purge.js";
|
|
3
|
-
import { Dictionary } from "@intlayer/types/dictionary";
|
|
4
3
|
import { GetConfigurationOptions } from "@intlayer/config/node";
|
|
5
|
-
|
|
4
|
+
import { Dictionary } from "@intlayer/types/dictionary";
|
|
6
5
|
type GetPurgePluginOptionsParams = {
|
|
7
6
|
/**
|
|
8
7
|
* Options forwarded to the intlayer configuration loader.
|
|
@@ -77,5 +76,5 @@ type GetMinifyPluginOptionsParams = {
|
|
|
77
76
|
* ```
|
|
78
77
|
*/
|
|
79
78
|
export declare const getMinifyPluginOptions: (params?: GetMinifyPluginOptionsParams) => MinifyPluginOptions;
|
|
80
|
-
|
|
79
|
+
export {};
|
|
81
80
|
//# sourceMappingURL=getPurgePluginOptions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getPurgePluginOptions.d.ts","names":[],"sources":["../../src/getPurgePluginOptions.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"getPurgePluginOptions.d.ts","names":[],"sources":["../../src/getPurgePluginOptions.ts"],"mappings":";;;;KAmCK;;;;;;EAMH,gBAAgB;;;;;;EAOhB,eAAe;;;;EAKf,YAAY,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;qBA0BT,wBAAqB,SACvB,gCACR;KA8CE;;;;EAIH,gBAAgB;;;;EAKhB,YAAY,QAAQ;;;;;;;;;;;;;;;;;;;;;;;qBAwBT,yBAAsB,SACxB,iCACR"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { DictionaryFieldUsage, NestedRenameEntry, NestedRenameMap, OpaqueFieldOccurrence, PruneContext, createPruneContext, preserveNestedDictionaryFields } from "./pruneContext.js";
|
|
2
1
|
import { PackageName, SERVER_CAPABLE_PACKAGES, packageList } from "./extractContent/utils/constants.js";
|
|
3
2
|
import { ExtractPluginOptions, ExtractResult, intlayerExtractBabelPlugin } from "./babel-plugin-intlayer-extract.js";
|
|
4
|
-
import { CHAINABLE_RUNTIME_METHOD_NAMES, INTLAYER_CALLER_NAMES, IntlayerCallerName, NATIVE_CALLER_NAME_SET } from "./nativeCallers.js";
|
|
5
|
-
import { unwrapAwait } from "./staticAstReaders.js";
|
|
6
|
-
import { CallerDescriptor, CallerResultShape, CallerValueSource, CompatCallerConfig, DEFAULT_COMPAT_CALLERS, makeUsageAnalyzerBabelPlugin } from "./babel-plugin-intlayer-usage-analyzer.js";
|
|
7
3
|
import { SerializedFieldRenameEntry, SerializedFieldRenameMap, buildNestedRenameMapFromContent, generateShortFieldName, getNestedRenameEntryAtPath, makeFieldRenameBabelPlugin, renameIntlayerFieldAccesses, serializeFieldRenameMap } from "./babel-plugin-intlayer-field-rename.js";
|
|
8
4
|
import { MinifyPluginOptions, intlayerMinifyBabelPlugin } from "./babel-plugin-intlayer-minify.js";
|
|
5
|
+
import { DictionaryFieldUsage, NestedRenameEntry, NestedRenameMap, OpaqueFieldOccurrence, PruneContext, createPruneContext, preserveNestedDictionaryFields } from "./pruneContext.js";
|
|
6
|
+
import { CHAINABLE_RUNTIME_METHOD_NAMES, INTLAYER_CALLER_NAMES, IntlayerCallerName, NATIVE_CALLER_NAME_SET } from "./nativeCallers.js";
|
|
7
|
+
import { unwrapAwait } from "./staticAstReaders.js";
|
|
9
8
|
import { OptimizePluginOptions, intlayerOptimizeBabelPlugin } from "./babel-plugin-intlayer-optimize.js";
|
|
10
9
|
import { PurgePluginOptions, getSharedPruneContext, intlayerPurgeBabelPlugin, runIntlayerPurgePipeline } from "./babel-plugin-intlayer-purge.js";
|
|
10
|
+
import { CallerDescriptor, CallerResultShape, CallerValueSource, CompatCallerConfig, DEFAULT_COMPAT_CALLERS, makeUsageAnalyzerBabelPlugin } from "./babel-plugin-intlayer-usage-analyzer.js";
|
|
11
|
+
import "./extractContent/index.js";
|
|
12
|
+
import { ScriptBlock, extractScriptBlocks, injectScriptBlocks } from "./extractScriptBlocks.js";
|
|
13
|
+
import { CompilerMode, getExtractPluginOptions } from "./getExtractPluginOptions.js";
|
|
14
|
+
import { getOptimizePluginOptions } from "./getOptimizePluginOptions.js";
|
|
15
|
+
import { mergeWithExistingMultilingualDictionary, mergeWithExistingPerLocaleDictionary, writeContentHelper } from "./extractContent/contentWriter.js";
|
|
11
16
|
import { detectPackageName } from "./extractContent/utils/detectPackageName.js";
|
|
12
17
|
import { ExtractDictionaryInfoOptions, ResolveContentFilePaths, extractDictionaryInfo, getOutput, resolveContentFilePaths } from "./extractContent/utils/extractDictionaryInfo.js";
|
|
13
18
|
import { extractDictionaryKey, extractDictionaryKeyFromPath } from "./extractContent/utils/extractDictionaryKey.js";
|
|
14
19
|
import { generateKey } from "./extractContent/utils/generateKey.js";
|
|
15
20
|
import { getComponentName } from "./extractContent/utils/getComponentName.js";
|
|
16
|
-
import { mergeWithExistingMultilingualDictionary, mergeWithExistingPerLocaleDictionary, writeContentHelper } from "./extractContent/contentWriter.js";
|
|
17
21
|
import { ExtractIntlayerOptions, extractContent, extractContentSync } from "./extractContent/extractContent.js";
|
|
18
|
-
import "./extractContent/index.js";
|
|
19
|
-
import { ScriptBlock, extractScriptBlocks, injectScriptBlocks } from "./extractScriptBlocks.js";
|
|
20
|
-
import { CompilerMode, getExtractPluginOptions } from "./getExtractPluginOptions.js";
|
|
21
|
-
import { getOptimizePluginOptions } from "./getOptimizePluginOptions.js";
|
|
22
22
|
import { getMinifyPluginOptions, getPurgePluginOptions } from "./getPurgePluginOptions.js";
|
|
23
23
|
import { BABEL_PARSER_OPTIONS, INTLAYER_USAGE_REGEX, SOURCE_FILE_REGEX, analyzeFieldUsageInFile, buildUsageCheckRegex, getUsageCheckRegex, optimizeSourceFile, renameFieldsInCode, renameFieldsInSourceFile } from "./transformers.js";
|
|
24
24
|
export { BABEL_PARSER_OPTIONS, CHAINABLE_RUNTIME_METHOD_NAMES, type CallerDescriptor, type CallerResultShape, type CallerValueSource, CompatCallerConfig, CompilerMode, DEFAULT_COMPAT_CALLERS, type DictionaryFieldUsage, ExtractDictionaryInfoOptions, ExtractIntlayerOptions, ExtractPluginOptions, ExtractResult, INTLAYER_CALLER_NAMES, INTLAYER_USAGE_REGEX, type IntlayerCallerName, MinifyPluginOptions, NATIVE_CALLER_NAME_SET, type NestedRenameEntry, type NestedRenameMap, type OpaqueFieldOccurrence, OptimizePluginOptions, PackageName, type PruneContext, PurgePluginOptions, ResolveContentFilePaths, SERVER_CAPABLE_PACKAGES, SOURCE_FILE_REGEX, ScriptBlock, SerializedFieldRenameEntry, SerializedFieldRenameMap, 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,3 @@
|
|
|
1
|
-
//#region src/nativeCallers.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* The intlayer getters the build pipeline recognises without any adapter, and
|
|
4
3
|
* the runtime methods their result carries.
|
|
@@ -29,5 +28,4 @@ export declare const NATIVE_CALLER_NAME_SET: ReadonlySet<string>;
|
|
|
29
28
|
* helpers return the content object for chaining.
|
|
30
29
|
*/
|
|
31
30
|
export declare const CHAINABLE_RUNTIME_METHOD_NAMES: Set<string>;
|
|
32
|
-
//#endregion
|
|
33
31
|
//# sourceMappingURL=nativeCallers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nativeCallers.d.ts","names":[],"sources":["../../src/nativeCallers.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"nativeCallers.d.ts","names":[],"sources":["../../src/nativeCallers.ts"],"mappings":";;;;;;;;qBASa;YAMD,6BAA6B;;;;;qBAM5B,wBAAwB;;;;;;;;;;;;;;;qBAkBxB,gCAA8B"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/normalizedFilesList.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Returns a set of POSIX-normalized paths for the given files list, computed
|
|
4
3
|
* once per unique array reference.
|
|
@@ -7,5 +6,4 @@
|
|
|
7
6
|
* @returns A set of the same paths normalized via `normalizePath`.
|
|
8
7
|
*/
|
|
9
8
|
export declare const getNormalizedFilesListSet: (filesList: readonly string[]) => Set<string>;
|
|
10
|
-
//#endregion
|
|
11
9
|
//# sourceMappingURL=normalizedFilesList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalizedFilesList.d.ts","names":[],"sources":["../../src/normalizedFilesList.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"normalizedFilesList.d.ts","names":[],"sources":["../../src/normalizedFilesList.ts"],"mappings":";;;;;;;qBAiBa,4BAAyB,iCAEnC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { NestedFieldReferences } from "@intlayer/core/dictionaryManipulator";
|
|
2
|
-
//#region src/pruneContext.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Dictionary field usage result for a single dictionary key.
|
|
5
4
|
*
|
|
@@ -148,5 +147,4 @@ export declare const preserveNestedDictionaryFields: (pruneContext: PruneContext
|
|
|
148
147
|
* Merges with any previously recorded usage for the same key.
|
|
149
148
|
*/
|
|
150
149
|
export declare const recordFieldUsage: (pruneContext: PruneContext, dictionaryKey: string, fieldUsage: DictionaryFieldUsage) => void;
|
|
151
|
-
//#endregion
|
|
152
150
|
//# sourceMappingURL=pruneContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pruneContext.d.ts","names":[],"sources":["../../src/pruneContext.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"pruneContext.d.ts","names":[],"sources":["../../src/pruneContext.ts"],"mappings":";;;;;;;;YASY,uBAAuB;;;;;;;;YASvB;EACV;EACA,UAAU;;;YAIA,kBAAkB,YAAY;;;;;;;YAQ9B;;;;;;EAMV;;EAGA;;;;;;;;;YAUU;;;;;;EAMV,8BAA8B,YAAY;;;;;EAM1C,2BAA2B;;;;;;EAO3B;;;;;;EAOA,qCAAqC;;;;;;EAOrC,+BAA+B,YAAY;;;;;;;;;;;;EAa3C,gCAAgC,YAE9B,YAAY;;;;;;;;;;;;;EAed,iCAAiC;;;;;;;;;;;EAYjC,0BAA0B;IAEtB;IAAsB;;;qBAIf,0BAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAyCzB,iCAA8B,cAC3B,cAAY,4BACE,YAAY;;;;;qBAyC7B,mBAAgB,cACb,cAAY,uBACL,YACT"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { NodePath } from "@babel/core";
|
|
2
2
|
import * as BabelTypes from "@babel/types";
|
|
3
|
-
//#region src/staticAstReaders.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Static-value readers shared by every pass that has to decide, at build time,
|
|
6
5
|
* which dictionary a call site reads.
|
|
@@ -121,5 +120,4 @@ export declare const resolveContentRoot: (babelTypes: typeof BabelTypes, path: N
|
|
|
121
120
|
* key names, so they neither block pruning nor make a field opaque.
|
|
122
121
|
*/
|
|
123
122
|
export declare const isTestOnlyUse: (babelTypes: typeof BabelTypes, path: NodePath<BabelTypes.Node>) => boolean;
|
|
124
|
-
//#endregion
|
|
125
123
|
//# sourceMappingURL=staticAstReaders.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"staticAstReaders.d.ts","names":[],"sources":["../../src/staticAstReaders.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"staticAstReaders.d.ts","names":[],"sources":["../../src/staticAstReaders.ts"],"mappings":";;;;;;;;;;;;;;;;qBAkBa,mBAAgB,mBACR,YAAU,MACvB,WAAW;;qBAeN,mBAAgB;;;;;;;;;qBAWhB,yBAAsB,mBACd,YAAU,MACvB,WAAW;;qBAkBN,qBAAkB,mBACV,YAAU,UACnB,WAAW,gBAAc;;;;;;qBAWxB,qBAAkB,mBACV,YAAU,kBACX,WAAW,kBAAgB,yBAE5C,WAAW;;;;;;qBAaD;;YAGD,eAAe,KAAK,WAAW;;;;;;qBAO9B,qBAAkB,mBACV,YAAU,kBACX,WAAW,kBAAgB,yBAE5C;;;;;;qBAeU,yBAAsB,mBACd,YAAU,kBACX,WAAW,kBAAgB,yBAE5C,eAAe,WAAW;;;;;;;qBAgBhB,yBAAsB,mBACd,YAAU,gBACb,WAAW,mBAAiB,0BAE3C,WAAW;;;;;;;;qBAgCD,iBAAc;EAEtB;EAAuB;;;;;;;;qBAef,cAAW,mBACH,YAAU,MACvB,SAAS,WAAW,UACzB,SAAS,WAAW;;;;;;qBA6BV,0BAAuB,mBACf,YAAU,MACvB,SAAS,WAAW,UACzB,SAAS,WAAW;;YAwCX;;;EAEN;EAAoB,UAAU,SAAS,WAAW;;;;EAGlD;EACA,UAAU,SAAS,WAAW;EAC9B,eAAe,WAAW,aAAa,WAAW;;;;EAGlD;;;;;;;;;;;;;qBAaO,qBAAkB,mBACV,YAAU,MACvB,SAAS,WAAW,UACzB;;;;;;qBAwEU,gBAAa,mBACL,YAAU,MACvB,SAAS,WAAW"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
+
import { OptimizePluginOptions } from "./babel-plugin-intlayer-optimize.js";
|
|
1
2
|
import { PruneContext } from "./pruneContext.js";
|
|
2
3
|
import { CompatCallerConfig } from "./babel-plugin-intlayer-usage-analyzer.js";
|
|
3
|
-
import { OptimizePluginOptions } from "./babel-plugin-intlayer-optimize.js";
|
|
4
4
|
import { ParserOptions } from "@babel/parser";
|
|
5
|
-
//#region src/transformers.d.ts
|
|
6
5
|
/**
|
|
7
6
|
* Babel parser options covering the superset of syntaxes used across all
|
|
8
7
|
* supported frameworks (React / Vue / Svelte / Angular / …).
|
|
@@ -93,5 +92,4 @@ export declare const optimizeSourceFile: (code: string, sourceFilePath: string,
|
|
|
93
92
|
code: string;
|
|
94
93
|
map: string | object | null | undefined;
|
|
95
94
|
} | null>;
|
|
96
|
-
//#endregion
|
|
97
95
|
//# sourceMappingURL=transformers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transformers.d.ts","names":[],"sources":["../../src/transformers.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"transformers.d.ts","names":[],"sources":["../../src/transformers.ts"],"mappings":";;;;;;;;qBA0Ba,sBAAsB;;;;;;;;;;;;;;;;;;;;qBAiCtB,uBAAoB,gCAAkC;;;;;;qBAWtD,sBAAoB;;;;;;qBAgBpB,qBAAkB,yBACJ,yBACxB;;;;;;qBAoBU,mBAAiB;;;;;;;;;;;;;qBA8DjB,0BAAuB,wBACZ,cACV,cACE,cAAY,gBACV,yBACf;;;;;;;qBAyBU,qBAAkB,cACjB,wBACU,cACR,iBACb;;;;;;;;qBAqBU,2BAAwB,wBACb,cACV,cACE,iBACb;;;;;;;;;;;;;;;;qBAiDU,qBAAkB,cACjB,wBACU,SACb,uBAAqB,0BACJ,iBACzB;EACD;EACA"}
|