@netlify/build 18.9.0 → 18.11.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netlify/build",
3
- "version": "18.9.0",
3
+ "version": "18.11.0",
4
4
  "description": "Netlify build module",
5
5
  "main": "src/core/main.js",
6
6
  "bin": {
@@ -59,7 +59,7 @@
59
59
  "@netlify/plugin-edge-handlers": "^1.11.22",
60
60
  "@netlify/plugins-list": "^3.6.0",
61
61
  "@netlify/run-utils": "^2.0.0",
62
- "@netlify/zip-it-and-ship-it": "^4.20.0",
62
+ "@netlify/zip-it-and-ship-it": "^4.21.1",
63
63
  "@sindresorhus/slugify": "^1.1.0",
64
64
  "@ungap/from-entries": "^0.2.1",
65
65
  "ansi-escapes": "^4.3.2",
@@ -18,7 +18,7 @@ const getFeatureFlag = function (name) {
18
18
  // Default values for feature flags
19
19
  const DEFAULT_FEATURE_FLAGS = {
20
20
  zisiEsbuildDynamicImports: env.NETLIFY_EXPERIMENTAL_PROCESS_DYNAMIC_IMPORTS === 'true',
21
- netlify_build_warning_missing_headers: false,
21
+ buildbot_es_modules_esbuild: false,
22
22
  }
23
23
 
24
24
  module.exports = { normalizeCliFeatureFlags, DEFAULT_FEATURE_FLAGS }
package/src/core/main.js CHANGED
@@ -530,7 +530,7 @@ const initAndRunBuild = async function ({
530
530
  })
531
531
 
532
532
  await Promise.all([
533
- warnOnMissingSideFiles({ buildDir, netlifyConfig: netlifyConfigA, logs, featureFlags }),
533
+ warnOnMissingSideFiles({ buildDir, netlifyConfig: netlifyConfigA, logs }),
534
534
  warnOnLingeringProcesses({ mode, logs, testOpts }),
535
535
  ])
536
536
 
@@ -16,12 +16,7 @@ const warnOnMissingSideFiles = async function ({
16
16
  build: { publish },
17
17
  },
18
18
  logs,
19
- featureFlags,
20
19
  }) {
21
- if (!featureFlags.netlify_build_warning_missing_headers) {
22
- return
23
- }
24
-
25
20
  await Promise.all(SIDE_FILES.map((sideFile) => warnOnMissingSideFile({ logs, sideFile, buildDir, publish })))
26
21
  }
27
22
 
@@ -56,8 +56,11 @@ const getZisiParameters = ({ buildDir, featureFlags, functionsConfig, functionsD
56
56
  expression,
57
57
  normalizeFunctionConfig({ buildDir, featureFlags, functionConfig: object, isRunningLocally }),
58
58
  ])
59
+ const zisiFeatureFlags = {
60
+ defaultEsModulesToEsbuild: featureFlags.buildbot_es_modules_esbuild,
61
+ }
59
62
 
60
- return { basePath: buildDir, config, manifest }
63
+ return { basePath: buildDir, config, manifest, featureFlags: zisiFeatureFlags }
61
64
  }
62
65
 
63
66
  const zipFunctionsAndLogResults = async ({