File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @oak/acorn" ,
3- "version" : " 0.7.0-alpha.3 " ,
3+ "version" : " 0.7.0-alpha.4 " ,
44 "exports" : {
55 "." : " ./mod.ts" ,
66 "./context" : " ./context.ts" ,
Original file line number Diff line number Diff line change @@ -158,6 +158,11 @@ export default class HttpServer implements Server {
158158
159159 async listen ( ) : Promise < Listener > {
160160 if ( ! ( "Request" in globalThis ) || ! ( "Response" in globalThis ) ) {
161+ // adding this dependencies because for some reason they are picked up
162+ // in undici directly when deploying on CFW, even though they aren't
163+ // actually used at runtime
164+ await import ( "npm:buffer@^6.0" ) ;
165+ await import ( "npm:string_decoder@^1.3" ) ;
161166 const { Request, Response } = await import ( "npm:undici@^6.18" ) ;
162167 Object . defineProperties ( globalThis , {
163168 "Request" : {
You can’t perform that action at this time.
0 commit comments