From 3948b068b90d8c3c2ac31dfd5b27dac96d1f9334 Mon Sep 17 00:00:00 2001 From: amandasavluchinske Date: Tue, 2 Jan 2024 16:39:52 -0300 Subject: [PATCH] Adjusts tsconfig and module file so the async function works --- lib/index.js | 3 ++- tsconfig.json | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index a5f3946..0ec4855 100644 --- a/lib/index.js +++ b/lib/index.js @@ -21,7 +21,7 @@ const each = require('lodash.foreach'); const fromPairs = require('lodash.frompairs'); const toPairs = require('lodash.topairs'); const loadStripAnsi = async () => await import('strip-ansi'); -const stripAnsi = loadStripAnsi(); +const stripAnsi = await loadStripAnsi(); function getAssetPath(compilation, name) { return path.join(compilation.getPath(compilation.compiler.outputPath), name.split('?')[0]); @@ -221,3 +221,4 @@ class BundleTrackerPlugin { } module.exports = BundleTrackerPlugin; +export {}; \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index ca34c20..6c35a10 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,6 +5,8 @@ "checkJs": true, /* Report errors in .js files. */ "noEmit": true, /* Do not emit outputs. */ "lib": ["es2017"], + "module": "es2022", + "target": "es2017", "skipLibCheck": true, /* Strict Type-Checking Options */