@automattic/i18n-loader-webpack-plugin 2.0.53 → 2.0.55
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.md +10 -0
- package/package.json +3 -3
- package/src/I18nLoaderPlugin.js +1 -1
- package/src/I18nLoaderRuntimeModule.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [2.0.55] - 2024-08-21
|
|
9
|
+
### Changed
|
|
10
|
+
- Internal updates.
|
|
11
|
+
|
|
12
|
+
## [2.0.54] - 2024-08-15
|
|
13
|
+
### Changed
|
|
14
|
+
- Updated package dependencies. [#38662]
|
|
15
|
+
|
|
8
16
|
## [2.0.53] - 2024-07-03
|
|
9
17
|
### Changed
|
|
10
18
|
- Updated package dependencies. [#38132]
|
|
@@ -241,6 +249,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
241
249
|
### Added
|
|
242
250
|
- Initial release.
|
|
243
251
|
|
|
252
|
+
[2.0.55]: https://github.com/Automattic/i18n-loader-webpack-plugin/compare/v2.0.54...v2.0.55
|
|
253
|
+
[2.0.54]: https://github.com/Automattic/i18n-loader-webpack-plugin/compare/v2.0.53...v2.0.54
|
|
244
254
|
[2.0.53]: https://github.com/Automattic/i18n-loader-webpack-plugin/compare/v2.0.52...v2.0.53
|
|
245
255
|
[2.0.52]: https://github.com/Automattic/i18n-loader-webpack-plugin/compare/v2.0.51...v2.0.52
|
|
246
256
|
[2.0.51]: https://github.com/Automattic/i18n-loader-webpack-plugin/compare/v2.0.50...v2.0.51
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automattic/i18n-loader-webpack-plugin",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.55",
|
|
4
4
|
"description": "A Webpack plugin to load WordPress i18n when Webpack lazy-loads a bundle.",
|
|
5
5
|
"homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/js-packages/i18n-loader-webpack-plugin/#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"debug": "^4.3.2"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@wordpress/dependency-extraction-webpack-plugin": "5.
|
|
24
|
-
"@wordpress/i18n": "5.
|
|
23
|
+
"@wordpress/dependency-extraction-webpack-plugin": "6.5.0",
|
|
24
|
+
"@wordpress/i18n": "5.5.0",
|
|
25
25
|
"jest": "29.7.0",
|
|
26
26
|
"webpack": "5.76.0",
|
|
27
27
|
"webpack-cli": "4.9.1"
|
package/src/I18nLoaderPlugin.js
CHANGED
|
@@ -148,7 +148,7 @@ class I18nLoaderPlugin {
|
|
|
148
148
|
/**
|
|
149
149
|
* Fetch stuff we need for the various callbacks.
|
|
150
150
|
*
|
|
151
|
-
* @
|
|
151
|
+
* @return {object} Stuff.
|
|
152
152
|
*/
|
|
153
153
|
function getStuff() {
|
|
154
154
|
const loaderModule = compilation.moduleGraph.getModule( loaderModuleDep );
|
|
@@ -21,7 +21,7 @@ class I18nLoaderRuntimeModule extends webpack.RuntimeModule {
|
|
|
21
21
|
* Get the path for a chunk.
|
|
22
22
|
*
|
|
23
23
|
* @param {webpack.Chunk} chunk - Chunk.
|
|
24
|
-
* @
|
|
24
|
+
* @return {string} Chunk path
|
|
25
25
|
*/
|
|
26
26
|
getChunkPath( chunk ) {
|
|
27
27
|
const compilation = this.compilation;
|
|
@@ -44,7 +44,7 @@ class I18nLoaderRuntimeModule extends webpack.RuntimeModule {
|
|
|
44
44
|
/**
|
|
45
45
|
* Get set of chunks we need to care about.
|
|
46
46
|
*
|
|
47
|
-
* @
|
|
47
|
+
* @return {Set} Chunk IDs.
|
|
48
48
|
*/
|
|
49
49
|
getChunks() {
|
|
50
50
|
const ret = new Set();
|