Skip to content

denoExternalPlugin

const denoExternalPlugin: object

esbuild plugin that marks Deno-specific imports as external Use this when bundling functions/jobs with esbuild to handle npm:, https://, and jsr: imports

NameTypeDefault value
namestring”deno-external”
setup()void-
import { denoExternalPlugin } from '@fluxbase/sdk'
import * as esbuild from 'esbuild'
const result = await esbuild.build({
entryPoints: ['./my-function.ts'],
bundle: true,
plugins: [denoExternalPlugin],
// ... other options
})