hono icon indicating copy to clipboard operation
hono copied to clipboard

Update server-static-module.ts

Open JeffBue opened this issue 1 year ago • 2 comments

__STATIC_CONTENT_MANIFEST can not be resolved when compiling outside of CloudFlares worker, however it is available at run time.

Compiling from ESbuild:

✘ [ERROR] Could not resolve "__STATIC_CONTENT_MANIFEST"

    node_modules/hono/dist/adapter/cloudflare-workers/server-static-module.js:2:21:
      2 │ import manifest from "__STATIC_CONTENT_MANIFEST";
        ╵                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~

  You can mark the path "__STATIC_CONTENT_MANIFEST" as external to exclude it from the bundle, which
  will remove this error.

JeffBue avatar Jun 16 '23 17:06 JeffBue

@JeffBue has this been tested?

CyberFlameGO avatar Sep 18 '23 22:09 CyberFlameGO

This matter will be resolved in the PR #1804.

yusukebe avatar Jan 10 '24 21:01 yusukebe

@yusukebe

I think that this issue was solved

EdamAme-x avatar May 27 '24 09:05 EdamAme-x

Yes. We can close this. Thanks!

yusukebe avatar May 27 '24 23:05 yusukebe