From fd93afcd06b42bdad4169ac3d0d64f40d35ae80a Mon Sep 17 00:00:00 2001 From: Andrew Bradley Date: Fri, 4 Mar 2022 18:34:28 -0500 Subject: [PATCH] lint fix --- src/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 9f720f0f6..719a3e88d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -793,7 +793,9 @@ export function create(rawOptions: CreateOptions = {}): Service { // Install source map support and read from memory cache. installSourceMapSupport(); function installSourceMapSupport() { - (require('@cspotcode/source-map-support') as typeof _sourceMapSupport).install({ + const sourceMapSupport = + require('@cspotcode/source-map-support') as typeof _sourceMapSupport; + sourceMapSupport.install({ environment: 'node', retrieveFile(pathOrUrl: string) { let path = pathOrUrl;