@rushstack/webpack5-localization-plugin 0.12.6 → 0.13.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/CHANGELOG.json CHANGED
@@ -1,6 +1,38 @@
1
1
  {
2
2
  "name": "@rushstack/webpack5-localization-plugin",
3
3
  "entries": [
4
+ {
5
+ "version": "0.13.1",
6
+ "tag": "@rushstack/webpack5-localization-plugin_v0.13.1",
7
+ "date": "Sat, 01 Mar 2025 05:00:09 GMT",
8
+ "comments": {
9
+ "dependency": [
10
+ {
11
+ "comment": "Updating dependency \"@rushstack/localization-utilities\" to `0.13.1`"
12
+ },
13
+ {
14
+ "comment": "Updating dependency \"@rushstack/heft\" to `0.69.2`"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "version": "0.13.0",
21
+ "tag": "@rushstack/webpack5-localization-plugin_v0.13.0",
22
+ "date": "Thu, 27 Feb 2025 16:10:47 GMT",
23
+ "comments": {
24
+ "minor": [
25
+ {
26
+ "comment": "Support passing the `ignoreString` option to all loaders."
27
+ }
28
+ ],
29
+ "dependency": [
30
+ {
31
+ "comment": "Updating dependency \"@rushstack/localization-utilities\" to `0.13.0`"
32
+ }
33
+ ]
34
+ }
35
+ },
4
36
  {
5
37
  "version": "0.12.6",
6
38
  "tag": "@rushstack/webpack5-localization-plugin_v0.12.6",
package/CHANGELOG.md CHANGED
@@ -1,6 +1,18 @@
1
1
  # Change Log - @rushstack/webpack5-localization-plugin
2
2
 
3
- This log was last generated on Thu, 27 Feb 2025 01:10:39 GMT and should not be manually modified.
3
+ This log was last generated on Sat, 01 Mar 2025 05:00:09 GMT and should not be manually modified.
4
+
5
+ ## 0.13.1
6
+ Sat, 01 Mar 2025 05:00:09 GMT
7
+
8
+ _Version update only_
9
+
10
+ ## 0.13.0
11
+ Thu, 27 Feb 2025 16:10:47 GMT
12
+
13
+ ### Minor changes
14
+
15
+ - Support passing the `ignoreString` option to all loaders.
4
16
 
5
17
  ## 0.12.6
6
18
  Thu, 27 Feb 2025 01:10:39 GMT
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.50.1"
8
+ "packageVersion": "7.51.0"
9
9
  }
10
10
  ]
11
11
  }
@@ -1,6 +1,7 @@
1
1
  import type { LoaderContext, LoaderDefinitionFunction } from 'webpack';
2
2
  import type { ILocalizationFile } from '@rushstack/localization-utilities';
3
3
  export interface IBaseLocLoaderOptions {
4
+ ignoreString?: (key: string) => boolean;
4
5
  }
5
6
  export declare function createLoader<T extends IBaseLocLoaderOptions>(parseFile: (content: string, filePath: string, context: LoaderContext<T>) => ILocalizationFile): LoaderDefinitionFunction<T>;
6
7
  //# sourceMappingURL=LoaderFactory.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"LoaderFactory.d.ts","sourceRoot":"","sources":["../../src/loaders/LoaderFactory.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAEvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAI3E,MAAM,WAAW,qBAAqB;CAErC;AAED,wBAAgB,YAAY,CAAC,CAAC,SAAS,qBAAqB,EAC1D,SAAS,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC,KAAK,iBAAiB,GAC7F,wBAAwB,CAAC,CAAC,CAAC,CAiC7B"}
1
+ {"version":3,"file":"LoaderFactory.d.ts","sourceRoot":"","sources":["../../src/loaders/LoaderFactory.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAEvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAI3E,MAAM,WAAW,qBAAqB;IACpC,YAAY,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC;CACzC;AAED,wBAAgB,YAAY,CAAC,CAAC,SAAS,qBAAqB,EAC1D,SAAS,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC,KAAK,iBAAiB,GAC7F,wBAAwB,CAAC,CAAC,CAAC,CAiC7B"}
@@ -1 +1 @@
1
- {"version":3,"file":"LoaderFactory.js","sourceRoot":"","sources":["../../src/loaders/LoaderFactory.ts"],"names":[],"mappings":";AAAA,4FAA4F;AAC5F,2DAA2D;;;AAM3D,8DAAmF;AAMnF,SAAgB,YAAY,CAC1B,SAA8F;IAE9F,sCAAsC;IACtC,MAAM,MAAM,GAAgC,KAAK,WAE/C,OAAe;QAEf,MAAM,WAAW,GAAW,IAAI,CAAC,YAAY,CAAC;QAE9C,MAAM,cAAc,GAAuB,IAAA,sCAAiB,EAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAE7E,MAAM,WAAW,GAAsB,SAAS,CAAC,OAAO,EAAE,WAAW,EAAE,IAAI,CAAC,CAAC;QAE7E,MAAM,OAAO,GAA2B,MAAM,cAAc,CAAC,sBAAsB,CACjF,IAAI,EACJ,WAAW,EACX,WAAW,CACZ,CAAC;QAEF,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,OAAQ,CAAC;QAE/B,QAAQ,IAAI,EAAE,CAAC;YACb,KAAK,MAAM;gBACT,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;YACjC,KAAK,iBAAiB,CAAC;YACvB,KAAK,gBAAgB;gBACnB,OAAO,mBAAmB,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,4BAA4B,CAAC;YAChF;gBACE,IAAI,CAAC,SAAS,CAAC,IAAI,KAAK,CAAC,oCAAoC,IAAI,eAAe,IAAI,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC;gBACtG,OAAO,EAAE,CAAC;QACd,CAAC;IACH,CAAC,CAAC;IAEF,OAAO,MAAM,CAAC;AAChB,CAAC;AAnCD,oCAmCC","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.\n// See LICENSE in the project root for license information.\n\nimport type { LoaderContext, LoaderDefinitionFunction } from 'webpack';\n\nimport type { ILocalizationFile } from '@rushstack/localization-utilities';\n\nimport { getPluginInstance, type LocalizationPlugin } from '../LocalizationPlugin';\n\nexport interface IBaseLocLoaderOptions {\n // Nothing\n}\n\nexport function createLoader<T extends IBaseLocLoaderOptions>(\n parseFile: (content: string, filePath: string, context: LoaderContext<T>) => ILocalizationFile\n): LoaderDefinitionFunction<T> {\n // eslint-disable-next-line func-style\n const loader: LoaderDefinitionFunction<T> = async function (\n this: LoaderContext<T>,\n content: string\n ): Promise<string> {\n const locFilePath: string = this.resourcePath;\n\n const pluginInstance: LocalizationPlugin = getPluginInstance(this._compiler);\n\n const locFileData: ILocalizationFile = parseFile(content, locFilePath, this);\n\n const strings: Record<string, string> = await pluginInstance.addDefaultLocFileAsync(\n this,\n locFilePath,\n locFileData\n );\n\n const { type } = this._module!;\n\n switch (type) {\n case 'json':\n return JSON.stringify(strings);\n case 'javascript/auto':\n case 'javascript/esm':\n return `const strings = ${JSON.stringify(strings)};\\nexport default strings;`;\n default:\n this.emitError(new Error(`Unexpected localized module type ${type} for module ${this.resourcePath}`));\n return '';\n }\n };\n\n return loader;\n}\n"]}
1
+ {"version":3,"file":"LoaderFactory.js","sourceRoot":"","sources":["../../src/loaders/LoaderFactory.ts"],"names":[],"mappings":";AAAA,4FAA4F;AAC5F,2DAA2D;;;AAM3D,8DAAmF;AAMnF,SAAgB,YAAY,CAC1B,SAA8F;IAE9F,sCAAsC;IACtC,MAAM,MAAM,GAAgC,KAAK,WAE/C,OAAe;QAEf,MAAM,WAAW,GAAW,IAAI,CAAC,YAAY,CAAC;QAE9C,MAAM,cAAc,GAAuB,IAAA,sCAAiB,EAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAE7E,MAAM,WAAW,GAAsB,SAAS,CAAC,OAAO,EAAE,WAAW,EAAE,IAAI,CAAC,CAAC;QAE7E,MAAM,OAAO,GAA2B,MAAM,cAAc,CAAC,sBAAsB,CACjF,IAAI,EACJ,WAAW,EACX,WAAW,CACZ,CAAC;QAEF,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,OAAQ,CAAC;QAE/B,QAAQ,IAAI,EAAE,CAAC;YACb,KAAK,MAAM;gBACT,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;YACjC,KAAK,iBAAiB,CAAC;YACvB,KAAK,gBAAgB;gBACnB,OAAO,mBAAmB,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,4BAA4B,CAAC;YAChF;gBACE,IAAI,CAAC,SAAS,CAAC,IAAI,KAAK,CAAC,oCAAoC,IAAI,eAAe,IAAI,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC;gBACtG,OAAO,EAAE,CAAC;QACd,CAAC;IACH,CAAC,CAAC;IAEF,OAAO,MAAM,CAAC;AAChB,CAAC;AAnCD,oCAmCC","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.\n// See LICENSE in the project root for license information.\n\nimport type { LoaderContext, LoaderDefinitionFunction } from 'webpack';\n\nimport type { ILocalizationFile } from '@rushstack/localization-utilities';\n\nimport { getPluginInstance, type LocalizationPlugin } from '../LocalizationPlugin';\n\nexport interface IBaseLocLoaderOptions {\n ignoreString?: (key: string) => boolean;\n}\n\nexport function createLoader<T extends IBaseLocLoaderOptions>(\n parseFile: (content: string, filePath: string, context: LoaderContext<T>) => ILocalizationFile\n): LoaderDefinitionFunction<T> {\n // eslint-disable-next-line func-style\n const loader: LoaderDefinitionFunction<T> = async function (\n this: LoaderContext<T>,\n content: string\n ): Promise<string> {\n const locFilePath: string = this.resourcePath;\n\n const pluginInstance: LocalizationPlugin = getPluginInstance(this._compiler);\n\n const locFileData: ILocalizationFile = parseFile(content, locFilePath, this);\n\n const strings: Record<string, string> = await pluginInstance.addDefaultLocFileAsync(\n this,\n locFilePath,\n locFileData\n );\n\n const { type } = this._module!;\n\n switch (type) {\n case 'json':\n return JSON.stringify(strings);\n case 'javascript/auto':\n case 'javascript/esm':\n return `const strings = ${JSON.stringify(strings)};\\nexport default strings;`;\n default:\n this.emitError(new Error(`Unexpected localized module type ${type} for module ${this.resourcePath}`));\n return '';\n }\n };\n\n return loader;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"locjson-loader.d.ts","sourceRoot":"","sources":["../../src/loaders/locjson-loader.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAiB,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAGvE,OAAO,EAAgB,KAAK,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAE3E,QAAA,MAAM,MAAM,EAAE,wBAAwB,CAAC,qBAAqB,CAO3D,CAAC;AAEF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"locjson-loader.d.ts","sourceRoot":"","sources":["../../src/loaders/locjson-loader.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAiB,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAGvE,OAAO,EAAgB,KAAK,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAE3E,QAAA,MAAM,MAAM,EAAE,wBAAwB,CAAC,qBAAqB,CAQ3D,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -7,7 +7,8 @@ const LoaderFactory_1 = require("./LoaderFactory");
7
7
  const loader = (0, LoaderFactory_1.createLoader)((content, filePath, context) => {
8
8
  return (0, localization_utilities_1.parseLocJson)({
9
9
  content,
10
- filePath
10
+ filePath,
11
+ ignoreString: context.getOptions().ignoreString
11
12
  });
12
13
  });
13
14
  exports.default = loader;
@@ -1 +1 @@
1
- {"version":3,"file":"locjson-loader.js","sourceRoot":"","sources":["../../src/loaders/locjson-loader.ts"],"names":[],"mappings":";AAAA,4FAA4F;AAC5F,2DAA2D;;AAG3D,8EAAiE;AAEjE,mDAA2E;AAE3E,MAAM,MAAM,GAAoD,IAAA,4BAAY,EAC1E,CAAC,OAAe,EAAE,QAAgB,EAAE,OAA6C,EAAE,EAAE;IACnF,OAAO,IAAA,qCAAY,EAAC;QAClB,OAAO;QACP,QAAQ;KACT,CAAC,CAAC;AACL,CAAC,CACF,CAAC;AAEF,kBAAe,MAAM,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.\n// See LICENSE in the project root for license information.\n\nimport type { LoaderContext, LoaderDefinitionFunction } from 'webpack';\nimport { parseLocJson } from '@rushstack/localization-utilities';\n\nimport { createLoader, type IBaseLocLoaderOptions } from './LoaderFactory';\n\nconst loader: LoaderDefinitionFunction<IBaseLocLoaderOptions> = createLoader(\n (content: string, filePath: string, context: LoaderContext<IBaseLocLoaderOptions>) => {\n return parseLocJson({\n content,\n filePath\n });\n }\n);\n\nexport default loader;\n"]}
1
+ {"version":3,"file":"locjson-loader.js","sourceRoot":"","sources":["../../src/loaders/locjson-loader.ts"],"names":[],"mappings":";AAAA,4FAA4F;AAC5F,2DAA2D;;AAG3D,8EAAiE;AAEjE,mDAA2E;AAE3E,MAAM,MAAM,GAAoD,IAAA,4BAAY,EAC1E,CAAC,OAAe,EAAE,QAAgB,EAAE,OAA6C,EAAE,EAAE;IACnF,OAAO,IAAA,qCAAY,EAAC;QAClB,OAAO;QACP,QAAQ;QACR,YAAY,EAAE,OAAO,CAAC,UAAU,EAAE,CAAC,YAAY;KAChD,CAAC,CAAC;AACL,CAAC,CACF,CAAC;AAEF,kBAAe,MAAM,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.\n// See LICENSE in the project root for license information.\n\nimport type { LoaderContext, LoaderDefinitionFunction } from 'webpack';\nimport { parseLocJson } from '@rushstack/localization-utilities';\n\nimport { createLoader, type IBaseLocLoaderOptions } from './LoaderFactory';\n\nconst loader: LoaderDefinitionFunction<IBaseLocLoaderOptions> = createLoader(\n (content: string, filePath: string, context: LoaderContext<IBaseLocLoaderOptions>) => {\n return parseLocJson({\n content,\n filePath,\n ignoreString: context.getOptions().ignoreString\n });\n }\n);\n\nexport default loader;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"resjson-loader.d.ts","sourceRoot":"","sources":["../../src/loaders/resjson-loader.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAiB,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAGvE,OAAO,EAAgB,KAAK,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAE3E,QAAA,MAAM,MAAM,EAAE,wBAAwB,CAAC,qBAAqB,CAO3D,CAAC;AAEF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"resjson-loader.d.ts","sourceRoot":"","sources":["../../src/loaders/resjson-loader.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAiB,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAGvE,OAAO,EAAgB,KAAK,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAE3E,QAAA,MAAM,MAAM,EAAE,wBAAwB,CAAC,qBAAqB,CAQ3D,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -7,7 +7,8 @@ const LoaderFactory_1 = require("./LoaderFactory");
7
7
  const loader = (0, LoaderFactory_1.createLoader)((content, filePath, context) => {
8
8
  return (0, localization_utilities_1.parseResJson)({
9
9
  content,
10
- filePath
10
+ filePath,
11
+ ignoreString: context.getOptions().ignoreString
11
12
  });
12
13
  });
13
14
  exports.default = loader;
@@ -1 +1 @@
1
- {"version":3,"file":"resjson-loader.js","sourceRoot":"","sources":["../../src/loaders/resjson-loader.ts"],"names":[],"mappings":";AAAA,4FAA4F;AAC5F,2DAA2D;;AAG3D,8EAAiE;AAEjE,mDAA2E;AAE3E,MAAM,MAAM,GAAoD,IAAA,4BAAY,EAC1E,CAAC,OAAe,EAAE,QAAgB,EAAE,OAA6C,EAAE,EAAE;IACnF,OAAO,IAAA,qCAAY,EAAC;QAClB,OAAO;QACP,QAAQ;KACT,CAAC,CAAC;AACL,CAAC,CACF,CAAC;AAEF,kBAAe,MAAM,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.\n// See LICENSE in the project root for license information.\n\nimport type { LoaderContext, LoaderDefinitionFunction } from 'webpack';\nimport { parseResJson } from '@rushstack/localization-utilities';\n\nimport { createLoader, type IBaseLocLoaderOptions } from './LoaderFactory';\n\nconst loader: LoaderDefinitionFunction<IBaseLocLoaderOptions> = createLoader(\n (content: string, filePath: string, context: LoaderContext<IBaseLocLoaderOptions>) => {\n return parseResJson({\n content,\n filePath\n });\n }\n);\n\nexport default loader;\n"]}
1
+ {"version":3,"file":"resjson-loader.js","sourceRoot":"","sources":["../../src/loaders/resjson-loader.ts"],"names":[],"mappings":";AAAA,4FAA4F;AAC5F,2DAA2D;;AAG3D,8EAAiE;AAEjE,mDAA2E;AAE3E,MAAM,MAAM,GAAoD,IAAA,4BAAY,EAC1E,CAAC,OAAe,EAAE,QAAgB,EAAE,OAA6C,EAAE,EAAE;IACnF,OAAO,IAAA,qCAAY,EAAC;QAClB,OAAO;QACP,QAAQ;QACR,YAAY,EAAE,OAAO,CAAC,UAAU,EAAE,CAAC,YAAY;KAChD,CAAC,CAAC;AACL,CAAC,CACF,CAAC;AAEF,kBAAe,MAAM,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.\n// See LICENSE in the project root for license information.\n\nimport type { LoaderContext, LoaderDefinitionFunction } from 'webpack';\nimport { parseResJson } from '@rushstack/localization-utilities';\n\nimport { createLoader, type IBaseLocLoaderOptions } from './LoaderFactory';\n\nconst loader: LoaderDefinitionFunction<IBaseLocLoaderOptions> = createLoader(\n (content: string, filePath: string, context: LoaderContext<IBaseLocLoaderOptions>) => {\n return parseResJson({\n content,\n filePath,\n ignoreString: context.getOptions().ignoreString\n });\n }\n);\n\nexport default loader;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"resx-loader.d.ts","sourceRoot":"","sources":["../../src/loaders/resx-loader.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAiB,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAGvE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAKlE,QAAA,MAAM,MAAM,EAAE,wBAAwB,CAAC,qBAAqB,CAa3D,CAAC;AAEF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"resx-loader.d.ts","sourceRoot":"","sources":["../../src/loaders/resx-loader.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAiB,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAGvE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAKlE,QAAA,MAAM,MAAM,EAAE,wBAAwB,CAAC,qBAAqB,CAc3D,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -14,7 +14,8 @@ const loader = (0, LoaderFactory_1.createLoader)((content, filePath, context) =>
14
14
  filePath,
15
15
  terminal,
16
16
  resxNewlineNormalization: options.resxNewlineNormalization,
17
- ignoreMissingResxComments: !options.ignoreMissingResxComments
17
+ ignoreMissingResxComments: !options.ignoreMissingResxComments,
18
+ ignoreString: options.ignoreString
18
19
  });
19
20
  });
20
21
  exports.default = loader;
@@ -1 +1 @@
1
- {"version":3,"file":"resx-loader.js","sourceRoot":"","sources":["../../src/loaders/resx-loader.ts"],"names":[],"mappings":";AAAA,4FAA4F;AAC5F,2DAA2D;;AAG3D,kDAA+C;AAC/C,8EAA8D;AAG9D,mDAA+C;AAC/C,gFAA6E;AAE7E,MAAM,MAAM,GAAoD,IAAA,4BAAY,EAC1E,CAAC,OAAe,EAAE,QAAgB,EAAE,OAA6C,EAAE,EAAE;IACnF,MAAM,OAAO,GAA0B,OAAO,CAAC,UAAU,EAAE,CAAC;IAC5D,MAAM,QAAQ,GAAa,IAAI,mBAAQ,CAAC,+CAAsB,CAAC,4BAA4B,CAAC,OAAO,CAAC,CAAC,CAAC;IAEtG,OAAO,IAAA,kCAAS,EAAC;QACf,OAAO;QACP,QAAQ;QACR,QAAQ;QACR,wBAAwB,EAAE,OAAO,CAAC,wBAAwB;QAC1D,yBAAyB,EAAE,CAAC,OAAO,CAAC,yBAAyB;KAC9D,CAAC,CAAC;AACL,CAAC,CACF,CAAC;AAEF,kBAAe,MAAM,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.\n// See LICENSE in the project root for license information.\n\nimport type { LoaderContext, LoaderDefinitionFunction } from 'webpack';\nimport { Terminal } from '@rushstack/terminal';\nimport { parseResx } from '@rushstack/localization-utilities';\nimport type { IResxLocLoaderOptions } from './IResxLoaderOptions';\n\nimport { createLoader } from './LoaderFactory';\nimport { LoaderTerminalProvider } from '../utilities/LoaderTerminalProvider';\n\nconst loader: LoaderDefinitionFunction<IResxLocLoaderOptions> = createLoader(\n (content: string, filePath: string, context: LoaderContext<IResxLocLoaderOptions>) => {\n const options: IResxLocLoaderOptions = context.getOptions();\n const terminal: Terminal = new Terminal(LoaderTerminalProvider.getTerminalProviderForLoader(context));\n\n return parseResx({\n content,\n filePath,\n terminal,\n resxNewlineNormalization: options.resxNewlineNormalization,\n ignoreMissingResxComments: !options.ignoreMissingResxComments\n });\n }\n);\n\nexport default loader;\n"]}
1
+ {"version":3,"file":"resx-loader.js","sourceRoot":"","sources":["../../src/loaders/resx-loader.ts"],"names":[],"mappings":";AAAA,4FAA4F;AAC5F,2DAA2D;;AAG3D,kDAA+C;AAC/C,8EAA8D;AAG9D,mDAA+C;AAC/C,gFAA6E;AAE7E,MAAM,MAAM,GAAoD,IAAA,4BAAY,EAC1E,CAAC,OAAe,EAAE,QAAgB,EAAE,OAA6C,EAAE,EAAE;IACnF,MAAM,OAAO,GAA0B,OAAO,CAAC,UAAU,EAAE,CAAC;IAC5D,MAAM,QAAQ,GAAa,IAAI,mBAAQ,CAAC,+CAAsB,CAAC,4BAA4B,CAAC,OAAO,CAAC,CAAC,CAAC;IAEtG,OAAO,IAAA,kCAAS,EAAC;QACf,OAAO;QACP,QAAQ;QACR,QAAQ;QACR,wBAAwB,EAAE,OAAO,CAAC,wBAAwB;QAC1D,yBAAyB,EAAE,CAAC,OAAO,CAAC,yBAAyB;QAC7D,YAAY,EAAE,OAAO,CAAC,YAAY;KACnC,CAAC,CAAC;AACL,CAAC,CACF,CAAC;AAEF,kBAAe,MAAM,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.\n// See LICENSE in the project root for license information.\n\nimport type { LoaderContext, LoaderDefinitionFunction } from 'webpack';\nimport { Terminal } from '@rushstack/terminal';\nimport { parseResx } from '@rushstack/localization-utilities';\nimport type { IResxLocLoaderOptions } from './IResxLoaderOptions';\n\nimport { createLoader } from './LoaderFactory';\nimport { LoaderTerminalProvider } from '../utilities/LoaderTerminalProvider';\n\nconst loader: LoaderDefinitionFunction<IResxLocLoaderOptions> = createLoader(\n (content: string, filePath: string, context: LoaderContext<IResxLocLoaderOptions>) => {\n const options: IResxLocLoaderOptions = context.getOptions();\n const terminal: Terminal = new Terminal(LoaderTerminalProvider.getTerminalProviderForLoader(context));\n\n return parseResx({\n content,\n filePath,\n terminal,\n resxNewlineNormalization: options.resxNewlineNormalization,\n ignoreMissingResxComments: !options.ignoreMissingResxComments,\n ignoreString: options.ignoreString\n });\n }\n);\n\nexport default loader;\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rushstack/webpack5-localization-plugin",
3
- "version": "0.12.6",
3
+ "version": "0.13.1",
4
4
  "description": "This plugin facilitates localization with Webpack.",
5
5
  "main": "lib/index.js",
6
6
  "typings": "dist/webpack5-localization-plugin.d.ts",
@@ -15,14 +15,14 @@
15
15
  "@types/node": "*"
16
16
  },
17
17
  "dependencies": {
18
- "@rushstack/node-core-library": "5.11.0",
19
- "@rushstack/localization-utilities": "0.12.24",
20
- "@rushstack/terminal": "0.15.0"
18
+ "@rushstack/localization-utilities": "0.13.1",
19
+ "@rushstack/terminal": "0.15.0",
20
+ "@rushstack/node-core-library": "5.11.0"
21
21
  },
22
22
  "devDependencies": {
23
23
  "memfs": "4.12.0",
24
24
  "webpack": "~5.95.0",
25
- "@rushstack/heft": "0.69.1",
25
+ "@rushstack/heft": "0.69.2",
26
26
  "local-node-rig": "1.0.0"
27
27
  },
28
28
  "peerDependenciesMeta": {