@plaudit/webpack-extensions 3.6.0 → 3.6.1

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 CHANGED
@@ -5,6 +5,11 @@ 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.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [3.6.1] - 2026-04-06
9
+ ### Fixed
10
+ - The emitter for the Extensions v1 format including an extra path element
11
+ - This comes from version `2.89.1`
12
+
8
13
  ## [3.6.0] - 2026-03-31
9
14
  ### Changed
10
15
  - The block.json handling logic to use encoded location data in filenames that are enumerated within block.json
@@ -97,6 +102,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
97
102
  - Legacy PostCSS features that have been integrated into modern CSS
98
103
  - `@extends` support
99
104
 
105
+ ## [2.89.1] - 2026-04-06
106
+ ### Fixed
107
+ - The emitter for the Extensions v1 format including an extra path element
108
+
100
109
  ## [2.89.0] - 2026-03-31
101
110
  ### Changed
102
111
  - The block.json handling logic to use encoded location data in filenames that are enumerated within block.json
@@ -20,8 +20,12 @@ class ExtensionsConfigFileGeneratorPluginV1 extends AbstractBiPhasicGroupAndEntr
20
20
  processAssets(compilation, parsedAssetJsonProvider) {
21
21
  const regex = /^(.+?)-((?<prefix>editor-|view-|)(?<type>style|script|script-module))\.(?<extension>css|m?js)$/i;
22
22
  const mapping = {};
23
+ const prefix = this.extensionsDest + node_path_1.default.sep;
23
24
  for (let fileWithAssetData of Object.keys(this.extractRelevantAssetData(compilation, parsedAssetJsonProvider))) {
24
25
  let match;
26
+ if (fileWithAssetData.startsWith(prefix)) {
27
+ fileWithAssetData = fileWithAssetData.substring(prefix.length);
28
+ }
25
29
  if ((match = regex.exec(fileWithAssetData)) && match[1] && match[2]) {
26
30
  if (match.groups?.['type'] === 'style' && match.groups['extension'] !== 'css') {
27
31
  fileWithAssetData = fileWithAssetData.replace(/\.m?js$/i, ".css");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plaudit/webpack-extensions",
3
- "version": "3.6.0",
3
+ "version": "3.6.1",
4
4
  "license": "SEE LICENSE IN LICENSE.md",
5
5
  "files": [
6
6
  "/dist",
@@ -28,9 +28,9 @@
28
28
  }
29
29
  },
30
30
  "devDependencies": {
31
- "@plaudit/gutenberg-api-extensions": "^2.89.0",
31
+ "@plaudit/gutenberg-api-extensions": "^2.90.1",
32
32
  "@types/browser-sync-webpack-plugin": "^2.2.5",
33
- "@types/node": "^25.5.0",
33
+ "@types/node": "^25.5.2",
34
34
  "@types/postcss-functions": "^4.0.4",
35
35
  "@types/postcss-import": "^14.0.3",
36
36
  "@types/tapable": "^2.3.0",
@@ -43,8 +43,8 @@
43
43
  "@plaudit/postcss-color-function": "^5.0.0",
44
44
  "@plaudit/postcss-strip-units": "^3.0.0",
45
45
  "@plaudit/postcss-variables": "^2.0.1",
46
- "@wordpress/dependency-extraction-webpack-plugin": "^6.42.0",
47
- "@wordpress/scripts": "^31.7.0",
46
+ "@wordpress/dependency-extraction-webpack-plugin": "^6.43.0",
47
+ "@wordpress/scripts": "^31.8.0",
48
48
  "autoprefixer": "^10.4.27",
49
49
  "browser-sync": "^3.0.4",
50
50
  "copy-webpack-plugin": "10.2.4",