@plaudit/webpack-extensions 2.31.0 → 2.31.2

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.
@@ -7,7 +7,7 @@ interface AdvancedOutputConfig {
7
7
  directoryLayout?: 'blocks' | 'extensions';
8
8
  }
9
9
  type IndividualExternalDepConfig = string | {
10
- import: string;
10
+ import: string | [string, ...string[]];
11
11
  handle: string;
12
12
  };
13
13
  type Externals = {
@@ -263,18 +263,14 @@ function makeDependencyExtractionPlugin(externals) {
263
263
  else if (possibleExternal !== undefined) {
264
264
  return possibleExternal['import'];
265
265
  }
266
- else {
267
- return undefined;
268
- }
266
+ return undefined;
269
267
  },
270
268
  requestToHandle(request) {
271
269
  const possibleExternal = resolvePossibleExternal(request);
272
270
  if (possibleExternal !== undefined && typeof possibleExternal !== 'string') {
273
271
  return possibleExternal.handle;
274
272
  }
275
- else {
276
- return request;
277
- }
273
+ return undefined;
278
274
  }
279
275
  });
280
276
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plaudit/webpack-extensions",
3
- "version": "2.31.0",
3
+ "version": "2.31.2",
4
4
  "scripts": {
5
5
  "prepublishOnly": "rm -rf build && mkdir build && tsc",
6
6
  "build": "tsc",