@plaudit/webpack-extensions 2.85.0 → 2.85.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,10 @@ 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
|
+
## [2.85.1] - 2026-03-06
|
|
9
|
+
### Fixed
|
|
10
|
+
- Inlined scripts without any other path query parameters not being placed in the footer by default
|
|
11
|
+
|
|
8
12
|
## [2.85.0] - 2026-03-05
|
|
9
13
|
### Added
|
|
10
14
|
- Support for inlining (and otherwise controlling the enqueuing of) assets
|
|
@@ -254,6 +254,7 @@ function parseScriptArgsObjectFromPathQueryParameters(compilation, file, pathQue
|
|
|
254
254
|
compilation.warnings.push((0, shared_1.newWebpackErrorForFile)("Deferred and async scripts that have inlined JS attached in the 'after' position will cause WordPress to convert all of their dependencies to eager scripts at runtime", file));
|
|
255
255
|
}
|
|
256
256
|
if (scriptArgsObject.in_footer === undefined) {
|
|
257
|
+
hasAnyKeys = true;
|
|
257
258
|
scriptArgsObject.in_footer = true;
|
|
258
259
|
}
|
|
259
260
|
}
|
|
@@ -232,7 +232,7 @@ function buildVerifiedConfig(config) {
|
|
|
232
232
|
}
|
|
233
233
|
if (destination !== undefined) {
|
|
234
234
|
const effectiveDestination = toEffectiveWebpackDestination(destination);
|
|
235
|
-
allocatedDestinations[effectiveDestination] = rawSource[0]; // We need to pre-populate the allocatedDestinations map with statically
|
|
235
|
+
allocatedDestinations[effectiveDestination] = rawSource[0]; // We need to pre-populate the allocatedDestinations map with statically declared destinations
|
|
236
236
|
return [rawSource[0], { ...normalizedParts, locations, destination, effectiveDestination, staticallyDeclaredDestination: true, pathQueryParameters }];
|
|
237
237
|
}
|
|
238
238
|
else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plaudit/webpack-extensions",
|
|
3
|
-
"version": "2.85.
|
|
3
|
+
"version": "2.85.1",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
5
5
|
"files": [
|
|
6
6
|
"/build",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@plaudit/gutenberg-api-extensions": "^2.87.0",
|
|
28
28
|
"@types/browser-sync-webpack-plugin": "^2.2.5",
|
|
29
|
-
"@types/node": "^25.3.
|
|
29
|
+
"@types/node": "^25.3.5",
|
|
30
30
|
"@types/postcss-functions": "^4.0.4",
|
|
31
31
|
"@types/tapable": "^2.3.0",
|
|
32
32
|
"@types/webpack-sources": "^3.2.3",
|