diff --git a/src/worker.ts b/src/worker.ts index d545c8e5..e2d29c4d 100644 --- a/src/worker.ts +++ b/src/worker.ts @@ -26,6 +26,7 @@ let useAtomics : boolean = process.env.PISCINA_DISABLE_ATOMICS !== '1'; let importESMCached : (specifier : string) => Promise | undefined; function getImportESM () { if (importESMCached === undefined) { + // eslint-disable-next-line no-new-func importESMCached = new Function('specifier', 'return import(specifier)') as typeof importESMCached; } return importESMCached;