Skip to content

Commit 8f0799b

Browse files
authored
fix: add missing --allow-import flag to deno run command in bundle function (#6684)
1 parent d78700c commit 8f0799b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/edge-bundler/node/bundler.test.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,7 @@ test('Loads edge functions from the Frameworks API', async () => {
733733
await cleanup()
734734
})
735735

736-
describe.skipIf(lt(denoVersion, '2.4.2'))(
736+
describe.skipIf(lt(denoVersion, '2.4.3'))(
737737
'Produces a tarball bundle',
738738
() => {
739739
test('With only local imports', async () => {
@@ -790,8 +790,7 @@ describe.skipIf(lt(denoVersion, '2.4.2'))(
790790
await rm(vendorDirectory.path, { force: true, recursive: true })
791791
})
792792

793-
// TODO: https://github.com/denoland/deno/issues/30187
794-
test.todo('Using npm modules', async () => {
793+
test('Using npm and remote modules', async () => {
795794
const systemLogger = vi.fn()
796795
const { basePath, cleanup, distPath } = await useFixture('imports_npm_module', { copyDirectory: true })
797796
const sourceDirectory = join(basePath, 'functions')

packages/edge-bundler/node/formats/tarball.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ export const bundle = async ({
8787
importMap.withNodeBuiltins().toDataURL(),
8888
'--quiet',
8989
'--code-splitting',
90+
'--allow-import',
9091
'--outdir',
9192
bundleDir.path,
9293
...functions.map((func) => func.path),

0 commit comments

Comments
 (0)