@plaudit/webpack-extensions 2.89.0 → 2.89.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
|
@@ -60,6 +60,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
60
60
|
- Legacy PostCSS features that have been integrated into modern CSS
|
|
61
61
|
- `@extends` support
|
|
62
62
|
|
|
63
|
+
## [2.89.1] - 2026-04-06
|
|
64
|
+
### Fixed
|
|
65
|
+
- The emitter for the Extensions v1 format including an extra path element
|
|
66
|
+
|
|
63
67
|
## [2.89.0] - 2026-03-31
|
|
64
68
|
### Changed
|
|
65
69
|
- 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": "2.89.
|
|
3
|
+
"version": "2.89.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.
|
|
31
|
+
"@plaudit/gutenberg-api-extensions": "^2.90.1",
|
|
32
32
|
"@types/browser-sync-webpack-plugin": "^2.2.5",
|
|
33
|
-
"@types/node": "^25.5.
|
|
33
|
+
"@types/node": "^25.5.2",
|
|
34
34
|
"@types/postcss-functions": "^4.0.4",
|
|
35
35
|
"@types/tapable": "^2.3.0",
|
|
36
36
|
"@types/webpack-sources": "^3.2.3",
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"@plaudit/postcss-silent-extend": "^3.0.0",
|
|
47
47
|
"@plaudit/postcss-strip-units": "^3.0.0",
|
|
48
48
|
"@plaudit/postcss-variables": "^1.1.0",
|
|
49
|
-
"@wordpress/dependency-extraction-webpack-plugin": "^6.
|
|
50
|
-
"@wordpress/scripts": "^31.
|
|
49
|
+
"@wordpress/dependency-extraction-webpack-plugin": "^6.43.0",
|
|
50
|
+
"@wordpress/scripts": "^31.8.0",
|
|
51
51
|
"autoprefixer": "^10.4.27",
|
|
52
52
|
"browser-sync": "^3.0.4",
|
|
53
53
|
"copy-webpack-plugin": "10.2.4",
|