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 */