@intlayer/webpack 3.2.2 → 3.3.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/getEntries.cjs
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
5
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
8
|
var __export = (target, all) => {
|
|
7
9
|
for (var name in all)
|
|
@@ -15,6 +17,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
17
|
}
|
|
16
18
|
return to;
|
|
17
19
|
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
18
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
29
|
var getEntries_exports = {};
|
|
20
30
|
__export(getEntries_exports, {
|
|
@@ -22,11 +32,11 @@ __export(getEntries_exports, {
|
|
|
22
32
|
});
|
|
23
33
|
module.exports = __toCommonJS(getEntries_exports);
|
|
24
34
|
var import_config = require("@intlayer/config");
|
|
25
|
-
var
|
|
35
|
+
var import_fast_glob = __toESM(require("fast-glob"));
|
|
26
36
|
var import_utils = require('./utils.cjs');
|
|
27
37
|
const { content } = (0, import_config.getConfiguration)();
|
|
28
38
|
const { watchedFilesPatternWithPath } = content;
|
|
29
|
-
const getEntries = () =>
|
|
39
|
+
const getEntries = () => import_fast_glob.default.sync(watchedFilesPatternWithPath).reduce((obj, el) => {
|
|
30
40
|
const hash = (0, import_utils.getFileHash)(el);
|
|
31
41
|
obj[`intlayer-content/${hash}`] = {
|
|
32
42
|
import: el,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/getEntries.ts"],"sourcesContent":["import { getConfiguration } from '@intlayer/config';\nimport
|
|
1
|
+
{"version":3,"sources":["../../src/getEntries.ts"],"sourcesContent":["import { getConfiguration } from '@intlayer/config';\nimport fg from 'fast-glob';\nimport type { EntryObject } from 'webpack';\nimport { getFileHash } from './utils';\n\nconst { content } = getConfiguration();\nconst { watchedFilesPatternWithPath } = content;\n\nexport const getEntries = (): EntryObject =>\n fg.sync(watchedFilesPatternWithPath).reduce((obj, el) => {\n const hash = getFileHash(el);\n\n obj[`intlayer-content/${hash}`] = {\n import: el,\n dependOn: undefined,\n };\n\n return obj;\n }, {} as EntryObject);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAAiC;AACjC,uBAAe;AAEf,mBAA4B;AAE5B,MAAM,EAAE,QAAQ,QAAI,gCAAiB;AACrC,MAAM,EAAE,4BAA4B,IAAI;AAEjC,MAAM,aAAa,MACxB,iBAAAA,QAAG,KAAK,2BAA2B,EAAE,OAAO,CAAC,KAAK,OAAO;AACvD,QAAM,WAAO,0BAAY,EAAE;AAE3B,MAAI,oBAAoB,IAAI,EAAE,IAAI;AAAA,IAChC,QAAQ;AAAA,IACR,UAAU;AAAA,EACZ;AAEA,SAAO;AACT,GAAG,CAAC,CAAgB;","names":["fg"]}
|
package/dist/esm/getEntries.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { getConfiguration } from "@intlayer/config";
|
|
2
|
-
import
|
|
2
|
+
import fg from "fast-glob";
|
|
3
3
|
import { getFileHash } from './utils.mjs';
|
|
4
4
|
const { content } = getConfiguration();
|
|
5
5
|
const { watchedFilesPatternWithPath } = content;
|
|
6
|
-
const getEntries = () => sync(watchedFilesPatternWithPath).reduce((obj, el) => {
|
|
6
|
+
const getEntries = () => fg.sync(watchedFilesPatternWithPath).reduce((obj, el) => {
|
|
7
7
|
const hash = getFileHash(el);
|
|
8
8
|
obj[`intlayer-content/${hash}`] = {
|
|
9
9
|
import: el,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/getEntries.ts"],"sourcesContent":["import { getConfiguration } from '@intlayer/config';\nimport
|
|
1
|
+
{"version":3,"sources":["../../src/getEntries.ts"],"sourcesContent":["import { getConfiguration } from '@intlayer/config';\nimport fg from 'fast-glob';\nimport type { EntryObject } from 'webpack';\nimport { getFileHash } from './utils';\n\nconst { content } = getConfiguration();\nconst { watchedFilesPatternWithPath } = content;\n\nexport const getEntries = (): EntryObject =>\n fg.sync(watchedFilesPatternWithPath).reduce((obj, el) => {\n const hash = getFileHash(el);\n\n obj[`intlayer-content/${hash}`] = {\n import: el,\n dependOn: undefined,\n };\n\n return obj;\n }, {} as EntryObject);\n"],"mappings":"AAAA,SAAS,wBAAwB;AACjC,OAAO,QAAQ;AAEf,SAAS,mBAAmB;AAE5B,MAAM,EAAE,QAAQ,IAAI,iBAAiB;AACrC,MAAM,EAAE,4BAA4B,IAAI;AAEjC,MAAM,aAAa,MACxB,GAAG,KAAK,2BAA2B,EAAE,OAAO,CAAC,KAAK,OAAO;AACvD,QAAM,OAAO,YAAY,EAAE;AAE3B,MAAI,oBAAoB,IAAI,EAAE,IAAI;AAAA,IAChC,QAAQ;AAAA,IACR,UAAU;AAAA,EACZ;AAEA,SAAO;AACT,GAAG,CAAC,CAAgB;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlayer/webpack",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Webpack application for IntLayer - Transpile Intlayer declaration files into dictionaries using webpack.",
|
|
6
6
|
"keywords": [
|
|
@@ -60,13 +60,13 @@
|
|
|
60
60
|
"crypto-js": "^4.2.0",
|
|
61
61
|
"esbuild": "^0.24.0",
|
|
62
62
|
"esbuild-loader": "^4.2.2",
|
|
63
|
-
"glob": "^
|
|
63
|
+
"fast-glob": "^3.3.2",
|
|
64
64
|
"node-loader": "^2.1.0",
|
|
65
65
|
"rimraf": "^6.0.1",
|
|
66
66
|
"webpack": "^5.96.1",
|
|
67
67
|
"webpack-dev-server": "^5.1.0",
|
|
68
|
-
"@intlayer/
|
|
69
|
-
"@intlayer/
|
|
68
|
+
"@intlayer/chokidar": "^3.3.2",
|
|
69
|
+
"@intlayer/config": "^3.3.2"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@changesets/cli": "2.27.9",
|
|
@@ -80,13 +80,13 @@
|
|
|
80
80
|
"typescript": "^5.6.3",
|
|
81
81
|
"@utils/ts-config": "^1.0.4",
|
|
82
82
|
"@utils/ts-config-types": "^1.0.4",
|
|
83
|
-
"@utils/
|
|
84
|
-
"@utils/
|
|
83
|
+
"@utils/eslint-config": "^1.0.4",
|
|
84
|
+
"@utils/tsup-config": "^1.0.4"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
87
|
"webpack": "^5.96.1",
|
|
88
|
-
"@intlayer/chokidar": "^3.
|
|
89
|
-
"@intlayer/config": "^3.
|
|
88
|
+
"@intlayer/chokidar": "^3.3.2",
|
|
89
|
+
"@intlayer/config": "^3.3.2"
|
|
90
90
|
},
|
|
91
91
|
"engines": {
|
|
92
92
|
"node": ">=14.18"
|