vite-intlayer 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/esm/IntlayerCompilerPlugin.mjs +4 -4
- package/dist/esm/index.mjs +3 -3
- package/dist/esm/intlayerChunkPlugin.mjs +1 -1
- package/dist/esm/intlayerMinifyPlugin.mjs +1 -1
- package/dist/esm/intlayerOptimizePlugin.mjs +5 -5
- package/dist/esm/intlayerPlugin.mjs +7 -7
- package/dist/esm/intlayerProxyPlugin.mjs +2 -2
- package/dist/esm/intlayerPrunePlugin.mjs +1 -1
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { createPrimaryInstanceGuard } from "./dedupePlugin.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { colorize, colorizeKey, colorizeNumber, colorizePath, getAppLogger, x } from "@intlayer/config/logger";
|
|
3
|
+
import { normalizePath } from "@intlayer/config/utils";
|
|
3
4
|
import { dirname, relative } from "node:path";
|
|
4
|
-
import { detectPackageName, extractContent, getExtractPluginOptions, writeContentHelper } from "@intlayer/babel";
|
|
5
5
|
import * as ANSIColors from "@intlayer/config/colors";
|
|
6
|
-
import {
|
|
6
|
+
import { readFile } from "node:fs/promises";
|
|
7
|
+
import { detectPackageName, extractContent, getExtractPluginOptions, writeContentHelper } from "@intlayer/babel";
|
|
7
8
|
import { getConfiguration } from "@intlayer/config/node";
|
|
8
|
-
import { normalizePath } from "@intlayer/config/utils";
|
|
9
9
|
|
|
10
10
|
//#region src/IntlayerCompilerPlugin.ts
|
|
11
11
|
const COMPILER_PLUGIN_NAME = "vite-intlayer-compiler";
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { intlayerCompiler } from "./IntlayerCompilerPlugin.mjs";
|
|
2
1
|
import { createDictionaryModuleParser, intlayerChunk, resolveBoundaries, toBoundaryName } from "./intlayerChunkPlugin.mjs";
|
|
3
|
-
import {
|
|
2
|
+
import { intlayerPrune } from "./intlayerPrunePlugin.mjs";
|
|
4
3
|
import { intlayerOptimize } from "./intlayerOptimizePlugin.mjs";
|
|
4
|
+
import { intlayerCompiler } from "./IntlayerCompilerPlugin.mjs";
|
|
5
|
+
import { intlayerMinify } from "./intlayerMinifyPlugin.mjs";
|
|
5
6
|
import { intlayerPreload } from "./intlayerPreloadPlugin.mjs";
|
|
6
7
|
import { createIntlayerProxyHandler, createRedirectOnlyMiddleware, intLayerMiddlewarePlugin, intlayerMiddleware, intlayerProxy, resolveNitroHandlerPath } from "./intlayerProxyPlugin.mjs";
|
|
7
|
-
import { intlayerPrune } from "./intlayerPrunePlugin.mjs";
|
|
8
8
|
import { INTLAYER_NO_EXTERNAL_PATTERN, intLayerPlugin, intlayer, intlayerPlugin } from "./intlayerPlugin.mjs";
|
|
9
9
|
|
|
10
10
|
export { INTLAYER_NO_EXTERNAL_PATTERN, createDictionaryModuleParser, createIntlayerProxyHandler, createRedirectOnlyMiddleware, intLayerMiddlewarePlugin, intLayerPlugin, intlayer, intlayerChunk, intlayerCompiler, intlayerMiddleware, intlayerMinify, intlayerOptimize, intlayerPlugin, intlayerPreload, intlayerProxy, intlayerPrune, resolveBoundaries, resolveNitroHandlerPath, toBoundaryName };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { DYNAMIC_DICTIONARIES_JSON_SUBDIR } from "@intlayer/config/defaultValues";
|
|
1
2
|
import { colorizeNumber, getAppLogger } from "@intlayer/config/logger";
|
|
2
3
|
import { normalizePath } from "@intlayer/config/utils";
|
|
3
|
-
import { DYNAMIC_DICTIONARIES_JSON_SUBDIR } from "@intlayer/config/defaultValues";
|
|
4
4
|
|
|
5
5
|
//#region src/intlayerChunkPlugin.ts
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { colorize, getAppLogger } from "@intlayer/config/logger";
|
|
1
2
|
import { join } from "node:path";
|
|
2
3
|
import * as ANSIColors from "@intlayer/config/colors";
|
|
3
|
-
import { colorize, getAppLogger } from "@intlayer/config/logger";
|
|
4
4
|
import { formatPath, runOnce } from "@intlayer/engine/utils";
|
|
5
5
|
|
|
6
6
|
//#region src/intlayerMinifyPlugin.ts
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { intlayerVueAsyncPlugin } from "./intlayerVueAsyncPlugin.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { join } from "node:path";
|
|
4
|
-
import { INTLAYER_USAGE_REGEX, SOURCE_FILE_REGEX, analyzeFieldUsageInFile, buildNestedRenameMapFromContent, buildUsageCheckRegex, getNestedRenameEntryAtPath, optimizeSourceFile, preserveNestedDictionaryFields, renameFieldsInSourceFile } from "@intlayer/babel";
|
|
5
|
-
import * as ANSIColors from "@intlayer/config/colors";
|
|
2
|
+
import { IMPORT_MODE } from "@intlayer/config/defaultValues";
|
|
6
3
|
import { colorize, colorizeKey, colorizeNumber, getAppLogger } from "@intlayer/config/logger";
|
|
7
4
|
import { normalizePath } from "@intlayer/config/utils";
|
|
8
|
-
import {
|
|
5
|
+
import { join } from "node:path";
|
|
6
|
+
import * as ANSIColors from "@intlayer/config/colors";
|
|
9
7
|
import { buildComponentFilesList, formatPath, runOnce } from "@intlayer/engine/utils";
|
|
8
|
+
import { readFile, readdir } from "node:fs/promises";
|
|
9
|
+
import { INTLAYER_USAGE_REGEX, SOURCE_FILE_REGEX, analyzeFieldUsageInFile, buildNestedRenameMapFromContent, buildUsageCheckRegex, getNestedRenameEntryAtPath, optimizeSourceFile, preserveNestedDictionaryFields, renameFieldsInSourceFile } from "@intlayer/babel";
|
|
10
10
|
import { getNestedDictionaryGraph, getNestedDictionaryReferences } from "@intlayer/core/dictionaryManipulator";
|
|
11
11
|
import { getDictionaries } from "@intlayer/dictionaries-entry";
|
|
12
12
|
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { intlayerCompiler } from "./IntlayerCompilerPlugin.mjs";
|
|
2
1
|
import { intlayerChunk } from "./intlayerChunkPlugin.mjs";
|
|
3
|
-
import {
|
|
2
|
+
import { intlayerPrune } from "./intlayerPrunePlugin.mjs";
|
|
4
3
|
import { intlayerOptimize } from "./intlayerOptimizePlugin.mjs";
|
|
4
|
+
import { intlayerCompiler } from "./IntlayerCompilerPlugin.mjs";
|
|
5
|
+
import { intlayerMinify } from "./intlayerMinifyPlugin.mjs";
|
|
5
6
|
import { intlayerPreload } from "./intlayerPreloadPlugin.mjs";
|
|
6
7
|
import { intlayerProxy } from "./intlayerProxyPlugin.mjs";
|
|
7
|
-
import { intlayerPrune } from "./intlayerPrunePlugin.mjs";
|
|
8
|
-
import { resolve } from "node:path";
|
|
9
|
-
import { createPruneContext } from "@intlayer/babel";
|
|
10
|
-
import { BLUE } from "@intlayer/config/colors";
|
|
11
8
|
import { colorize, getAppLogger } from "@intlayer/config/logger";
|
|
12
|
-
import { getConfiguration } from "@intlayer/config/node";
|
|
13
9
|
import { getAlias, getHasDictionarySelector, getUnusedNodeTypesAsync } from "@intlayer/config/utils";
|
|
14
10
|
import { resolveProxyMode } from "@intlayer/core/localization";
|
|
11
|
+
import { resolve } from "node:path";
|
|
12
|
+
import { BLUE } from "@intlayer/config/colors";
|
|
13
|
+
import { createPruneContext } from "@intlayer/babel";
|
|
15
14
|
import { getDictionaries } from "@intlayer/dictionaries-entry";
|
|
16
15
|
import { formatDictionarySelectorEnvVar, formatNodeTypeToEnvVar, formatOptimizedNestingEnvVar, getConfigEnvVars } from "@intlayer/config/envVars";
|
|
16
|
+
import { getConfiguration } from "@intlayer/config/node";
|
|
17
17
|
import { logConfigDetails } from "@intlayer/engine/logConfigDetails";
|
|
18
18
|
|
|
19
19
|
//#region src/intlayerPlugin.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { createPrimaryInstanceGuard } from "./dedupePlugin.mjs";
|
|
2
1
|
import { createProxyHandler } from "./intlayerProxyHandler.mjs";
|
|
2
|
+
import { createPrimaryInstanceGuard } from "./dedupePlugin.mjs";
|
|
3
3
|
import { getAppLogger } from "@intlayer/config/logger";
|
|
4
|
-
import { getConfiguration } from "@intlayer/config/node";
|
|
5
4
|
import { normalizePath } from "@intlayer/config/utils";
|
|
6
5
|
import { formatProxyEnabledMessage, isProxyStorageLocaleEnabled, resolveProxyMode } from "@intlayer/core/localization";
|
|
6
|
+
import { getConfiguration } from "@intlayer/config/node";
|
|
7
7
|
import { fileURLToPath } from "node:url";
|
|
8
8
|
|
|
9
9
|
//#region src/intlayerProxyPlugin.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { colorize, colorizeKey, colorizeNumber, getAppLogger } from "@intlayer/config/logger";
|
|
1
2
|
import { join } from "node:path";
|
|
2
3
|
import * as ANSIColors from "@intlayer/config/colors";
|
|
3
|
-
import { colorize, colorizeKey, colorizeNumber, getAppLogger } from "@intlayer/config/logger";
|
|
4
4
|
import { formatPath, runOnce } from "@intlayer/engine/utils";
|
|
5
5
|
|
|
6
6
|
//#region src/intlayerPrunePlugin.ts
|
package/package.json
CHANGED