@automattic/i18n-loader-webpack-plugin 2.0.28 → 2.0.30
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 +2 -3
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.30] - 2023-04-04
|
|
9
|
+
### Changed
|
|
10
|
+
- Updated package dependencies. [#29854]
|
|
11
|
+
|
|
12
|
+
## [2.0.29] - 2023-03-23
|
|
13
|
+
### Changed
|
|
14
|
+
- Updated package dependencies.
|
|
15
|
+
|
|
8
16
|
## [2.0.28] - 2023-03-20
|
|
9
17
|
### Changed
|
|
10
18
|
- Updated package dependencies. [#29471]
|
|
@@ -140,6 +148,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
140
148
|
### Added
|
|
141
149
|
- Initial release.
|
|
142
150
|
|
|
151
|
+
[2.0.30]: https://github.com/Automattic/i18n-loader-webpack-plugin/compare/v2.0.29...v2.0.30
|
|
152
|
+
[2.0.29]: https://github.com/Automattic/i18n-loader-webpack-plugin/compare/v2.0.28...v2.0.29
|
|
143
153
|
[2.0.28]: https://github.com/Automattic/i18n-loader-webpack-plugin/compare/v2.0.27...v2.0.28
|
|
144
154
|
[2.0.27]: https://github.com/Automattic/i18n-loader-webpack-plugin/compare/v2.0.26...v2.0.27
|
|
145
155
|
[2.0.26]: https://github.com/Automattic/i18n-loader-webpack-plugin/compare/v2.0.25...v2.0.26
|
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.30",
|
|
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": "4.
|
|
24
|
-
"@wordpress/i18n": "4.
|
|
23
|
+
"@wordpress/dependency-extraction-webpack-plugin": "4.13.0",
|
|
24
|
+
"@wordpress/i18n": "4.30.0",
|
|
25
25
|
"jest": "29.4.3",
|
|
26
26
|
"webpack": "5.76.0",
|
|
27
27
|
"webpack-cli": "4.9.1"
|
package/src/I18nLoaderPlugin.js
CHANGED
|
@@ -89,9 +89,8 @@ class I18nLoaderPlugin {
|
|
|
89
89
|
};
|
|
90
90
|
|
|
91
91
|
if ( options.ignoreModules ) {
|
|
92
|
-
const filters = (
|
|
93
|
-
? options.ignoreModules
|
|
94
|
-
: [ options.ignoreModules ]
|
|
92
|
+
const filters = (
|
|
93
|
+
Array.isArray( options.ignoreModules ) ? options.ignoreModules : [ options.ignoreModules ]
|
|
95
94
|
).map( filter => {
|
|
96
95
|
if ( typeof filter === 'string' ) {
|
|
97
96
|
return request => request === filter;
|