@netlify/build 27.17.2 → 27.18.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": "27.17.2",
3
+ "version": "27.18.0",
4
4
  "description": "Netlify build module",
5
5
  "type": "module",
6
6
  "exports": "./src/core/main.js",
@@ -56,12 +56,12 @@
56
56
  "license": "MIT",
57
57
  "dependencies": {
58
58
  "@bugsnag/js": "^7.0.0",
59
- "@netlify/edge-bundler": "^1.14.1",
59
+ "@netlify/edge-bundler": "^2.0.1",
60
60
  "@netlify/cache-utils": "^4.0.0",
61
61
  "@netlify/config": "^18.2.3",
62
62
  "@netlify/functions-utils": "^4.2.8",
63
63
  "@netlify/git-utils": "^4.0.0",
64
- "@netlify/plugins-list": "^6.42.0",
64
+ "@netlify/plugins-list": "^6.44.0",
65
65
  "@netlify/run-utils": "^4.0.0",
66
66
  "@netlify/zip-it-and-ship-it": "^7.1.1",
67
67
  "@sindresorhus/slugify": "^2.0.0",
@@ -38,7 +38,7 @@ const coreStep = async function ({
38
38
 
39
39
  logFunctions({ internalSrcDirectory, internalSrcPath, logs, srcDirectory, srcPath })
40
40
 
41
- const { declarations: internalDeclarations, importMap } = await parseManifest(internalSrcPath)
41
+ const { declarations: internalDeclarations, importMap } = await parseManifest(internalSrcPath, systemLog)
42
42
  const declarations = [...configDeclarations, ...internalDeclarations]
43
43
 
44
44
  // If we're running in buildbot and the feature flag is enabled, we set the
@@ -1,7 +1,8 @@
1
1
  import { promises as fs } from 'fs'
2
2
  import { dirname, join, resolve } from 'path'
3
+ import { pathToFileURL } from 'url'
3
4
 
4
- const parseManifest = async (internalSourceDirectory) => {
5
+ const parseManifest = async (internalSourceDirectory, systemLog) => {
5
6
  const manifestPath = join(internalSourceDirectory, 'manifest.json')
6
7
 
7
8
  try {
@@ -22,13 +23,18 @@ const parseManifest = async (internalSourceDirectory) => {
22
23
 
23
24
  return {
24
25
  ...result,
25
- importMap,
26
+ importMap: {
27
+ baseURL: pathToFileURL(importMapPath),
28
+ ...importMap,
29
+ },
26
30
  }
27
31
  }
28
32
 
29
33
  return result
30
- } catch {
31
- // no-op
34
+ } catch (error) {
35
+ if (error.code !== 'ENOENT') {
36
+ systemLog('Error while parsing internal edge functions manifest:', error)
37
+ }
32
38
  }
33
39
 
34
40
  return {