diff --git a/src/html/Base.ts b/src/html/Base.ts index 5bf65cd..d260ea5 100644 --- a/src/html/Base.ts +++ b/src/html/Base.ts @@ -8,7 +8,7 @@ import glob from 'fast-glob' import debug from 'debug' import { createRequire } from 'node:module'; -const _require = createRequire(import.meta.url); +const _require = import.meta.url!==undefined ? createRequire(import.meta.url): require; const fsp = fs.promises const DEFAULT_GLOB_PATTERN = [