@intlayer/webpack 9.6.0 → 9.7.1
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/getEntries.cjs +2 -3
- package/dist/cjs/index.cjs +2 -2
- package/dist/cjs/utils.cjs +3 -4
- package/dist/cjs/webpack-plugin.cjs +4 -5
- package/dist/cjs/webpack.config.cjs +5 -6
- package/dist/esm/_virtual/_rolldown/runtime.mjs +1 -2
- package/dist/esm/getEntries.mjs +2 -3
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/utils.mjs +2 -3
- package/dist/esm/webpack-plugin.mjs +4 -5
- package/dist/esm/webpack.config.mjs +3 -4
- package/dist/types/getEntries.d.ts +0 -2
- package/dist/types/getEntries.d.ts.map +1 -1
- package/dist/types/utils.d.ts +0 -2
- package/dist/types/utils.d.ts.map +1 -1
- package/dist/types/webpack-plugin.d.ts +0 -2
- package/dist/types/webpack-plugin.d.ts.map +1 -1
- package/dist/types/webpack.config.d.ts +0 -2
- package/dist/types/webpack.config.d.ts.map +1 -1
- package/package.json +10 -10
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// \0rolldown/runtime.js
|
|
2
2
|
var __create = Object.create;
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -24,5 +24,4 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
24
24
|
enumerable: true
|
|
25
25
|
}) : target, mod));
|
|
26
26
|
|
|
27
|
-
//#endregion
|
|
28
27
|
exports.__toESM = __toESM;
|
package/dist/cjs/getEntries.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
let _intlayer_engine_utils = require("@intlayer/engine/utils");
|
|
3
2
|
let _intlayer_engine_listDictionaries = require("@intlayer/engine/listDictionaries");
|
|
3
|
+
let _intlayer_engine_utils = require("@intlayer/engine/utils");
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/getEntries.ts
|
|
6
6
|
const getEntries = async (configuration) => {
|
|
7
7
|
return (await (0, _intlayer_engine_listDictionaries.listDictionaries)(configuration)).reduce((obj, el) => {
|
|
8
8
|
const hash = (0, _intlayer_engine_utils.getPathHash)(el);
|
|
@@ -14,6 +14,5 @@ const getEntries = async (configuration) => {
|
|
|
14
14
|
}, {});
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
-
//#endregion
|
|
18
17
|
exports.getEntries = getEntries;
|
|
19
18
|
//# sourceMappingURL=getEntries.cjs.map
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const
|
|
3
|
-
const
|
|
2
|
+
const require_webpack_config = require("./webpack.config.cjs");
|
|
3
|
+
const require_webpack_plugin = require("./webpack-plugin.cjs");
|
|
4
4
|
|
|
5
5
|
exports.IntlayerPlugin = require_webpack_plugin.IntlayerPlugin;
|
|
6
6
|
exports.devServerConfig = require_webpack_config.devServerConfig;
|
package/dist/cjs/utils.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_runtime = require(
|
|
3
|
-
let _intlayer_config_utils = require("@intlayer/config/utils");
|
|
2
|
+
const require_runtime = require("./_virtual/_rolldown/runtime.cjs");
|
|
4
3
|
let node_path = require("node:path");
|
|
5
4
|
node_path = require_runtime.__toESM(node_path);
|
|
6
5
|
let node_url = require("node:url");
|
|
6
|
+
let _intlayer_config_utils = require("@intlayer/config/utils");
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
// src/utils.ts
|
|
9
9
|
/**
|
|
10
10
|
* Set the __dirname global variable to make the config work in both ESM and CJS environments
|
|
11
11
|
*/
|
|
@@ -15,6 +15,5 @@ const defineDirname = () => {
|
|
|
15
15
|
globalThis.__dirname = globalThis.__dirname ?? node_path.default.dirname(__filename);
|
|
16
16
|
};
|
|
17
17
|
|
|
18
|
-
//#endregion
|
|
19
18
|
exports.defineDirname = defineDirname;
|
|
20
19
|
//# sourceMappingURL=utils.cjs.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
let _intlayer_config_utils = require("@intlayer/config/utils");
|
|
3
|
+
let _intlayer_config_node = require("@intlayer/config/node");
|
|
4
|
+
let _intlayer_engine_utils = require("@intlayer/engine/utils");
|
|
2
5
|
let _intlayer_config_colors = require("@intlayer/config/colors");
|
|
3
6
|
let _intlayer_config_envVars = require("@intlayer/config/envVars");
|
|
4
7
|
let _intlayer_config_logger = require("@intlayer/config/logger");
|
|
5
|
-
let _intlayer_config_node = require("@intlayer/config/node");
|
|
6
|
-
let _intlayer_config_utils = require("@intlayer/config/utils");
|
|
7
8
|
let _intlayer_dictionaries_entry = require("@intlayer/dictionaries-entry");
|
|
8
9
|
let _intlayer_engine_build = require("@intlayer/engine/build");
|
|
9
|
-
let _intlayer_engine_utils = require("@intlayer/engine/utils");
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
// src/webpack-plugin.ts
|
|
12
12
|
/**
|
|
13
13
|
* Narrows an entry of `compiler.options.plugins` to a `DefinePlugin` instance.
|
|
14
14
|
*
|
|
@@ -72,6 +72,5 @@ var IntlayerPlugin = class {
|
|
|
72
72
|
}
|
|
73
73
|
};
|
|
74
74
|
|
|
75
|
-
//#endregion
|
|
76
75
|
exports.IntlayerPlugin = IntlayerPlugin;
|
|
77
76
|
//# sourceMappingURL=webpack-plugin.cjs.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
let _intlayer_config_node = require("@intlayer/config/node");
|
|
2
|
+
const require_getEntries = require("./getEntries.cjs");
|
|
3
|
+
const require_utils = require("./utils.cjs");
|
|
4
|
+
const require_webpack_plugin = require("./webpack-plugin.cjs");
|
|
6
5
|
let node_path = require("node:path");
|
|
6
|
+
let _intlayer_config_node = require("@intlayer/config/node");
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
// src/webpack.config.ts
|
|
9
9
|
const devServerConfig = {
|
|
10
10
|
hot: true,
|
|
11
11
|
open: false,
|
|
@@ -83,7 +83,6 @@ const getWebpackConfig = (configuration = (0, _intlayer_config_node.getConfigura
|
|
|
83
83
|
};
|
|
84
84
|
};
|
|
85
85
|
|
|
86
|
-
//#endregion
|
|
87
86
|
exports.default = getWebpackConfig;
|
|
88
87
|
exports.getWebpackConfig = getWebpackConfig;
|
|
89
88
|
exports.devServerConfig = devServerConfig;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
// \0rolldown/runtime.js
|
|
2
2
|
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
|
|
3
3
|
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
4
4
|
throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
5
5
|
});
|
|
6
6
|
|
|
7
|
-
//#endregion
|
|
8
7
|
export { __require };
|
package/dist/esm/getEntries.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { getPathHash } from "@intlayer/engine/utils";
|
|
2
1
|
import { listDictionaries } from "@intlayer/engine/listDictionaries";
|
|
2
|
+
import { getPathHash } from "@intlayer/engine/utils";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/getEntries.ts
|
|
5
5
|
const getEntries = async (configuration) => {
|
|
6
6
|
return (await listDictionaries(configuration)).reduce((obj, el) => {
|
|
7
7
|
const hash = getPathHash(el);
|
|
@@ -13,6 +13,5 @@ const getEntries = async (configuration) => {
|
|
|
13
13
|
}, {});
|
|
14
14
|
};
|
|
15
15
|
|
|
16
|
-
//#endregion
|
|
17
16
|
export { getEntries };
|
|
18
17
|
//# sourceMappingURL=getEntries.mjs.map
|
package/dist/esm/index.mjs
CHANGED
package/dist/esm/utils.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { __require } from "./_virtual/_rolldown/runtime.mjs";
|
|
2
|
-
import { isESModule } from "@intlayer/config/utils";
|
|
3
2
|
import path from "node:path";
|
|
4
3
|
import { fileURLToPath } from "node:url";
|
|
4
|
+
import { isESModule } from "@intlayer/config/utils";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/utils.ts
|
|
7
7
|
/**
|
|
8
8
|
* Set the __dirname global variable to make the config work in both ESM and CJS environments
|
|
9
9
|
*/
|
|
@@ -13,6 +13,5 @@ const defineDirname = () => {
|
|
|
13
13
|
globalThis.__dirname = globalThis.__dirname ?? path.dirname(__filename);
|
|
14
14
|
};
|
|
15
15
|
|
|
16
|
-
//#endregion
|
|
17
16
|
export { defineDirname };
|
|
18
17
|
//# sourceMappingURL=utils.mjs.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
+
import { getHasDictionarySelector, getUnusedNodeTypesAsync } from "@intlayer/config/utils";
|
|
2
|
+
import { getConfiguration } from "@intlayer/config/node";
|
|
3
|
+
import { startContentWatcher } from "@intlayer/engine/utils";
|
|
1
4
|
import { BLUE } from "@intlayer/config/colors";
|
|
2
5
|
import { formatDictionarySelectorEnvVar, formatNodeTypeToEnvVar, getConfigEnvVars } from "@intlayer/config/envVars";
|
|
3
6
|
import { colorize, getAppLogger } from "@intlayer/config/logger";
|
|
4
|
-
import { getConfiguration } from "@intlayer/config/node";
|
|
5
|
-
import { getHasDictionarySelector, getUnusedNodeTypesAsync } from "@intlayer/config/utils";
|
|
6
7
|
import { getDictionaries } from "@intlayer/dictionaries-entry";
|
|
7
8
|
import { prepareIntlayer } from "@intlayer/engine/build";
|
|
8
|
-
import { startContentWatcher } from "@intlayer/engine/utils";
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
// src/webpack-plugin.ts
|
|
11
11
|
/**
|
|
12
12
|
* Narrows an entry of `compiler.options.plugins` to a `DefinePlugin` instance.
|
|
13
13
|
*
|
|
@@ -71,6 +71,5 @@ var IntlayerPlugin = class {
|
|
|
71
71
|
}
|
|
72
72
|
};
|
|
73
73
|
|
|
74
|
-
//#endregion
|
|
75
74
|
export { IntlayerPlugin };
|
|
76
75
|
//# sourceMappingURL=webpack-plugin.mjs.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { IntlayerPlugin } from "./webpack-plugin.mjs";
|
|
2
1
|
import { getEntries } from "./getEntries.mjs";
|
|
3
2
|
import { defineDirname } from "./utils.mjs";
|
|
4
|
-
import {
|
|
3
|
+
import { IntlayerPlugin } from "./webpack-plugin.mjs";
|
|
5
4
|
import { join } from "node:path";
|
|
5
|
+
import { getConfiguration } from "@intlayer/config/node";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// src/webpack.config.ts
|
|
8
8
|
const devServerConfig = {
|
|
9
9
|
hot: true,
|
|
10
10
|
open: false,
|
|
@@ -82,6 +82,5 @@ const getWebpackConfig = (configuration = getConfiguration()) => {
|
|
|
82
82
|
};
|
|
83
83
|
};
|
|
84
84
|
|
|
85
|
-
//#endregion
|
|
86
85
|
export { getWebpackConfig as default, getWebpackConfig, devServerConfig };
|
|
87
86
|
//# sourceMappingURL=webpack.config.mjs.map
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
2
2
|
import { EntryObject } from "webpack";
|
|
3
|
-
//#region src/getEntries.d.ts
|
|
4
3
|
export declare const getEntries: (configuration: IntlayerConfig) => Promise<EntryObject>;
|
|
5
|
-
//#endregion
|
|
6
4
|
//# sourceMappingURL=getEntries.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getEntries.d.ts","names":[],"sources":["../../src/getEntries.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"getEntries.d.ts","names":[],"sources":["../../src/getEntries.ts"],"mappings":";;qBAKa,aAAU,eACN,mBACd,QAAQ"}
|
package/dist/types/utils.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","names":[],"sources":["../../src/utils.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","names":[],"sources":["../../src/utils.ts"],"mappings":";;;qBAOa"}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
2
2
|
import { Compiler } from "webpack";
|
|
3
|
-
//#region src/webpack-plugin.d.ts
|
|
4
3
|
export declare class IntlayerPlugin {
|
|
5
4
|
private isWatching;
|
|
6
5
|
private configuration;
|
|
7
6
|
constructor(configuration?: IntlayerConfig);
|
|
8
7
|
apply(compiler: Compiler): Promise<void>;
|
|
9
8
|
}
|
|
10
|
-
//#endregion
|
|
11
9
|
//# sourceMappingURL=webpack-plugin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webpack-plugin.d.ts","names":[],"sources":["../../src/webpack-plugin.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"webpack-plugin.d.ts","names":[],"sources":["../../src/webpack-plugin.ts"],"mappings":";;qBA6Da;UACH;UACA;EAER,YAAY,gBAAgB;EAItB,MAAM,UAAU,WAAW"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
2
2
|
import { Configuration } from "webpack";
|
|
3
3
|
import { Configuration as Configuration$1 } from "webpack-dev-server";
|
|
4
|
-
//#region src/webpack.config.d.ts
|
|
5
4
|
export declare const devServerConfig: Configuration$1;
|
|
6
5
|
export declare const getWebpackConfig: (configuration?: IntlayerConfig) => Configuration;
|
|
7
|
-
//#endregion
|
|
8
6
|
export { getWebpackConfig as default };
|
|
9
7
|
//# sourceMappingURL=webpack.config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webpack.config.d.ts","names":[],"sources":["../../src/webpack.config.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"webpack.config.d.ts","names":["DevServerConfiguration","WebPackConfiguration"],"sources":["../../src/webpack.config.ts"],"mappings":";;;qBAWa,iBAAiBA;qBA4BjB,mBAAgB,gBACZ,mBACdC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlayer/webpack",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.7.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Webpack plugin for seamless integration with Intlayer, enhancing JavaScript apps built with React, Next.js and more.",
|
|
6
6
|
"keywords": [
|
|
@@ -78,23 +78,23 @@
|
|
|
78
78
|
"watch": "webpack --config ./webpack.config.ts --watch"
|
|
79
79
|
},
|
|
80
80
|
"dependencies": {
|
|
81
|
-
"@intlayer/config": "9.
|
|
82
|
-
"@intlayer/dictionaries-entry": "9.
|
|
83
|
-
"@intlayer/engine": "9.
|
|
84
|
-
"@intlayer/types": "9.
|
|
81
|
+
"@intlayer/config": "9.7.1",
|
|
82
|
+
"@intlayer/dictionaries-entry": "9.7.1",
|
|
83
|
+
"@intlayer/engine": "9.7.1",
|
|
84
|
+
"@intlayer/types": "9.7.1",
|
|
85
85
|
"fast-glob": "3.3.3"
|
|
86
86
|
},
|
|
87
87
|
"devDependencies": {
|
|
88
|
-
"@types/node": "^
|
|
88
|
+
"@types/node": "^26",
|
|
89
89
|
"@utils/ts-config": "1.0.4",
|
|
90
90
|
"@utils/ts-config-types": "1.0.4",
|
|
91
91
|
"@utils/tsdown-config": "1.0.4",
|
|
92
92
|
"rimraf": "6.1.3",
|
|
93
|
-
"tsdown": "0.23.
|
|
93
|
+
"tsdown": "0.23.4",
|
|
94
94
|
"typescript": "7.0.2",
|
|
95
|
-
"vitest": "5.0
|
|
96
|
-
"webpack": "5.
|
|
97
|
-
"webpack-dev-server": "6.
|
|
95
|
+
"vitest": "5.1.0",
|
|
96
|
+
"webpack": "5.112.2",
|
|
97
|
+
"webpack-dev-server": "6.1.0"
|
|
98
98
|
},
|
|
99
99
|
"peerDependencies": {
|
|
100
100
|
"webpack": ">=5.0.0",
|