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<
104
104
await startGlobalTelemetry ( options . name ) ;
105
105
106
106
// 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 {
108
108
startApp : StartAppFn < SLocals , RLocals > ;
109
109
listen : ListenFn < SLocals > ;
110
110
} ;
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 ) ;
113
112
const service = serviceModule . default || serviceModule . service ;
114
113
const startOptions : ServiceStartOptions < SLocals > = {
115
114
...options ,
You can’t perform that action at this time.
0 commit comments