@automattic/i18n-loader-webpack-plugin 2.0.54 → 2.0.56
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.56] - 2024-08-29
|
|
9
|
+
### Changed
|
|
10
|
+
- Updated package dependencies. [#39111]
|
|
11
|
+
|
|
12
|
+
## [2.0.55] - 2024-08-21
|
|
13
|
+
### Changed
|
|
14
|
+
- Internal updates.
|
|
15
|
+
|
|
8
16
|
## [2.0.54] - 2024-08-15
|
|
9
17
|
### Changed
|
|
10
18
|
- Updated package dependencies. [#38662]
|
|
@@ -245,6 +253,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
245
253
|
### Added
|
|
246
254
|
- Initial release.
|
|
247
255
|
|
|
256
|
+
[2.0.56]: https://github.com/Automattic/i18n-loader-webpack-plugin/compare/v2.0.55...v2.0.56
|
|
257
|
+
[2.0.55]: https://github.com/Automattic/i18n-loader-webpack-plugin/compare/v2.0.54...v2.0.55
|
|
248
258
|
[2.0.54]: https://github.com/Automattic/i18n-loader-webpack-plugin/compare/v2.0.53...v2.0.54
|
|
249
259
|
[2.0.53]: https://github.com/Automattic/i18n-loader-webpack-plugin/compare/v2.0.52...v2.0.53
|
|
250
260
|
[2.0.52]: https://github.com/Automattic/i18n-loader-webpack-plugin/compare/v2.0.51...v2.0.52
|
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.56",
|
|
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": {
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
"@wordpress/dependency-extraction-webpack-plugin": "6.5.0",
|
|
24
24
|
"@wordpress/i18n": "5.5.0",
|
|
25
25
|
"jest": "29.7.0",
|
|
26
|
-
"webpack": "5.
|
|
26
|
+
"webpack": "5.94.0",
|
|
27
27
|
"webpack-cli": "4.9.1"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"webpack": "^5.
|
|
30
|
+
"webpack": "^5.94.0"
|
|
31
31
|
},
|
|
32
32
|
"exports": {
|
|
33
33
|
".": "./src/I18nLoaderPlugin.js"
|
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();
|