mirror of
https://github.com/zoriya/elysia.git
synced 2026-08-15 18:44:25 +00:00
🔧 fix: re-compile on promise module
This commit is contained in:
@@ -393,6 +393,8 @@ export const BunAdapter: ElysiaAdapter = {
|
||||
|
||||
// @ts-expect-error private
|
||||
app.promisedModules.then(async () => {
|
||||
if (typeof app.config.aot) app.compile()
|
||||
|
||||
app.server?.reload({
|
||||
...serve,
|
||||
fetch: app.fetch,
|
||||
|
||||
+1
-1
@@ -8022,7 +8022,7 @@ export default class Elysia<
|
||||
: createDynamicHandler(this)
|
||||
|
||||
Object.defineProperty(this, 'fetch', {
|
||||
value: this.fetch,
|
||||
value: this._handle,
|
||||
configurable: true,
|
||||
writable: true
|
||||
})
|
||||
|
||||
@@ -730,10 +730,6 @@ export const sucrose = (
|
||||
)
|
||||
code = code.slice(1, -1).trim()
|
||||
|
||||
console.log(
|
||||
isContextPassToFunction(mainParameter, code, fnInference)
|
||||
)
|
||||
|
||||
if (!isContextPassToFunction(mainParameter, code, fnInference))
|
||||
inferBodyReference(code, aliases, fnInference)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user