@wordpress/dependency-extraction-webpack-plugin 5.8.0 → 6.0.0

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/README.md CHANGED
@@ -21,7 +21,7 @@ Install the module
21
21
  npm install @wordpress/dependency-extraction-webpack-plugin --save-dev
22
22
  ```
23
23
 
24
- **Note**: This package requires Node.js 18.0.0 or later. It also requires webpack 5.0.0 or newer. It is not compatible with older versions.
24
+ **Note**: This package requires Node.js version with long-term support status (check [Active LTS or Maintenance LTS releases](https://nodejs.org/en/about/previous-releases)). It also requires webpack 5.0.0 or newer. It is not compatible with older versions.
25
25
 
26
26
  ## Usage
27
27
 
package/lib/util.js CHANGED
@@ -42,6 +42,10 @@ function defaultRequestToExternal( request ) {
42
42
 
43
43
  case 'react-dom':
44
44
  return 'ReactDOM';
45
+
46
+ case 'react/jsx-runtime':
47
+ case 'react/jsx-dev-runtime':
48
+ return 'ReactJSXRuntime';
45
49
  }
46
50
 
47
51
  if ( request.includes( 'react-refresh/runtime' ) ) {
@@ -117,6 +121,9 @@ function defaultRequestToHandle( request ) {
117
121
 
118
122
  case 'lodash-es':
119
123
  return 'lodash';
124
+
125
+ case 'react/jsx-runtime':
126
+ return 'react-jsx-runtime';
120
127
  }
121
128
 
122
129
  if ( request.includes( 'react-refresh/runtime' ) ) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/dependency-extraction-webpack-plugin",
3
- "version": "5.8.0",
3
+ "version": "6.0.0",
4
4
  "description": "Extract WordPress script dependencies from webpack bundles.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -20,7 +20,8 @@
20
20
  "url": "https://github.com/WordPress/gutenberg/issues"
21
21
  },
22
22
  "engines": {
23
- "node": ">=18"
23
+ "node": ">=18.12.0",
24
+ "npm": ">=8.19.2"
24
25
  },
25
26
  "files": [
26
27
  "lib",
@@ -37,5 +38,5 @@
37
38
  "publishConfig": {
38
39
  "access": "public"
39
40
  },
40
- "gitHead": "581d8a5580dba8f600b7268d51eb554771ae482c"
41
+ "gitHead": "2f30cddff15723ac7017fd009fc5913b7b419400"
41
42
  }