@plaudit/webpack-extensions 3.18.0 → 3.19.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.
- package/CHANGELOG.md +9 -0
- package/dist/shared.d.ts +11 -11
- package/dist/utils/location-encoding-filename-parser.d.ts +2 -2
- package/dist/wordpress-ports/dependency-extraction-webpack-plugin/index.d.ts +1 -1
- package/dist/wordpress-ports/dependency-extraction-webpack-plugin/index.js +1 -5
- package/dist/wordpress-ports/dependency-extraction-webpack-plugin/util.js +1 -0
- package/dist/wordpress-scripts-wrapper.d.ts +1 -1
- package/package.json +7 -7
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.19.0] - 2026-08-18
|
|
9
|
+
### Added
|
|
10
|
+
- Automatic sync of WordPress's bundled packages list
|
|
11
|
+
- This comes from version `2.98.0`
|
|
12
|
+
|
|
8
13
|
## [3.18.0] - 2026-08-18
|
|
9
14
|
### Added
|
|
10
15
|
- David's improvements to build pipeline efficiency (Credit: David)
|
|
@@ -275,6 +280,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
275
280
|
- Legacy PostCSS features that have been integrated into modern CSS
|
|
276
281
|
- `@extends` support
|
|
277
282
|
|
|
283
|
+
## [2.98.0] - 2026-08-18
|
|
284
|
+
### Added
|
|
285
|
+
- Automatic sync of WordPress's bundled packages list
|
|
286
|
+
|
|
278
287
|
## [2.97.0] - 2026-08-18
|
|
279
288
|
### Added
|
|
280
289
|
- David's improvements to build pipeline efficiency
|
package/dist/shared.d.ts
CHANGED
|
@@ -166,30 +166,30 @@ export declare function shouldWriteDistDev(config: Pick<PlauditWordpressWebpackC
|
|
|
166
166
|
*/
|
|
167
167
|
export declare function isDistDevOutputPath(outputPath: string): boolean;
|
|
168
168
|
export declare function applyStandards(config: PlauditWordpressWebpackConfig): {
|
|
169
|
-
readonly standard?:
|
|
169
|
+
readonly standard?: '2026-03-13';
|
|
170
170
|
readonly standaloneBlocks?: boolean;
|
|
171
171
|
readonly variables?: Record<string, any>;
|
|
172
172
|
readonly verbose?: boolean;
|
|
173
173
|
readonly src?: string[] | SourcesObject;
|
|
174
|
-
readonly stats?: Configuration[
|
|
174
|
+
readonly stats?: Configuration['stats'];
|
|
175
175
|
readonly postcss?: {
|
|
176
|
-
functions?: (variables: (name: string) => unknown) => PostcssFunctionsOptions[
|
|
176
|
+
functions?: (variables: (name: string) => unknown) => PostcssFunctionsOptions['functions'];
|
|
177
177
|
};
|
|
178
178
|
readonly externals?: Externals;
|
|
179
179
|
readonly assumeGlobalizedPlauditLibraries?: boolean;
|
|
180
|
-
useWebpackResourceFiltering?: boolean;
|
|
181
|
-
outputDir?: string;
|
|
182
|
-
extensionsVersion?: 1 | 2 | 3;
|
|
183
180
|
readonly targetHandlePrefix?: string;
|
|
184
|
-
plainEntrypointsVersion?: 1 | 2;
|
|
185
|
-
srcDir?: string;
|
|
186
181
|
readonly srcPrefixes?: string[];
|
|
187
|
-
useUnifiedLoader?: boolean;
|
|
188
182
|
readonly includePostInitFallback?: boolean;
|
|
189
183
|
readonly omitDistDev?: boolean;
|
|
190
|
-
onlyRunPostCSSOnPCSS?: boolean;
|
|
191
184
|
readonly targetNamespace?: string;
|
|
192
185
|
readonly useBlockSupportsAsThemeJsonDefaults?: boolean;
|
|
186
|
+
useWebpackResourceFiltering?: boolean | undefined;
|
|
187
|
+
extensionsVersion?: 1 | 2 | 3 | undefined;
|
|
188
|
+
plainEntrypointsVersion?: 1 | 2 | undefined;
|
|
189
|
+
srcDir?: string | undefined;
|
|
190
|
+
outputDir?: string | undefined;
|
|
191
|
+
useUnifiedLoader?: boolean | undefined;
|
|
192
|
+
onlyRunPostCSSOnPCSS?: boolean | undefined;
|
|
193
193
|
};
|
|
194
194
|
export declare function resolveStandard(standard: PlauditWordpressWebpackConfig['standard']): {
|
|
195
195
|
readonly useWebpackResourceFiltering: true;
|
|
@@ -232,7 +232,7 @@ export declare const scriptExtension: RegExp;
|
|
|
232
232
|
export declare const scriptWithoutModuleExtension: RegExp;
|
|
233
233
|
export declare const scriptWithModuleExtension: RegExp;
|
|
234
234
|
export declare const styleExtension: RegExp;
|
|
235
|
-
export declare function scriptOrStyleTest(entryPath: string, scriptExtension: RegExp): "
|
|
235
|
+
export declare function scriptOrStyleTest(entryPath: string, scriptExtension: RegExp): "" | "script" | "style";
|
|
236
236
|
export declare function isStyleField(field: string): field is 'style' | 'viewStyle' | 'editorStyle';
|
|
237
237
|
export declare function isScriptModuleField(field: string): field is 'viewScriptModule';
|
|
238
238
|
export declare function mergeModuleDependencyArrays(a: WPModuleDependency[] | undefined, b: WPModuleDependency[] | undefined): WPModuleDependency[] | undefined;
|
|
@@ -22,9 +22,9 @@ export declare function parseLocationEncodingFilenameForBlock(filename: string,
|
|
|
22
22
|
* @param segment
|
|
23
23
|
*/
|
|
24
24
|
export declare function extractLocationFromPropertyEncodingFilenameSegment(segment: string): {
|
|
25
|
-
readonly locationName: "
|
|
25
|
+
readonly locationName: "admin" | "analytics" | "blockAssets" | "clientEditor" | "clientView" | "customizer" | "login" | "register";
|
|
26
26
|
readonly priority: number | true;
|
|
27
27
|
} | {
|
|
28
|
-
readonly locationName: false;
|
|
29
28
|
readonly priority?: undefined;
|
|
29
|
+
readonly locationName: false;
|
|
30
30
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import LegacyDependencyExtractionWebpackPlugin from "@wordpress/dependency-extraction-webpack-plugin";
|
|
1
|
+
import type LegacyDependencyExtractionWebpackPlugin from "@wordpress/dependency-extraction-webpack-plugin";
|
|
2
2
|
import { Compilation, Compiler, Module, type TemplatePath } from "webpack";
|
|
3
3
|
export interface EnhancedDependencyExtractionWebpackPluginOptions {
|
|
4
4
|
injectPolyfill?: boolean;
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.EnhancedDependencyExtractionWebpackPlugin = void 0;
|
|
7
|
-
const dependency_extraction_webpack_plugin_1 = __importDefault(require("@wordpress/dependency-extraction-webpack-plugin"));
|
|
8
4
|
const webpack_1 = require("webpack");
|
|
9
5
|
/**
|
|
10
6
|
* Internal dependencies
|
|
@@ -34,7 +30,7 @@ class EnhancedDependencyExtractionWebpackPlugin {
|
|
|
34
30
|
*/
|
|
35
31
|
useModules = false;
|
|
36
32
|
constructor(options) {
|
|
37
|
-
if (options
|
|
33
|
+
if (typeof options === 'object' && options?.constructor?.name === 'DependencyExtractionWebpackPlugin') {
|
|
38
34
|
options = options.options;
|
|
39
35
|
}
|
|
40
36
|
if (options instanceof EnhancedDependencyExtractionWebpackPlugin) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { PlauditWordpressWebpackConfig } from "./shared";
|
|
2
2
|
import type { Configuration } from "webpack";
|
|
3
|
-
declare const _default: (config: PlauditWordpressWebpackConfig, webpackConfig?: Configuration[] | Configuration) => Configuration[];
|
|
4
3
|
export = _default;
|
|
4
|
+
declare function _default(config: PlauditWordpressWebpackConfig, webpackConfig?: Configuration[] | Configuration): Configuration[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plaudit/webpack-extensions",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.19.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -34,12 +34,13 @@
|
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@plaudit/dev-webpack-plugin": "^1.0.1",
|
|
36
36
|
"@plaudit/gutenberg-api-extensions": "^2.98.2",
|
|
37
|
-
"@types/jsdom": "^
|
|
38
|
-
"@types/node": "^
|
|
37
|
+
"@types/jsdom": "^30.0.0",
|
|
38
|
+
"@types/node": "^26.2.0",
|
|
39
39
|
"@types/postcss-functions": "^4.0.4",
|
|
40
40
|
"@types/postcss-import": "^14.0.3",
|
|
41
41
|
"@types/tapable": "^2.3.0",
|
|
42
42
|
"@types/webpack-sources": "^3.2.3",
|
|
43
|
+
"@wordpress/dependency-extraction-webpack-plugin": "^6.53.0",
|
|
43
44
|
"atob": "^2.1.2",
|
|
44
45
|
"css-loader": "^6.11.0",
|
|
45
46
|
"glob": "^7.2.3",
|
|
@@ -50,7 +51,7 @@
|
|
|
50
51
|
"react": "^18.3.1",
|
|
51
52
|
"react-dom": "^18.3.1",
|
|
52
53
|
"rimraf": "^5.0.10",
|
|
53
|
-
"typescript": "^
|
|
54
|
+
"typescript": "^7.0.2",
|
|
54
55
|
"webpack-bundle-analyzer": "^5.3.1"
|
|
55
56
|
},
|
|
56
57
|
"dependencies": {
|
|
@@ -58,15 +59,13 @@
|
|
|
58
59
|
"@plaudit/postcss-color-function": "^5.1.0",
|
|
59
60
|
"@plaudit/postcss-strip-units": "^3.0.0",
|
|
60
61
|
"@plaudit/postcss-variables": "^2.0.1",
|
|
61
|
-
"@wordpress/dependency-extraction-webpack-plugin": "^6.53.0",
|
|
62
62
|
"@wordpress/scripts": "^32.6.0",
|
|
63
63
|
"autoprefixer": "^10.5.4",
|
|
64
64
|
"copy-webpack-plugin": "10.2.4",
|
|
65
65
|
"css-minimizer-webpack-plugin": "^8.0.0",
|
|
66
66
|
"cssnano": "^7.1.9",
|
|
67
67
|
"fork-ts-checker-webpack-plugin": "^9.1.0",
|
|
68
|
-
"
|
|
69
|
-
"jsdom": "^29.1.1",
|
|
68
|
+
"jsdom": "^30.0.1",
|
|
70
69
|
"json2php": "0.0.12",
|
|
71
70
|
"postcss": "^8.5.26",
|
|
72
71
|
"postcss-calc": "^10.1.1",
|
|
@@ -97,6 +96,7 @@
|
|
|
97
96
|
"build": "tsc",
|
|
98
97
|
"clean": "rm -rf dist",
|
|
99
98
|
"build:clean": "pnpm run clean && pnpm run build",
|
|
99
|
+
"build:sync-wp-bundled-packages": "node tools/bundled-packages-sync.mts",
|
|
100
100
|
"watch": "tsc -w",
|
|
101
101
|
"test": "pnpm run build && pnpm run test:no-build",
|
|
102
102
|
"test:no-build": "rm -rf tests/.tmp/coverage/jest && NODE_V8_COVERAGE=tests/.tmp/coverage/jest jest",
|