@intlayer/webpack 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.
@@ -1,4 +1,4 @@
1
- //#region \0rolldown/runtime.js
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;
@@ -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
- //#region src/getEntries.ts
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
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_webpack_plugin = require('./webpack-plugin.cjs');
3
- const require_webpack_config = require('./webpack.config.cjs');
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;
@@ -1,11 +1,11 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
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
- //#region src/utils.ts
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
- //#region src/webpack-plugin.ts
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 require_webpack_plugin = require('./webpack-plugin.cjs');
3
- const require_getEntries = require('./getEntries.cjs');
4
- const require_utils = require('./utils.cjs');
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
- //#region src/webpack.config.ts
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
- //#region \0rolldown/runtime.js
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 };
@@ -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
- //#region src/getEntries.ts
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
@@ -1,4 +1,4 @@
1
- import { IntlayerPlugin } from "./webpack-plugin.mjs";
2
1
  import getWebpackConfig, { devServerConfig } from "./webpack.config.mjs";
2
+ import { IntlayerPlugin } from "./webpack-plugin.mjs";
3
3
 
4
4
  export { IntlayerPlugin, devServerConfig, getWebpackConfig };
@@ -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
- //#region src/utils.ts
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
- //#region src/webpack-plugin.ts
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 { getConfiguration } from "@intlayer/config/node";
3
+ import { IntlayerPlugin } from "./webpack-plugin.mjs";
5
4
  import { join } from "node:path";
5
+ import { getConfiguration } from "@intlayer/config/node";
6
6
 
7
- //#region src/webpack.config.ts
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":";;;qBAKa,aAAU,eACN,mBACd,QAAQ"}
1
+ {"version":3,"file":"getEntries.d.ts","names":[],"sources":["../../src/getEntries.ts"],"mappings":";;qBAKa,aAAU,eACN,mBACd,QAAQ"}
@@ -1,7 +1,5 @@
1
- //#region src/utils.d.ts
2
1
  /**
3
2
  * Set the __dirname global variable to make the config work in both ESM and CJS environments
4
3
  */
5
4
  export declare const defineDirname: () => void;
6
- //#endregion
7
5
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","names":[],"sources":["../../src/utils.ts"],"mappings":";;;;qBAOa"}
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":";;;qBA6Da;UACH;UACA;EAER,YAAY,gBAAgB;EAItB,MAAM,UAAU,WAAW"}
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":";;;;qBAWa,iBAAiB;qBA4BjB,mBAAgB,gBACZ,mBACd"}
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,26 +1,22 @@
1
1
  {
2
2
  "name": "@intlayer/webpack",
3
- "version": "9.7.0",
3
+ "version": "9.7.2",
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": [
7
- "intlayer",
8
- "webpack",
9
7
  "application",
10
- "transpile",
11
- "typescript",
8
+ "file",
9
+ "intlayer",
12
10
  "javascript",
13
11
  "json",
14
- "file"
12
+ "transpile",
13
+ "typescript",
14
+ "webpack"
15
15
  ],
16
16
  "homepage": "https://intlayer.org",
17
17
  "bugs": {
18
18
  "url": "https://github.com/aymericzip/intlayer/issues"
19
19
  },
20
- "repository": {
21
- "type": "git",
22
- "url": "git+https://github.com/aymericzip/intlayer.git"
23
- },
24
20
  "license": "Apache-2.0",
25
21
  "author": {
26
22
  "name": "Aymeric PINEAU",
@@ -33,15 +29,15 @@
33
29
  "url": "https://github.com/aymericzip"
34
30
  }
35
31
  ],
36
- "sideEffects": false,
37
- "exports": {
38
- ".": {
39
- "types": "./dist/types/index.d.ts",
40
- "require": "./dist/cjs/index.cjs",
41
- "import": "./dist/esm/index.mjs"
42
- },
43
- "./package.json": "./package.json"
32
+ "repository": {
33
+ "type": "git",
34
+ "url": "git+https://github.com/aymericzip/intlayer.git"
44
35
  },
36
+ "files": [
37
+ "./dist",
38
+ "./package.json"
39
+ ],
40
+ "sideEffects": false,
45
41
  "main": "dist/cjs/index.cjs",
46
42
  "module": "dist/esm/index.mjs",
47
43
  "types": "dist/types/index.d.ts",
@@ -52,19 +48,23 @@
52
48
  ]
53
49
  }
54
50
  },
55
- "files": [
56
- "./dist",
57
- "./package.json"
58
- ],
51
+ "exports": {
52
+ ".": {
53
+ "types": "./dist/types/index.d.ts",
54
+ "require": "./dist/cjs/index.cjs",
55
+ "import": "./dist/esm/index.mjs"
56
+ },
57
+ "./package.json": "./package.json"
58
+ },
59
59
  "scripts": {
60
60
  "build": "bun --bun tsdown --config tsdown.config.ts",
61
61
  "build:ci": "bun --bun tsdown --config tsdown.config.ts",
62
62
  "clean": "bun --bun rimraf ./dist .turbo",
63
63
  "dev": "bun --bun tsdown --config tsdown.config.ts --watch",
64
- "format": "bun --bun biome format . --check",
65
- "format:fix": "bun --bun biome format --write .",
66
- "lint": "bun --bun biome lint .",
67
- "lint:fix": "bun --bun biome lint --write .",
64
+ "format": "oxfmt --check .",
65
+ "format:fix": "oxfmt .",
66
+ "lint": "oxlint .",
67
+ "lint:fix": "oxlint --fix .",
68
68
  "prepublish": "cp -f ../../../README.md ./README.md",
69
69
  "publish": "bun publish || true",
70
70
  "publish:canary": "bun publish --access public --tag canary || true",
@@ -78,10 +78,10 @@
78
78
  "watch": "webpack --config ./webpack.config.ts --watch"
79
79
  },
80
80
  "dependencies": {
81
- "@intlayer/config": "9.7.0",
82
- "@intlayer/dictionaries-entry": "9.7.0",
83
- "@intlayer/engine": "9.7.0",
84
- "@intlayer/types": "9.7.0",
81
+ "@intlayer/config": "9.7.2",
82
+ "@intlayer/dictionaries-entry": "9.7.2",
83
+ "@intlayer/engine": "9.7.2",
84
+ "@intlayer/types": "9.7.2",
85
85
  "fast-glob": "3.3.3"
86
86
  },
87
87
  "devDependencies": {
@@ -89,12 +89,12 @@
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
- "rimraf": "6.1.3",
93
- "tsdown": "0.23.0",
92
+ "rimraf": "6.1.4",
93
+ "tsdown": "0.23.7",
94
94
  "typescript": "7.0.2",
95
- "vitest": "5.0.3",
96
- "webpack": "5.111.1",
97
- "webpack-dev-server": "6.0.0"
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",