File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -104,12 +104,11 @@ export async function startWithTelemetry<
104104 await startGlobalTelemetry ( options . name ) ;
105105
106106 // eslint-disable-next-line import/no-unresolved, @typescript-eslint/no-var-requires
107- const { startApp, listen } = require ( '../express-app/app.js' ) as {
107+ const { startApp, listen } = await import ( '../express-app/app.js' ) as {
108108 startApp : StartAppFn < SLocals , RLocals > ;
109109 listen : ListenFn < SLocals > ;
110110 } ;
111- // eslint-disable-next-line import/no-dynamic-require, global-require, @typescript-eslint/no-var-requires
112- const serviceModule = require ( options . service ) ;
111+ const serviceModule = await import ( options . service ) ;
113112 const service = serviceModule . default || serviceModule . service ;
114113 const startOptions : ServiceStartOptions < SLocals > = {
115114 ...options ,
You can’t perform that action at this time.
0 commit comments