@netlify/edge-bundler
Advanced tools
Comparing version 1.2.1 to 1.3.0
@@ -1,2 +0,2 @@ | ||
import { writeStage2 } from 'https://62a718350450bd00093e1841--edge-bootstrap.netlify.app/bundler/mod.ts' | ||
import { writeStage2 } from 'https://62ac9c589c16c50008b6ef55--edge-bootstrap.netlify.app/bundler/mod.ts' | ||
@@ -3,0 +3,0 @@ const [payload] = Deno.args |
@@ -12,2 +12,3 @@ import { promises as fs } from 'fs'; | ||
import { writeManifest } from './manifest.js'; | ||
// eslint-disable-next-line max-statements | ||
const bundle = async (sourceDirectories, distDirectory, declarations = [], { cacheDirectory, debug, distImportMapPath, featureFlags: inputFeatureFlags, importMaps, onAfterDownload, onBeforeDownload, } = {}) => { | ||
@@ -30,4 +31,6 @@ const featureFlags = getFlags(inputFeatureFlags); | ||
const functions = await findFunctions(sourceDirectories); | ||
const bundleOps = [ | ||
bundleJS({ | ||
const bundleOps = []; | ||
if (featureFlags.edge_functions_produce_eszip) { | ||
bundleOps.push(bundleESZIP({ | ||
basePath, | ||
buildID, | ||
@@ -38,8 +41,6 @@ debug, | ||
functions, | ||
importMap, | ||
}), | ||
]; | ||
if (featureFlags.edge_functions_produce_eszip) { | ||
bundleOps.push(bundleESZIP({ | ||
basePath, | ||
})); | ||
} | ||
else { | ||
bundleOps.push(bundleJS({ | ||
buildID, | ||
@@ -50,2 +51,3 @@ debug, | ||
functions, | ||
importMap, | ||
})); | ||
@@ -52,0 +54,0 @@ } |
@@ -8,3 +8,3 @@ import { promises as fs } from 'fs'; | ||
import { getFileHash } from '../utils/sha256.js'; | ||
const BOOTSTRAP_LATEST = 'https://62a718350450bd00093e1841--edge-bootstrap.netlify.app/bootstrap/index-combined.ts'; | ||
const BOOTSTRAP_LATEST = 'https://62ac9c589c16c50008b6ef55--edge-bootstrap.netlify.app/bootstrap/index-combined.ts'; | ||
const bundle = async (options) => { | ||
@@ -11,0 +11,0 @@ try { |
import { ExecaChildProcess } from 'execa'; | ||
declare const killProcess: (ps: ExecaChildProcess<string>) => Promise<unknown> | undefined; | ||
declare const waitForServer: (port: number, ps?: ExecaChildProcess<string> | undefined) => Promise<boolean>; | ||
declare const waitForServer: (port: number, ps?: ExecaChildProcess<string>) => Promise<boolean>; | ||
export { killProcess, waitForServer }; |
{ | ||
"name": "@netlify/edge-bundler", | ||
"version": "1.2.1", | ||
"version": "1.3.0", | ||
"description": "Intelligently prepare Netlify Edge Functions for deployment", | ||
@@ -5,0 +5,0 @@ "type": "module", |
43656
1006