@netlify/build 28.4.2 → 28.4.4
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/lib/plugins/spawn.js +8 -4
- package/package.json +3 -3
package/lib/plugins/spawn.js
CHANGED
|
@@ -17,12 +17,12 @@ const tStartPlugins = async function ({ pluginsOptions, buildDir, childEnv, logs
|
|
|
17
17
|
logLoadingPlugins(logs, pluginsOptions, debug);
|
|
18
18
|
logOutdatedPlugins(logs, pluginsOptions, featureFlags);
|
|
19
19
|
logIncompatiblePlugins(logs, pluginsOptions);
|
|
20
|
-
const childProcesses = await Promise.all(pluginsOptions.map(({ pluginDir, nodePath }) => startPlugin({ pluginDir, nodePath, buildDir, childEnv })));
|
|
20
|
+
const childProcesses = await Promise.all(pluginsOptions.map(({ pluginDir, nodePath }) => startPlugin({ pluginDir, nodePath, buildDir, childEnv, featureFlags })));
|
|
21
21
|
return { childProcesses };
|
|
22
22
|
};
|
|
23
23
|
export const startPlugins = measureDuration(tStartPlugins, 'start_plugins');
|
|
24
|
-
const startPlugin = async function ({ pluginDir, nodePath, buildDir, childEnv }) {
|
|
25
|
-
const childProcess = execaNode(CHILD_MAIN_FILE, {
|
|
24
|
+
const startPlugin = async function ({ pluginDir, nodePath, buildDir, childEnv, featureFlags }) {
|
|
25
|
+
const childProcess = execaNode(CHILD_MAIN_FILE, [], {
|
|
26
26
|
cwd: buildDir,
|
|
27
27
|
preferLocal: true,
|
|
28
28
|
localDir: pluginDir,
|
|
@@ -30,7 +30,11 @@ const startPlugin = async function ({ pluginDir, nodePath, buildDir, childEnv })
|
|
|
30
30
|
execPath: nodePath,
|
|
31
31
|
env: childEnv,
|
|
32
32
|
extendEnv: false,
|
|
33
|
-
|
|
33
|
+
// Feature flag: https://app.launchdarkly.com/default/production/features/netlify_build_use_json_serialization_for_plugin_ipc/targeting
|
|
34
|
+
// TODO: remove feature flag once fully rolled out
|
|
35
|
+
...(!featureFlags.netlify_build_use_json_serialization_for_plugin_ipc && {
|
|
36
|
+
serialization: 'advanced',
|
|
37
|
+
}),
|
|
34
38
|
});
|
|
35
39
|
try {
|
|
36
40
|
await getEventFromChild(childProcess, 'ready');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/build",
|
|
3
|
-
"version": "28.4.
|
|
3
|
+
"version": "28.4.4",
|
|
4
4
|
"description": "Netlify build module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./lib/core/main.js",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"@bugsnag/js": "^7.0.0",
|
|
67
67
|
"@netlify/cache-utils": "^5.0.2",
|
|
68
68
|
"@netlify/config": "^20.0.2",
|
|
69
|
-
"@netlify/edge-bundler": "4.4.
|
|
69
|
+
"@netlify/edge-bundler": "4.4.3",
|
|
70
70
|
"@netlify/functions-utils": "^5.0.4",
|
|
71
71
|
"@netlify/git-utils": "^5.0.2",
|
|
72
72
|
"@netlify/plugins-list": "^6.54.0",
|
|
@@ -149,5 +149,5 @@
|
|
|
149
149
|
"module": "commonjs"
|
|
150
150
|
}
|
|
151
151
|
},
|
|
152
|
-
"gitHead": "
|
|
152
|
+
"gitHead": "53a1a1a513008e58b3b720a0bf6f8166ef9a1b00"
|
|
153
153
|
}
|