@wordpress/dependency-extraction-webpack-plugin 3.3.2 → 3.3.3-next.a55ed9455a.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.
Files changed (2) hide show
  1. package/lib/index.js +6 -6
  2. package/package.json +2 -2
package/lib/index.js CHANGED
@@ -55,12 +55,12 @@ class DependencyExtractionWebpackPlugin {
55
55
  externalizeWpDeps( _context, request, callback ) {
56
56
  let externalRequest;
57
57
 
58
- // Handle via options.requestToExternal first
58
+ // Handle via options.requestToExternal first.
59
59
  if ( typeof this.options.requestToExternal === 'function' ) {
60
60
  externalRequest = this.options.requestToExternal( request );
61
61
  }
62
62
 
63
- // Cascade to default if unhandled and enabled
63
+ // Cascade to default if unhandled and enabled.
64
64
  if (
65
65
  typeof externalRequest === 'undefined' &&
66
66
  this.options.useDefaults
@@ -82,7 +82,7 @@ class DependencyExtractionWebpackPlugin {
82
82
  }
83
83
 
84
84
  mapRequestToDependency( request ) {
85
- // Handle via options.requestToHandle first
85
+ // Handle via options.requestToHandle first.
86
86
  if ( typeof this.options.requestToHandle === 'function' ) {
87
87
  const scriptDependency = this.options.requestToHandle( request );
88
88
  if ( scriptDependency ) {
@@ -90,7 +90,7 @@ class DependencyExtractionWebpackPlugin {
90
90
  }
91
91
  }
92
92
 
93
- // Cascade to default if enabled
93
+ // Cascade to default if enabled.
94
94
  if ( this.options.useDefaults ) {
95
95
  const scriptDependency = defaultRequestToHandle( request );
96
96
  if ( scriptDependency ) {
@@ -98,7 +98,7 @@ class DependencyExtractionWebpackPlugin {
98
98
  }
99
99
  }
100
100
 
101
- // Fall back to the request name
101
+ // Fall back to the request name.
102
102
  return request;
103
103
  }
104
104
 
@@ -189,7 +189,7 @@ class DependencyExtractionWebpackPlugin {
189
189
  : compilation.chunkGraph.getChunkModules( chunk );
190
190
  for ( const chunkModule of modulesIterable ) {
191
191
  processModule( chunkModule );
192
- // loop through submodules of ConcatenatedModule
192
+ // Loop through submodules of ConcatenatedModule.
193
193
  if ( chunkModule.modules ) {
194
194
  for ( const concatModule of chunkModule.modules ) {
195
195
  processModule( concatModule );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/dependency-extraction-webpack-plugin",
3
- "version": "3.3.2",
3
+ "version": "3.3.3-next.a55ed9455a.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",
@@ -38,5 +38,5 @@
38
38
  "publishConfig": {
39
39
  "access": "public"
40
40
  },
41
- "gitHead": "4566ac290359553d04de4eb574545309343f790b"
41
+ "gitHead": "c5108185851b824d531bce55991a3589947e8551"
42
42
  }