@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.
@@ -5,4 +5,4 @@ function getChunkName(lang) {
5
5
 
6
6
  //#endregion
7
7
  export { getChunkName as t };
8
- //# sourceMappingURL=chunk-name-CW8m_LCZ.mjs.map
8
+ //# sourceMappingURL=chunk-name-CyGZnQAJ.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"chunk-name-CW8m_LCZ.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"}
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"}
@@ -1,3 +1,3 @@
1
- import { t as getChunkName } from "./chunk-name-CW8m_LCZ.mjs";
1
+ import { t as getChunkName } from "./chunk-name-CyGZnQAJ.mjs";
2
2
 
3
3
  export { getChunkName };
package/dist/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- const require_logger = require('./logger-DKeVJKoB.cjs');
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,...rest } = {}) {
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),
@@ -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,WAAY,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"}
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-CiJlVPSB.mjs";
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,...rest } = {}) {
11
+ constructor({ configFile, ...rest } = {}) {
12
12
  trace(`Creating Vocab plugin${configFile ? ` with config file ${configFile}` : ""}`);
13
13
  this.options = {
14
14
  ...resolveConfigSync(configFile),
@@ -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,WAAY,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"}
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
@@ -1,4 +1,4 @@
1
- const require_logger = require('./logger-DKeVJKoB.cjs');
1
+ const require_logger = require('./logger-rOiUqgqu.cjs');
2
2
  const require_chunk_name = require('./chunk-name-C8ocQx-9.cjs');
3
3
  let __vocab_core = require("@vocab/core");
4
4
  let path = require("path");
package/dist/loader.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { n as __require, t as trace } from "./logger-CiJlVPSB.mjs";
2
- import { t as getChunkName } from "./chunk-name-CW8m_LCZ.mjs";
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";
@@ -11,4 +11,4 @@ const trace = debug(`vocab:webpack`);
11
11
 
12
12
  //#endregion
13
13
  export { __require as n, trace as t };
14
- //# sourceMappingURL=logger-CiJlVPSB.mjs.map
14
+ //# sourceMappingURL=logger-Cse01Ceq.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"logger-CiJlVPSB.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"}
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") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
10
- key = keys[i];
11
- if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
12
- get: ((k) => from[k]).bind(null, key),
13
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
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-DKeVJKoB.cjs.map
48
+ //# sourceMappingURL=logger-rOiUqgqu.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"logger-DKeVJKoB.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"}
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
@@ -1,4 +1,4 @@
1
- const require_logger = require('./logger-DKeVJKoB.cjs');
1
+ const require_logger = require('./logger-rOiUqgqu.cjs');
2
2
  let __vocab_core_icu_handler = require("@vocab/core/icu-handler");
3
3
  let __vocab_core_translation_file = require("@vocab/core/translation-file");
4
4
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vocab/webpack",
3
- "version": "1.2.15-rollup-plugin-20251205045501",
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
- "import": "./dist/index.mjs",
15
- "require": "./dist/index.cjs"
14
+ "require": "./dist/index.cjs",
15
+ "import": "./dist/index.mjs"
16
16
  },
17
17
  "./chunk-name": {
18
- "import": "./dist/chunk-name.mjs",
19
- "require": "./dist/chunk-name.cjs"
18
+ "require": "./dist/chunk-name.cjs",
19
+ "import": "./dist/chunk-name.mjs"
20
20
  },
21
21
  "./loader": {
22
- "import": "./dist/loader.mjs",
23
- "require": "./dist/loader.cjs"
22
+ "require": "./dist/loader.cjs",
23
+ "import": "./dist/loader.mjs"
24
24
  },
25
25
  "./web": {
26
- "import": "./dist/web.mjs",
27
- "require": "./dist/web.cjs"
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.0-rollup-plugin-20251205045501",
41
+ "@vocab/core": "^1.7.1-isolate-rolldown-runtime-20251217033548",
42
42
  "virtual-resource-loader": "^2.0.1"
43
43
  },
44
44
  "devDependencies": {