Skip to content

Commit

Permalink
wip: use customImport (does not work)
Browse files Browse the repository at this point in the history
  • Loading branch information
dai-shi committed Sep 25, 2024
1 parent ee9abeb commit d91943c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/waku/src/lib/plugins/vite-plugin-deploy-deno.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@ const getServeJsContent = (
distPublic: string,
srcEntriesFile: string,
) => `
import { Hono } from 'jsr:@hono/hono';
import { serveStatic } from 'jsr:@hono/hono/serve-static';
import { contextStorage } from 'jsr:@hono/hono/context-storage';
import { runner } from 'waku/unstable_hono';
const customImport = (id) => import(id);
const { Hono } = await customImport('jsr:@hono/hono');
const { serveStatic } = await customImport('jsr:@hono/hono/serve-static');
const { contextStorage } = await customImport('jsr:@hono/hono/context-storage');
const distDir = '${distDir}';
const publicDir = '${distPublic}';
const loadEntries = () => import('${srcEntriesFile}');
Expand Down

0 comments on commit d91943c

Please sign in to comment.