@vocab/webpack 1.2.15-rollup-plugin-20251205045501 → 1.2.16-isolate-rolldown-runtime-20251217033548
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/{chunk-name-CW8m_LCZ.mjs → chunk-name-CyGZnQAJ.mjs} +1 -1
- package/dist/{chunk-name-CW8m_LCZ.mjs.map → chunk-name-CyGZnQAJ.mjs.map} +1 -1
- package/dist/chunk-name.mjs +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/dist/loader.cjs +1 -1
- package/dist/loader.mjs +2 -2
- package/dist/{logger-CiJlVPSB.mjs → logger-Cse01Ceq.mjs} +1 -1
- package/dist/{logger-CiJlVPSB.mjs.map → logger-Cse01Ceq.mjs.map} +1 -1
- package/dist/{logger-DKeVJKoB.cjs → logger-rOiUqgqu.cjs} +11 -7
- package/dist/{logger-DKeVJKoB.cjs.map → logger-rOiUqgqu.cjs.map} +1 -1
- package/dist/web.cjs +1 -1
- package/package.json +10 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chunk-name-
|
|
1
|
+
{"version":3,"file":"chunk-name-CyGZnQAJ.mjs","names":[],"sources":["../src/chunk-name.ts"],"sourcesContent":["export function getChunkName(lang: string) {\n return `${lang}-translations`;\n}\n"],"mappings":";AAAA,SAAgB,aAAa,MAAc;AACzC,QAAO,GAAG,KAAK"}
|
package/dist/chunk-name.mjs
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_logger = require('./logger-
|
|
1
|
+
const require_logger = require('./logger-rOiUqgqu.cjs');
|
|
2
2
|
let __vocab_core = require("@vocab/core");
|
|
3
3
|
|
|
4
4
|
//#region src/index.ts
|
|
@@ -8,7 +8,7 @@ let __vocab_core = require("@vocab/core");
|
|
|
8
8
|
const compiledVocabFileFilter = __vocab_core.compiledVocabFileFilter;
|
|
9
9
|
var VocabWebpackPlugin = class {
|
|
10
10
|
options;
|
|
11
|
-
constructor({ configFile
|
|
11
|
+
constructor({ configFile, ...rest } = {}) {
|
|
12
12
|
require_logger.trace(`Creating Vocab plugin${configFile ? ` with config file ${configFile}` : ""}`);
|
|
13
13
|
this.options = {
|
|
14
14
|
...(0, __vocab_core.resolveConfigSync)(configFile),
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","names":["_compiledVocabFileFilter"],"sources":["../src/index.ts"],"sourcesContent":["import {\n type UserConfig,\n resolveConfigSync,\n validateConfig,\n compiledVocabFileFilter as _compiledVocabFileFilter,\n} from '@vocab/core';\nimport type { Compiler } from 'webpack';\nimport { trace } from './logger';\n\ninterface UserOptions extends Partial<UserConfig> {\n configFile?: string;\n}\n\n/**\n * @deprecated Import from `@vocab/core` instead\n */\nexport const compiledVocabFileFilter = _compiledVocabFileFilter;\n\nexport class VocabWebpackPlugin {\n options: UserConfig;\n\n constructor({ configFile, ...rest }: UserOptions = {}) {\n trace(\n `Creating Vocab plugin${\n configFile ? ` with config file ${configFile}` : ''\n }`,\n );\n this.options = {\n ...resolveConfigSync(configFile),\n ...rest,\n } as UserConfig;\n\n validateConfig(this.options);\n }\n\n apply(compiler: Compiler) {\n trace(\n `Applying plugin: ${compiler.options.name} (${compiler.options.target})`,\n );\n if (!compiler.options.module) {\n // @ts-expect-error Support for older versions of webpack that may not have module defined at this stage\n compiler.options.module = { rules: [] };\n }\n if (!compiler.options.module.rules) {\n compiler.options.module.rules = [];\n }\n compiler.options.module.rules.splice(0, 0, {\n test: compiledVocabFileFilter,\n loader: require.resolve('@vocab/webpack/loader'),\n options: this.options,\n });\n }\n}\n"],"mappings":";;;;;;;AAgBA,MAAa,0BAA0BA;AAEvC,IAAa,qBAAb,MAAgC;CAC9B;CAEA,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"index.cjs","names":["_compiledVocabFileFilter"],"sources":["../src/index.ts"],"sourcesContent":["import {\n type UserConfig,\n resolveConfigSync,\n validateConfig,\n compiledVocabFileFilter as _compiledVocabFileFilter,\n} from '@vocab/core';\nimport type { Compiler } from 'webpack';\nimport { trace } from './logger';\n\ninterface UserOptions extends Partial<UserConfig> {\n configFile?: string;\n}\n\n/**\n * @deprecated Import from `@vocab/core` instead\n */\nexport const compiledVocabFileFilter = _compiledVocabFileFilter;\n\nexport class VocabWebpackPlugin {\n options: UserConfig;\n\n constructor({ configFile, ...rest }: UserOptions = {}) {\n trace(\n `Creating Vocab plugin${\n configFile ? ` with config file ${configFile}` : ''\n }`,\n );\n this.options = {\n ...resolveConfigSync(configFile),\n ...rest,\n } as UserConfig;\n\n validateConfig(this.options);\n }\n\n apply(compiler: Compiler) {\n trace(\n `Applying plugin: ${compiler.options.name} (${compiler.options.target})`,\n );\n if (!compiler.options.module) {\n // @ts-expect-error Support for older versions of webpack that may not have module defined at this stage\n compiler.options.module = { rules: [] };\n }\n if (!compiler.options.module.rules) {\n compiler.options.module.rules = [];\n }\n compiler.options.module.rules.splice(0, 0, {\n test: compiledVocabFileFilter,\n loader: require.resolve('@vocab/webpack/loader'),\n options: this.options,\n });\n }\n}\n"],"mappings":";;;;;;;AAgBA,MAAa,0BAA0BA;AAEvC,IAAa,qBAAb,MAAgC;CAC9B;CAEA,YAAY,EAAE,YAAY,GAAG,SAAsB,EAAE,EAAE;AACrD,uBACE,wBACE,aAAa,qBAAqB,eAAe,KAEpD;AACD,OAAK,UAAU;GACb,uCAAqB,WAAW;GAChC,GAAG;GACJ;AAED,mCAAe,KAAK,QAAQ;;CAG9B,MAAM,UAAoB;AACxB,uBACE,oBAAoB,SAAS,QAAQ,KAAK,IAAI,SAAS,QAAQ,OAAO,GACvE;AACD,MAAI,CAAC,SAAS,QAAQ,OAEpB,UAAS,QAAQ,SAAS,EAAE,OAAO,EAAE,EAAE;AAEzC,MAAI,CAAC,SAAS,QAAQ,OAAO,MAC3B,UAAS,QAAQ,OAAO,QAAQ,EAAE;AAEpC,WAAS,QAAQ,OAAO,MAAM,OAAO,GAAG,GAAG;GACzC,MAAM;GACN,QAAQ,QAAQ,QAAQ,wBAAwB;GAChD,SAAS,KAAK;GACf,CAAC"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __require, t as trace } from "./logger-
|
|
1
|
+
import { n as __require, t as trace } from "./logger-Cse01Ceq.mjs";
|
|
2
2
|
import { compiledVocabFileFilter as compiledVocabFileFilter$1, resolveConfigSync, validateConfig } from "@vocab/core";
|
|
3
3
|
|
|
4
4
|
//#region src/index.ts
|
|
@@ -8,7 +8,7 @@ import { compiledVocabFileFilter as compiledVocabFileFilter$1, resolveConfigSync
|
|
|
8
8
|
const compiledVocabFileFilter = compiledVocabFileFilter$1;
|
|
9
9
|
var VocabWebpackPlugin = class {
|
|
10
10
|
options;
|
|
11
|
-
constructor({ configFile
|
|
11
|
+
constructor({ configFile, ...rest } = {}) {
|
|
12
12
|
trace(`Creating Vocab plugin${configFile ? ` with config file ${configFile}` : ""}`);
|
|
13
13
|
this.options = {
|
|
14
14
|
...resolveConfigSync(configFile),
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["_compiledVocabFileFilter"],"sources":["../src/index.ts"],"sourcesContent":["import {\n type UserConfig,\n resolveConfigSync,\n validateConfig,\n compiledVocabFileFilter as _compiledVocabFileFilter,\n} from '@vocab/core';\nimport type { Compiler } from 'webpack';\nimport { trace } from './logger';\n\ninterface UserOptions extends Partial<UserConfig> {\n configFile?: string;\n}\n\n/**\n * @deprecated Import from `@vocab/core` instead\n */\nexport const compiledVocabFileFilter = _compiledVocabFileFilter;\n\nexport class VocabWebpackPlugin {\n options: UserConfig;\n\n constructor({ configFile, ...rest }: UserOptions = {}) {\n trace(\n `Creating Vocab plugin${\n configFile ? ` with config file ${configFile}` : ''\n }`,\n );\n this.options = {\n ...resolveConfigSync(configFile),\n ...rest,\n } as UserConfig;\n\n validateConfig(this.options);\n }\n\n apply(compiler: Compiler) {\n trace(\n `Applying plugin: ${compiler.options.name} (${compiler.options.target})`,\n );\n if (!compiler.options.module) {\n // @ts-expect-error Support for older versions of webpack that may not have module defined at this stage\n compiler.options.module = { rules: [] };\n }\n if (!compiler.options.module.rules) {\n compiler.options.module.rules = [];\n }\n compiler.options.module.rules.splice(0, 0, {\n test: compiledVocabFileFilter,\n loader: require.resolve('@vocab/webpack/loader'),\n options: this.options,\n });\n }\n}\n"],"mappings":";;;;;;;AAgBA,MAAa,0BAA0BA;AAEvC,IAAa,qBAAb,MAAgC;CAC9B;CAEA,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["_compiledVocabFileFilter"],"sources":["../src/index.ts"],"sourcesContent":["import {\n type UserConfig,\n resolveConfigSync,\n validateConfig,\n compiledVocabFileFilter as _compiledVocabFileFilter,\n} from '@vocab/core';\nimport type { Compiler } from 'webpack';\nimport { trace } from './logger';\n\ninterface UserOptions extends Partial<UserConfig> {\n configFile?: string;\n}\n\n/**\n * @deprecated Import from `@vocab/core` instead\n */\nexport const compiledVocabFileFilter = _compiledVocabFileFilter;\n\nexport class VocabWebpackPlugin {\n options: UserConfig;\n\n constructor({ configFile, ...rest }: UserOptions = {}) {\n trace(\n `Creating Vocab plugin${\n configFile ? ` with config file ${configFile}` : ''\n }`,\n );\n this.options = {\n ...resolveConfigSync(configFile),\n ...rest,\n } as UserConfig;\n\n validateConfig(this.options);\n }\n\n apply(compiler: Compiler) {\n trace(\n `Applying plugin: ${compiler.options.name} (${compiler.options.target})`,\n );\n if (!compiler.options.module) {\n // @ts-expect-error Support for older versions of webpack that may not have module defined at this stage\n compiler.options.module = { rules: [] };\n }\n if (!compiler.options.module.rules) {\n compiler.options.module.rules = [];\n }\n compiler.options.module.rules.splice(0, 0, {\n test: compiledVocabFileFilter,\n loader: require.resolve('@vocab/webpack/loader'),\n options: this.options,\n });\n }\n}\n"],"mappings":";;;;;;;AAgBA,MAAa,0BAA0BA;AAEvC,IAAa,qBAAb,MAAgC;CAC9B;CAEA,YAAY,EAAE,YAAY,GAAG,SAAsB,EAAE,EAAE;AACrD,QACE,wBACE,aAAa,qBAAqB,eAAe,KAEpD;AACD,OAAK,UAAU;GACb,GAAG,kBAAkB,WAAW;GAChC,GAAG;GACJ;AAED,iBAAe,KAAK,QAAQ;;CAG9B,MAAM,UAAoB;AACxB,QACE,oBAAoB,SAAS,QAAQ,KAAK,IAAI,SAAS,QAAQ,OAAO,GACvE;AACD,MAAI,CAAC,SAAS,QAAQ,OAEpB,UAAS,QAAQ,SAAS,EAAE,OAAO,EAAE,EAAE;AAEzC,MAAI,CAAC,SAAS,QAAQ,OAAO,MAC3B,UAAS,QAAQ,OAAO,QAAQ,EAAE;AAEpC,WAAS,QAAQ,OAAO,MAAM,OAAO,GAAG,GAAG;GACzC,MAAM;GACN,kBAAgB,QAAQ,wBAAwB;GAChD,SAAS,KAAK;GACf,CAAC"}
|
package/dist/loader.cjs
CHANGED
package/dist/loader.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as __require, t as trace } from "./logger-
|
|
2
|
-
import { t as getChunkName } from "./chunk-name-
|
|
1
|
+
import { n as __require, t as trace } from "./logger-Cse01Ceq.mjs";
|
|
2
|
+
import { t as getChunkName } from "./chunk-name-CyGZnQAJ.mjs";
|
|
3
3
|
import { getDevLanguageFileFromTsFile, loadTranslation } from "@vocab/core";
|
|
4
4
|
import path from "path";
|
|
5
5
|
import * as cjsModuleLexer from "cjs-module-lexer";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger-
|
|
1
|
+
{"version":3,"file":"logger-Cse01Ceq.mjs","names":[],"sources":["../src/logger.ts"],"sourcesContent":["import pc from 'picocolors';\nimport debug from 'debug';\n\nexport const trace = debug(`vocab:webpack`);\n\nexport const log = (...params: unknown[]) => {\n // eslint-disable-next-line no-console\n console.log(pc.yellow('Vocab'), ...params);\n};\n"],"mappings":";;;;;;;;;AAGA,MAAa,QAAQ,MAAM,gBAAgB"}
|
|
@@ -6,12 +6,16 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
|
6
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
8
|
var __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from === "object" || typeof from === "function")
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
10
|
+
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
11
|
+
key = keys[i];
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except) {
|
|
13
|
+
__defProp(to, key, {
|
|
14
|
+
get: ((k) => from[k]).bind(null, key),
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
}
|
|
15
19
|
}
|
|
16
20
|
return to;
|
|
17
21
|
};
|
|
@@ -41,4 +45,4 @@ Object.defineProperty(exports, 'trace', {
|
|
|
41
45
|
return trace;
|
|
42
46
|
}
|
|
43
47
|
});
|
|
44
|
-
//# sourceMappingURL=logger-
|
|
48
|
+
//# sourceMappingURL=logger-rOiUqgqu.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger-
|
|
1
|
+
{"version":3,"file":"logger-rOiUqgqu.cjs","names":[],"sources":["../src/logger.ts"],"sourcesContent":["import pc from 'picocolors';\nimport debug from 'debug';\n\nexport const trace = debug(`vocab:webpack`);\n\nexport const log = (...params: unknown[]) => {\n // eslint-disable-next-line no-console\n console.log(pc.yellow('Vocab'), ...params);\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,MAAa,2BAAc,gBAAgB"}
|
package/dist/web.cjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vocab/webpack",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.16-isolate-rolldown-runtime-20251217033548",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/seek-oss/vocab.git",
|
|
@@ -11,20 +11,20 @@
|
|
|
11
11
|
"types": "./dist/index.d.cts",
|
|
12
12
|
"exports": {
|
|
13
13
|
".": {
|
|
14
|
-
"
|
|
15
|
-
"
|
|
14
|
+
"require": "./dist/index.cjs",
|
|
15
|
+
"import": "./dist/index.mjs"
|
|
16
16
|
},
|
|
17
17
|
"./chunk-name": {
|
|
18
|
-
"
|
|
19
|
-
"
|
|
18
|
+
"require": "./dist/chunk-name.cjs",
|
|
19
|
+
"import": "./dist/chunk-name.mjs"
|
|
20
20
|
},
|
|
21
21
|
"./loader": {
|
|
22
|
-
"
|
|
23
|
-
"
|
|
22
|
+
"require": "./dist/loader.cjs",
|
|
23
|
+
"import": "./dist/loader.mjs"
|
|
24
24
|
},
|
|
25
25
|
"./web": {
|
|
26
|
-
"
|
|
27
|
-
"
|
|
26
|
+
"require": "./dist/web.cjs",
|
|
27
|
+
"import": "./dist/web.mjs"
|
|
28
28
|
},
|
|
29
29
|
"./package.json": "./package.json"
|
|
30
30
|
},
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"debug": "^4.3.1",
|
|
39
39
|
"es-module-lexer": "^1.0.0",
|
|
40
40
|
"picocolors": "^1.0.0",
|
|
41
|
-
"@vocab/core": "^1.7.
|
|
41
|
+
"@vocab/core": "^1.7.1-isolate-rolldown-runtime-20251217033548",
|
|
42
42
|
"virtual-resource-loader": "^2.0.1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|