🔧 fix: re-compile on promise module

This commit is contained in:
saltyaom
2025-12-13 19:15:58 +07:00
parent 1e0a5d6511
commit 90b7940669
3 changed files with 3 additions and 5 deletions
+2
View File
@@ -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
View File
@@ -8022,7 +8022,7 @@ export default class Elysia<
: createDynamicHandler(this)
Object.defineProperty(this, 'fetch', {
value: this.fetch,
value: this._handle,
configurable: true,
writable: true
})
-4
View File
@@ -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)