diff --git a/src/index.ts b/src/index.ts index 8aec98b5..5ac93dfa 100644 --- a/src/index.ts +++ b/src/index.ts @@ -5,7 +5,7 @@ import { availableParallelism } from 'os'; import { fileURLToPath, URL } from 'url'; import { resolve } from 'path'; import { inspect, types } from 'util'; -import assert from 'assert'; +import { strict as assert } from 'assert'; import { Histogram, RecordableHistogram, createHistogram, performance } from 'perf_hooks'; import { READY, diff --git a/tsconfig.json b/tsconfig.json index 921da16d..9830a2ba 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -15,7 +15,7 @@ "noUnusedParameters": true, "noImplicitReturns": true, "noFallthroughCasesInSwitch": true, - "esModuleInterop": true, + "esModuleInterop": false, "resolveJsonModule": true, /* Include modules imported with '.json' extension */ "forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */