@intlayer/babel 9.5.6 → 9.5.7
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/analyzeContentUsage.cjs +1 -1
- package/dist/cjs/babel-plugin-intlayer-extract.cjs +2 -2
- package/dist/cjs/babel-plugin-intlayer-field-rename.cjs +1 -1
- package/dist/cjs/babel-plugin-intlayer-optimize.cjs +1 -1
- package/dist/cjs/babel-plugin-intlayer-purge.cjs +4 -4
- package/dist/cjs/babel-plugin-intlayer-usage-analyzer.cjs +1 -1
- package/dist/cjs/compat/usageAnalysis.cjs +1 -1
- package/dist/cjs/extractContent/contentWriter.cjs +1 -1
- package/dist/cjs/extractContent/extractContent.cjs +2 -2
- package/dist/cjs/extractContent/processTsxFile.cjs +1 -1
- package/dist/cjs/extractContent/utils/detectPackageName.cjs +1 -1
- package/dist/cjs/extractContent/utils/extractDictionaryInfo.cjs +1 -1
- package/dist/cjs/extractContent/utils/extractDictionaryKey.cjs +1 -1
- package/dist/cjs/extractContent/utils/resolveDictionaryKey.cjs +1 -1
- package/dist/cjs/getExtractPluginOptions.cjs +1 -1
- package/dist/cjs/getOptimizePluginOptions.cjs +1 -1
- package/dist/cjs/getPurgePluginOptions.cjs +1 -1
- package/dist/cjs/index.cjs +11 -11
- package/dist/cjs/transformers.cjs +1 -1
- package/dist/esm/analyzeContentUsage.mjs +1 -1
- package/dist/esm/babel-plugin-intlayer-extract.mjs +2 -2
- package/dist/esm/babel-plugin-intlayer-field-rename.mjs +1 -1
- package/dist/esm/babel-plugin-intlayer-optimize.mjs +1 -1
- package/dist/esm/babel-plugin-intlayer-purge.mjs +4 -4
- package/dist/esm/babel-plugin-intlayer-usage-analyzer.mjs +1 -1
- package/dist/esm/compat/usageAnalysis.mjs +1 -1
- package/dist/esm/extractContent/contentWriter.mjs +1 -1
- package/dist/esm/extractContent/extractContent.mjs +2 -2
- package/dist/esm/extractContent/processTsxFile.mjs +1 -1
- package/dist/esm/extractContent/utils/detectPackageName.mjs +1 -1
- package/dist/esm/extractContent/utils/extractDictionaryInfo.mjs +1 -1
- package/dist/esm/extractContent/utils/extractDictionaryKey.mjs +1 -1
- package/dist/esm/extractContent/utils/resolveDictionaryKey.mjs +1 -1
- package/dist/esm/getExtractPluginOptions.mjs +1 -1
- package/dist/esm/getOptimizePluginOptions.mjs +1 -1
- package/dist/esm/getPurgePluginOptions.mjs +1 -1
- package/dist/esm/index.mjs +11 -11
- package/dist/esm/transformers.mjs +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_staticAstReaders = require('./staticAstReaders.cjs');
|
|
2
3
|
const require_nativeCallers = require('./nativeCallers.cjs');
|
|
3
4
|
const require_pruneContext = require('./pruneContext.cjs');
|
|
4
|
-
const require_staticAstReaders = require('./staticAstReaders.cjs');
|
|
5
5
|
|
|
6
6
|
//#region src/analyzeContentUsage.ts
|
|
7
7
|
/**
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
|
|
3
|
+
const require_normalizedFilesList = require('./normalizedFilesList.cjs');
|
|
3
4
|
const require_extractContent_utils_detectPackageName = require('./extractContent/utils/detectPackageName.cjs');
|
|
4
5
|
const require_extractContent_extractContent = require('./extractContent/extractContent.cjs');
|
|
5
|
-
const require_normalizedFilesList = require('./normalizedFilesList.cjs');
|
|
6
6
|
let node_path = require("node:path");
|
|
7
|
-
let _babel_parser = require("@babel/parser");
|
|
8
7
|
let _intlayer_config_colors = require("@intlayer/config/colors");
|
|
9
8
|
_intlayer_config_colors = require_runtime.__toESM(_intlayer_config_colors);
|
|
10
9
|
let _intlayer_config_logger = require("@intlayer/config/logger");
|
|
11
10
|
let _intlayer_config_utils = require("@intlayer/config/utils");
|
|
11
|
+
let _babel_parser = require("@babel/parser");
|
|
12
12
|
|
|
13
13
|
//#region src/babel-plugin-intlayer-extract.ts
|
|
14
14
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_nativeCallers = require('./nativeCallers.cjs');
|
|
3
2
|
const require_staticAstReaders = require('./staticAstReaders.cjs');
|
|
3
|
+
const require_nativeCallers = require('./nativeCallers.cjs');
|
|
4
4
|
|
|
5
5
|
//#region src/babel-plugin-intlayer-field-rename.ts
|
|
6
6
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_normalizedFilesList = require('./normalizedFilesList.cjs');
|
|
3
2
|
const require_staticAstReaders = require('./staticAstReaders.cjs');
|
|
4
3
|
const require_compat_optimizePass = require('./compat/optimizePass.cjs');
|
|
5
4
|
const require_dictionaryImports = require('./dictionaryImports.cjs');
|
|
5
|
+
const require_normalizedFilesList = require('./normalizedFilesList.cjs');
|
|
6
6
|
let node_path = require("node:path");
|
|
7
7
|
let _intlayer_config_utils = require("@intlayer/config/utils");
|
|
8
8
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
|
|
3
|
-
const require_extractScriptBlocks = require('./extractScriptBlocks.cjs');
|
|
4
3
|
const require_pruneContext = require('./pruneContext.cjs');
|
|
5
4
|
const require_babel_plugin_intlayer_usage_analyzer = require('./babel-plugin-intlayer-usage-analyzer.cjs');
|
|
6
5
|
const require_babel_plugin_intlayer_field_rename = require('./babel-plugin-intlayer-field-rename.cjs');
|
|
6
|
+
const require_extractScriptBlocks = require('./extractScriptBlocks.cjs');
|
|
7
7
|
const require_transformers = require('./transformers.cjs');
|
|
8
|
-
let node_path = require("node:path");
|
|
9
8
|
let _intlayer_engine_utils = require("@intlayer/engine/utils");
|
|
9
|
+
let node_fs = require("node:fs");
|
|
10
|
+
let node_path = require("node:path");
|
|
11
|
+
let _babel_core = require("@babel/core");
|
|
10
12
|
let _intlayer_config_colors = require("@intlayer/config/colors");
|
|
11
13
|
_intlayer_config_colors = require_runtime.__toESM(_intlayer_config_colors);
|
|
12
14
|
let _intlayer_config_logger = require("@intlayer/config/logger");
|
|
13
|
-
let node_fs = require("node:fs");
|
|
14
|
-
let _babel_core = require("@babel/core");
|
|
15
15
|
|
|
16
16
|
//#region src/babel-plugin-intlayer-purge.ts
|
|
17
17
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_staticAstReaders = require('./staticAstReaders.cjs');
|
|
2
3
|
const require_nativeCallers = require('./nativeCallers.cjs');
|
|
3
4
|
const require_pruneContext = require('./pruneContext.cjs');
|
|
4
|
-
const require_staticAstReaders = require('./staticAstReaders.cjs');
|
|
5
5
|
const require_analyzeContentUsage = require('./analyzeContentUsage.cjs');
|
|
6
6
|
const require_compat_usageAnalysis = require('./compat/usageAnalysis.cjs');
|
|
7
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_pruneContext = require('../pruneContext.cjs');
|
|
3
2
|
const require_staticAstReaders = require('../staticAstReaders.cjs');
|
|
3
|
+
const require_pruneContext = require('../pruneContext.cjs');
|
|
4
4
|
const require_analyzeContentUsage = require('../analyzeContentUsage.cjs');
|
|
5
5
|
const require_compat_namespaceResolution = require('./namespaceResolution.cjs');
|
|
6
6
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
|
|
3
3
|
const require_extractContent_utils_extractDictionaryInfo = require('./utils/extractDictionaryInfo.cjs');
|
|
4
|
-
let node_path = require("node:path");
|
|
5
4
|
let node_fs = require("node:fs");
|
|
5
|
+
let node_path = require("node:path");
|
|
6
6
|
let node_fs_promises = require("node:fs/promises");
|
|
7
7
|
let _intlayer_core_plugins = require("@intlayer/core/plugins");
|
|
8
8
|
let _intlayer_engine_build = require("@intlayer/engine/build");
|
|
@@ -5,14 +5,14 @@ const require_extractContent_utils_generateKey = require('./utils/generateKey.cj
|
|
|
5
5
|
const require_extractContent_babelProcessor = require('./babelProcessor.cjs');
|
|
6
6
|
const require_extractContent_contentWriter = require('./contentWriter.cjs');
|
|
7
7
|
const require_extractContent_processTsxFile = require('./processTsxFile.cjs');
|
|
8
|
-
let node_path = require("node:path");
|
|
9
8
|
let _intlayer_config_node = require("@intlayer/config/node");
|
|
9
|
+
let node_fs = require("node:fs");
|
|
10
|
+
let node_path = require("node:path");
|
|
10
11
|
let _intlayer_config_colors = require("@intlayer/config/colors");
|
|
11
12
|
_intlayer_config_colors = require_runtime.__toESM(_intlayer_config_colors);
|
|
12
13
|
let _intlayer_config_logger = require("@intlayer/config/logger");
|
|
13
14
|
let _intlayer_config_utils = require("@intlayer/config/utils");
|
|
14
15
|
let node_child_process = require("node:child_process");
|
|
15
|
-
let node_fs = require("node:fs");
|
|
16
16
|
let _intlayer_config_extract = require("@intlayer/config/extract");
|
|
17
17
|
let _intlayer_dictionaries_entry_unmerged = require("@intlayer/dictionaries-entry/unmerged");
|
|
18
18
|
let _intlayer_engine_cli = require("@intlayer/engine/cli");
|
|
@@ -2,9 +2,9 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
2
2
|
const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
|
|
3
3
|
const require_extractContent_utils_constants = require('./utils/constants.cjs');
|
|
4
4
|
const require_extractContent_babelProcessor = require('./babelProcessor.cjs');
|
|
5
|
+
let node_fs = require("node:fs");
|
|
5
6
|
let _babel_parser = require("@babel/parser");
|
|
6
7
|
let node_child_process = require("node:child_process");
|
|
7
|
-
let node_fs = require("node:fs");
|
|
8
8
|
let _intlayer_engine_cli = require("@intlayer/engine/cli");
|
|
9
9
|
let _babel_traverse = require("@babel/traverse");
|
|
10
10
|
_babel_traverse = require_runtime.__toESM(_babel_traverse);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
const require_extractContent_utils_constants = require('./constants.cjs');
|
|
3
|
-
let _intlayer_config_utils = require("@intlayer/config/utils");
|
|
4
3
|
let node_fs = require("node:fs");
|
|
4
|
+
let _intlayer_config_utils = require("@intlayer/config/utils");
|
|
5
5
|
|
|
6
6
|
//#region src/extractContent/utils/detectPackageName.ts
|
|
7
7
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
|
|
3
3
|
const require_extractContent_utils_extractDictionaryKey = require('./extractDictionaryKey.cjs');
|
|
4
|
-
let node_path = require("node:path");
|
|
5
4
|
let _intlayer_engine_utils = require("@intlayer/engine/utils");
|
|
5
|
+
let node_path = require("node:path");
|
|
6
6
|
let _intlayer_config_colors = require("@intlayer/config/colors");
|
|
7
7
|
_intlayer_config_colors = require_runtime.__toESM(_intlayer_config_colors);
|
|
8
8
|
let _intlayer_config_logger = require("@intlayer/config/logger");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
let _intlayer_config_defaultValues = require("@intlayer/config/defaultValues");
|
|
2
3
|
let _intlayer_config_utils = require("@intlayer/config/utils");
|
|
3
4
|
let _intlayer_engine_cli = require("@intlayer/engine/cli");
|
|
4
|
-
let _intlayer_config_defaultValues = require("@intlayer/config/defaultValues");
|
|
5
5
|
|
|
6
6
|
//#region src/extractContent/utils/extractDictionaryKey.ts
|
|
7
7
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
let node_fs = require("node:fs");
|
|
2
3
|
let node_path = require("node:path");
|
|
3
4
|
let _intlayer_config_utils = require("@intlayer/config/utils");
|
|
4
|
-
let node_fs = require("node:fs");
|
|
5
5
|
let _intlayer_dictionaries_entry_unmerged = require("@intlayer/dictionaries-entry/unmerged");
|
|
6
6
|
|
|
7
7
|
//#region src/extractContent/utils/resolveDictionaryKey.ts
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
|
|
3
3
|
const require_extractContent_contentWriter = require('./extractContent/contentWriter.cjs');
|
|
4
|
+
let _intlayer_config_defaultValues = require("@intlayer/config/defaultValues");
|
|
4
5
|
let _intlayer_config_node = require("@intlayer/config/node");
|
|
5
6
|
let _intlayer_engine_utils = require("@intlayer/engine/utils");
|
|
6
7
|
let _intlayer_config_colors = require("@intlayer/config/colors");
|
|
7
8
|
_intlayer_config_colors = require_runtime.__toESM(_intlayer_config_colors);
|
|
8
9
|
let _intlayer_config_logger = require("@intlayer/config/logger");
|
|
9
|
-
let _intlayer_config_defaultValues = require("@intlayer/config/defaultValues");
|
|
10
10
|
|
|
11
11
|
//#region src/getExtractPluginOptions.ts
|
|
12
12
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
let node_path = require("node:path");
|
|
3
2
|
let _intlayer_config_node = require("@intlayer/config/node");
|
|
4
3
|
let _intlayer_core_dictionaryManipulator = require("@intlayer/core/dictionaryManipulator");
|
|
5
4
|
let _intlayer_engine_utils = require("@intlayer/engine/utils");
|
|
5
|
+
let node_path = require("node:path");
|
|
6
6
|
|
|
7
7
|
//#region src/getOptimizePluginOptions.ts
|
|
8
8
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
let _intlayer_config_defaultValues = require("@intlayer/config/defaultValues");
|
|
2
3
|
let _intlayer_config_node = require("@intlayer/config/node");
|
|
3
4
|
let _intlayer_core_dictionaryManipulator = require("@intlayer/core/dictionaryManipulator");
|
|
4
5
|
let _intlayer_engine_utils = require("@intlayer/engine/utils");
|
|
5
|
-
let _intlayer_config_defaultValues = require("@intlayer/config/defaultValues");
|
|
6
6
|
|
|
7
7
|
//#region src/getPurgePluginOptions.ts
|
|
8
8
|
/**
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_staticAstReaders = require('./staticAstReaders.cjs');
|
|
3
|
+
const require_getPurgePluginOptions = require('./getPurgePluginOptions.cjs');
|
|
4
|
+
const require_nativeCallers = require('./nativeCallers.cjs');
|
|
5
|
+
const require_pruneContext = require('./pruneContext.cjs');
|
|
6
|
+
const require_babel_plugin_intlayer_usage_analyzer = require('./babel-plugin-intlayer-usage-analyzer.cjs');
|
|
7
|
+
const require_babel_plugin_intlayer_field_rename = require('./babel-plugin-intlayer-field-rename.cjs');
|
|
2
8
|
const require_extractScriptBlocks = require('./extractScriptBlocks.cjs');
|
|
3
|
-
const
|
|
9
|
+
const require_babel_plugin_intlayer_optimize = require('./babel-plugin-intlayer-optimize.cjs');
|
|
10
|
+
const require_transformers = require('./transformers.cjs');
|
|
11
|
+
const require_babel_plugin_intlayer_purge = require('./babel-plugin-intlayer-purge.cjs');
|
|
12
|
+
const require_babel_plugin_intlayer_minify = require('./babel-plugin-intlayer-minify.cjs');
|
|
4
13
|
const require_extractContent_utils_constants = require('./extractContent/utils/constants.cjs');
|
|
5
14
|
const require_extractContent_utils_detectPackageName = require('./extractContent/utils/detectPackageName.cjs');
|
|
6
15
|
const require_extractContent_utils_extractDictionaryKey = require('./extractContent/utils/extractDictionaryKey.cjs');
|
|
@@ -10,17 +19,8 @@ const require_extractContent_utils_getComponentName = require('./extractContent/
|
|
|
10
19
|
const require_extractContent_contentWriter = require('./extractContent/contentWriter.cjs');
|
|
11
20
|
const require_extractContent_extractContent = require('./extractContent/extractContent.cjs');
|
|
12
21
|
const require_babel_plugin_intlayer_extract = require('./babel-plugin-intlayer-extract.cjs');
|
|
13
|
-
const require_nativeCallers = require('./nativeCallers.cjs');
|
|
14
|
-
const require_pruneContext = require('./pruneContext.cjs');
|
|
15
|
-
const require_staticAstReaders = require('./staticAstReaders.cjs');
|
|
16
|
-
const require_babel_plugin_intlayer_usage_analyzer = require('./babel-plugin-intlayer-usage-analyzer.cjs');
|
|
17
|
-
const require_babel_plugin_intlayer_field_rename = require('./babel-plugin-intlayer-field-rename.cjs');
|
|
18
|
-
const require_babel_plugin_intlayer_optimize = require('./babel-plugin-intlayer-optimize.cjs');
|
|
19
|
-
const require_transformers = require('./transformers.cjs');
|
|
20
|
-
const require_babel_plugin_intlayer_purge = require('./babel-plugin-intlayer-purge.cjs');
|
|
21
|
-
const require_babel_plugin_intlayer_minify = require('./babel-plugin-intlayer-minify.cjs');
|
|
22
22
|
const require_getExtractPluginOptions = require('./getExtractPluginOptions.cjs');
|
|
23
|
-
const
|
|
23
|
+
const require_getOptimizePluginOptions = require('./getOptimizePluginOptions.cjs');
|
|
24
24
|
|
|
25
25
|
exports.BABEL_PARSER_OPTIONS = require_transformers.BABEL_PARSER_OPTIONS;
|
|
26
26
|
exports.CHAINABLE_RUNTIME_METHOD_NAMES = require_nativeCallers.CHAINABLE_RUNTIME_METHOD_NAMES;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_extractScriptBlocks = require('./extractScriptBlocks.cjs');
|
|
3
2
|
const require_nativeCallers = require('./nativeCallers.cjs');
|
|
4
3
|
const require_babel_plugin_intlayer_usage_analyzer = require('./babel-plugin-intlayer-usage-analyzer.cjs');
|
|
5
4
|
const require_babel_plugin_intlayer_field_rename = require('./babel-plugin-intlayer-field-rename.cjs');
|
|
5
|
+
const require_extractScriptBlocks = require('./extractScriptBlocks.cjs');
|
|
6
6
|
const require_babel_plugin_intlayer_optimize = require('./babel-plugin-intlayer-optimize.cjs');
|
|
7
7
|
let _babel_core = require("@babel/core");
|
|
8
8
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { unwrapAwait } from "./staticAstReaders.mjs";
|
|
1
2
|
import { CHAINABLE_RUNTIME_METHOD_NAMES } from "./nativeCallers.mjs";
|
|
2
3
|
import { recordFieldUsage } from "./pruneContext.mjs";
|
|
3
|
-
import { unwrapAwait } from "./staticAstReaders.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/analyzeContentUsage.ts
|
|
6
6
|
/**
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import { getNormalizedFilesListSet } from "./normalizedFilesList.mjs";
|
|
1
2
|
import { detectPackageName } from "./extractContent/utils/detectPackageName.mjs";
|
|
2
3
|
import { extractContentSync } from "./extractContent/extractContent.mjs";
|
|
3
|
-
import { getNormalizedFilesListSet } from "./normalizedFilesList.mjs";
|
|
4
4
|
import { relative } from "node:path";
|
|
5
|
-
import { parse } from "@babel/parser";
|
|
6
5
|
import * as ANSIColors from "@intlayer/config/colors";
|
|
7
6
|
import { colorize, colorizePath, getAppLogger } from "@intlayer/config/logger";
|
|
8
7
|
import { normalizePath } from "@intlayer/config/utils";
|
|
8
|
+
import { parse } from "@babel/parser";
|
|
9
9
|
|
|
10
10
|
//#region src/babel-plugin-intlayer-extract.ts
|
|
11
11
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CHAINABLE_RUNTIME_METHOD_NAMES, NATIVE_CALLER_NAME_SET } from "./nativeCallers.mjs";
|
|
2
1
|
import { unwrapAwait } from "./staticAstReaders.mjs";
|
|
2
|
+
import { CHAINABLE_RUNTIME_METHOD_NAMES, NATIVE_CALLER_NAME_SET } from "./nativeCallers.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/babel-plugin-intlayer-field-rename.ts
|
|
5
5
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { getNormalizedFilesListSet } from "./normalizedFilesList.mjs";
|
|
2
1
|
import { readStaticString } from "./staticAstReaders.mjs";
|
|
3
2
|
import { createCompatOptimizePass } from "./compat/optimizePass.mjs";
|
|
4
3
|
import { createDictionaryImportRegistry } from "./dictionaryImports.mjs";
|
|
4
|
+
import { getNormalizedFilesListSet } from "./normalizedFilesList.mjs";
|
|
5
5
|
import { dirname, join, relative } from "node:path";
|
|
6
6
|
import { normalizePath } from "@intlayer/config/utils";
|
|
7
7
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { extractScriptBlocks } from "./extractScriptBlocks.mjs";
|
|
2
1
|
import { createPruneContext, preserveNestedDictionaryFields } from "./pruneContext.mjs";
|
|
3
2
|
import { makeUsageAnalyzerBabelPlugin } from "./babel-plugin-intlayer-usage-analyzer.mjs";
|
|
4
3
|
import { buildNestedRenameMapFromContent, getNestedRenameEntryAtPath } from "./babel-plugin-intlayer-field-rename.mjs";
|
|
4
|
+
import { extractScriptBlocks } from "./extractScriptBlocks.mjs";
|
|
5
5
|
import { BABEL_PARSER_OPTIONS, SOURCE_FILE_REGEX, getUsageCheckRegex } from "./transformers.mjs";
|
|
6
|
-
import { join } from "node:path";
|
|
7
6
|
import { formatPath } from "@intlayer/engine/utils";
|
|
8
|
-
import * as ANSIColors from "@intlayer/config/colors";
|
|
9
|
-
import { colorize, colorizeKey, colorizeNumber, getAppLogger } from "@intlayer/config/logger";
|
|
10
7
|
import { existsSync, readFileSync, readdirSync, writeFileSync } from "node:fs";
|
|
8
|
+
import { join } from "node:path";
|
|
11
9
|
import { transformSync } from "@babel/core";
|
|
10
|
+
import * as ANSIColors from "@intlayer/config/colors";
|
|
11
|
+
import { colorize, colorizeKey, colorizeNumber, getAppLogger } from "@intlayer/config/logger";
|
|
12
12
|
|
|
13
13
|
//#region src/babel-plugin-intlayer-purge.ts
|
|
14
14
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { readStaticString, unwrapAwait } from "./staticAstReaders.mjs";
|
|
1
2
|
import { CHAINABLE_RUNTIME_METHOD_NAMES, INTLAYER_CALLER_NAMES, NATIVE_CALLER_NAME_SET } from "./nativeCallers.mjs";
|
|
2
3
|
import { createPruneContext, preserveNestedDictionaryFields } from "./pruneContext.mjs";
|
|
3
|
-
import { readStaticString, unwrapAwait } from "./staticAstReaders.mjs";
|
|
4
4
|
import { analyzeCallExpressionUsage } from "./analyzeContentUsage.mjs";
|
|
5
5
|
import { createCompatUsageAnalyzer } from "./compat/usageAnalysis.mjs";
|
|
6
6
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { recordFieldUsage } from "../pruneContext.mjs";
|
|
2
1
|
import { ABSENT_VALUE, firstPathSegment, readJsxAttributeString, readObjectProperty, readStaticFirstSegment, readStaticString, unwrapAwait } from "../staticAstReaders.mjs";
|
|
2
|
+
import { recordFieldUsage } from "../pruneContext.mjs";
|
|
3
3
|
import { analyzeCallExpressionUsage } from "../analyzeContentUsage.mjs";
|
|
4
4
|
import { DEFAULT_COMPAT_NAMESPACE, resolveKeyPrefixForAnalysis, resolveNamespaceForAnalysis } from "./namespaceResolution.mjs";
|
|
5
5
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { resolveContentFilePaths } from "./utils/extractDictionaryInfo.mjs";
|
|
2
|
-
import { dirname, relative } from "node:path";
|
|
3
2
|
import { existsSync } from "node:fs";
|
|
3
|
+
import { dirname, relative } from "node:path";
|
|
4
4
|
import { mkdir } from "node:fs/promises";
|
|
5
5
|
import { insertContentInDictionary } from "@intlayer/core/plugins";
|
|
6
6
|
import { buildDictionary, ensureIntlayerBundle, loadContentDeclaration, writeContentDeclaration } from "@intlayer/engine/build";
|
|
@@ -3,13 +3,13 @@ import { generateKey } from "./utils/generateKey.mjs";
|
|
|
3
3
|
import { extractTsContent } from "./babelProcessor.mjs";
|
|
4
4
|
import { writeContentHelper } from "./contentWriter.mjs";
|
|
5
5
|
import { processTsxFile } from "./processTsxFile.mjs";
|
|
6
|
-
import { extname, relative } from "node:path";
|
|
7
6
|
import { getConfiguration } from "@intlayer/config/node";
|
|
7
|
+
import { readFileSync, writeFileSync } from "node:fs";
|
|
8
|
+
import { extname, relative } from "node:path";
|
|
8
9
|
import * as ANSIColors from "@intlayer/config/colors";
|
|
9
10
|
import { colorize, colorizePath, getAppLogger } from "@intlayer/config/logger";
|
|
10
11
|
import { getProjectRequire } from "@intlayer/config/utils";
|
|
11
12
|
import { execSync } from "node:child_process";
|
|
12
|
-
import { readFileSync, writeFileSync } from "node:fs";
|
|
13
13
|
import { ATTRIBUTES_TO_EXTRACT, shouldExtract } from "@intlayer/config/extract";
|
|
14
14
|
import { getUnmergedDictionaries } from "@intlayer/dictionaries-entry/unmerged";
|
|
15
15
|
import { detectFormatCommand } from "@intlayer/engine/cli";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SERVER_CAPABLE_PACKAGES } from "./utils/constants.mjs";
|
|
2
2
|
import { extractBabelContentForComponents } from "./babelProcessor.mjs";
|
|
3
|
+
import { readFileSync, writeFileSync } from "node:fs";
|
|
3
4
|
import { parse } from "@babel/parser";
|
|
4
5
|
import { execSync } from "node:child_process";
|
|
5
|
-
import { readFileSync, writeFileSync } from "node:fs";
|
|
6
6
|
import { detectFormatCommand } from "@intlayer/engine/cli";
|
|
7
7
|
import _traverse from "@babel/traverse";
|
|
8
8
|
import * as t from "@babel/types";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { packageList } from "./constants.mjs";
|
|
2
|
-
import { getPackageJsonPath } from "@intlayer/config/utils";
|
|
3
2
|
import { existsSync, readFileSync } from "node:fs";
|
|
3
|
+
import { getPackageJsonPath } from "@intlayer/config/utils";
|
|
4
4
|
|
|
5
5
|
//#region src/extractContent/utils/detectPackageName.ts
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { extractDictionaryKey } from "./extractDictionaryKey.mjs";
|
|
2
|
-
import { basename, dirname, extname, relative, resolve } from "node:path";
|
|
3
2
|
import { getFormatFromExtension, resolveRelativePath } from "@intlayer/engine/utils";
|
|
3
|
+
import { basename, dirname, extname, relative, resolve } from "node:path";
|
|
4
4
|
import * as ANSIColors from "@intlayer/config/colors";
|
|
5
5
|
import { colorize } from "@intlayer/config/logger";
|
|
6
6
|
import { assertPathWithin, parseStringPattern } from "@intlayer/config/utils";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { COMPILER_DICTIONARY_KEY_PREFIX } from "@intlayer/config/defaultValues";
|
|
1
2
|
import { camelCaseToKebabCase } from "@intlayer/config/utils";
|
|
2
3
|
import { detectExportedComponentName } from "@intlayer/engine/cli";
|
|
3
|
-
import { COMPILER_DICTIONARY_KEY_PREFIX } from "@intlayer/config/defaultValues";
|
|
4
4
|
|
|
5
5
|
//#region src/extractContent/utils/extractDictionaryKey.ts
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { existsSync } from "node:fs";
|
|
1
2
|
import { dirname, join, resolve } from "node:path";
|
|
2
3
|
import { assertPathWithin } from "@intlayer/config/utils";
|
|
3
|
-
import { existsSync } from "node:fs";
|
|
4
4
|
import { getUnmergedDictionaries } from "@intlayer/dictionaries-entry/unmerged";
|
|
5
5
|
|
|
6
6
|
//#region src/extractContent/utils/resolveDictionaryKey.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { writeContentHelper } from "./extractContent/contentWriter.mjs";
|
|
2
|
+
import { COMPILER_ENABLED } from "@intlayer/config/defaultValues";
|
|
2
3
|
import { getConfiguration } from "@intlayer/config/node";
|
|
3
4
|
import { buildComponentFilesList } from "@intlayer/engine/utils";
|
|
4
5
|
import * as ANSIColors from "@intlayer/config/colors";
|
|
5
6
|
import { colorize, colorizeKey, getAppLogger } from "@intlayer/config/logger";
|
|
6
|
-
import { COMPILER_ENABLED } from "@intlayer/config/defaultValues";
|
|
7
7
|
|
|
8
8
|
//#region src/getExtractPluginOptions.ts
|
|
9
9
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { __require } from "./_virtual/_rolldown/runtime.mjs";
|
|
2
|
-
import { join } from "node:path";
|
|
3
2
|
import { getConfiguration } from "@intlayer/config/node";
|
|
4
3
|
import { getNestedDictionaryGraph } from "@intlayer/core/dictionaryManipulator";
|
|
5
4
|
import { buildComponentFilesList } from "@intlayer/engine/utils";
|
|
5
|
+
import { join } from "node:path";
|
|
6
6
|
|
|
7
7
|
//#region src/getOptimizePluginOptions.ts
|
|
8
8
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { __require } from "./_virtual/_rolldown/runtime.mjs";
|
|
2
|
+
import { IMPORT_MODE } from "@intlayer/config/defaultValues";
|
|
2
3
|
import { getConfiguration } from "@intlayer/config/node";
|
|
3
4
|
import { getNestedDictionaryReferences } from "@intlayer/core/dictionaryManipulator";
|
|
4
5
|
import { buildComponentFilesList } from "@intlayer/engine/utils";
|
|
5
|
-
import { IMPORT_MODE } from "@intlayer/config/defaultValues";
|
|
6
6
|
|
|
7
7
|
//#region src/getPurgePluginOptions.ts
|
|
8
8
|
/**
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
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";
|
|
1
7
|
import { extractScriptBlocks, injectScriptBlocks } from "./extractScriptBlocks.mjs";
|
|
2
|
-
import {
|
|
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";
|
|
3
12
|
import { SERVER_CAPABLE_PACKAGES, packageList } from "./extractContent/utils/constants.mjs";
|
|
4
13
|
import { detectPackageName } from "./extractContent/utils/detectPackageName.mjs";
|
|
5
14
|
import { extractDictionaryKey, extractDictionaryKeyFromPath } from "./extractContent/utils/extractDictionaryKey.mjs";
|
|
@@ -9,16 +18,7 @@ import { getComponentName } from "./extractContent/utils/getComponentName.mjs";
|
|
|
9
18
|
import { mergeWithExistingMultilingualDictionary, mergeWithExistingPerLocaleDictionary, writeContentHelper } from "./extractContent/contentWriter.mjs";
|
|
10
19
|
import { extractContent, extractContentSync } from "./extractContent/extractContent.mjs";
|
|
11
20
|
import { intlayerExtractBabelPlugin } from "./babel-plugin-intlayer-extract.mjs";
|
|
12
|
-
import { CHAINABLE_RUNTIME_METHOD_NAMES, INTLAYER_CALLER_NAMES, NATIVE_CALLER_NAME_SET } from "./nativeCallers.mjs";
|
|
13
|
-
import { createPruneContext, preserveNestedDictionaryFields } from "./pruneContext.mjs";
|
|
14
|
-
import { unwrapAwait } from "./staticAstReaders.mjs";
|
|
15
|
-
import { DEFAULT_COMPAT_CALLERS, makeUsageAnalyzerBabelPlugin } from "./babel-plugin-intlayer-usage-analyzer.mjs";
|
|
16
|
-
import { buildNestedRenameMapFromContent, generateShortFieldName, getNestedRenameEntryAtPath, makeFieldRenameBabelPlugin, renameIntlayerFieldAccesses, serializeFieldRenameMap } from "./babel-plugin-intlayer-field-rename.mjs";
|
|
17
|
-
import { intlayerOptimizeBabelPlugin } from "./babel-plugin-intlayer-optimize.mjs";
|
|
18
|
-
import { BABEL_PARSER_OPTIONS, INTLAYER_USAGE_REGEX, SOURCE_FILE_REGEX, analyzeFieldUsageInFile, buildUsageCheckRegex, getUsageCheckRegex, optimizeSourceFile, renameFieldsInCode, renameFieldsInSourceFile } from "./transformers.mjs";
|
|
19
|
-
import { getSharedPruneContext, intlayerPurgeBabelPlugin, runIntlayerPurgePipeline } from "./babel-plugin-intlayer-purge.mjs";
|
|
20
|
-
import { intlayerMinifyBabelPlugin } from "./babel-plugin-intlayer-minify.mjs";
|
|
21
21
|
import { getExtractPluginOptions } from "./getExtractPluginOptions.mjs";
|
|
22
|
-
import {
|
|
22
|
+
import { getOptimizePluginOptions } from "./getOptimizePluginOptions.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,7 +1,7 @@
|
|
|
1
|
-
import { extractScriptBlocks, injectScriptBlocks } from "./extractScriptBlocks.mjs";
|
|
2
1
|
import { INTLAYER_CALLER_NAMES } from "./nativeCallers.mjs";
|
|
3
2
|
import { makeUsageAnalyzerBabelPlugin } from "./babel-plugin-intlayer-usage-analyzer.mjs";
|
|
4
3
|
import { makeFieldRenameBabelPlugin } from "./babel-plugin-intlayer-field-rename.mjs";
|
|
4
|
+
import { extractScriptBlocks, injectScriptBlocks } from "./extractScriptBlocks.mjs";
|
|
5
5
|
import { intlayerOptimizeBabelPlugin } from "./babel-plugin-intlayer-optimize.mjs";
|
|
6
6
|
import { transformAsync } from "@babel/core";
|
|
7
7
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlayer/babel",
|
|
3
|
-
"version": "9.5.
|
|
3
|
+
"version": "9.5.7",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A Babel plugin for Intlayer that transforms declaration files and provides internationalization features during the build process according to the Intlayer configuration.",
|
|
6
6
|
"keywords": [
|