@plaudit/webpack-extensions 2.44.1 → 2.44.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.
@@ -421,9 +421,8 @@ class BlockJSONManagingPlugin {
421
421
  compilation.emitAsset("blockdir.config.php", new webpack_1.sources.RawSource("<?php return "
422
422
  + json_to_php_but_with____injection_1.default.make({ indent: "\t", linebreak: "\n", shortArraySyntax: true })(sortedBlockDirConfigData, "")
423
423
  .replaceAll(/(\n\t*)\[\s+],/gs, "$1[],")
424
- .replaceAll(/\[\n\t+([^\n]+)\n\t+]/gs, "[$1]")
424
+ .replaceAll(/\[\n\t+([^\n]+)\n\t+]/gs, (_, inner) => `[${inner.trim()}]`)
425
425
  .replaceAll(/'rest' => \[\n\t+(\[(?:'[^']+')?]),\n\t+('[^']+')(?:,\n\t+(\[[^\n]+]))?\n\t+]/gs, (_, deps, hash, args) => `'rest' => [${[deps, hash, args].filter(value => !!value).join(", ")}]`)
426
- .replaceAll(/\[\t+]/gs, "[]")
427
426
  + ";"));
428
427
  });
429
428
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plaudit/webpack-extensions",
3
- "version": "2.44.1",
3
+ "version": "2.44.2",
4
4
  "license": "UNLICENSED",
5
5
  "scripts": {
6
6
  "prepublishOnly": "rm -rf build && mkdir build && tsc",