Skip to content

Commit

Permalink
Adjusts tsconfig and module file so the async function works
Browse files Browse the repository at this point in the history
  • Loading branch information
amandasavluchinske committed Jan 2, 2024
1 parent d6d293b commit 3948b06
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down Expand Up @@ -221,3 +221,4 @@ class BundleTrackerPlugin {
}

module.exports = BundleTrackerPlugin;
export {};
2 changes: 2 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 3948b06

Please sign in to comment.