Skip to content

Commit

Permalink
Uses dynamic import for strip-ansi
Browse files Browse the repository at this point in the history
  • Loading branch information
amandasavluchinske committed Jan 2, 2024
1 parent 978808b commit d6d293b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ const get = require('lodash.get');
const each = require('lodash.foreach');
const fromPairs = require('lodash.frompairs');
const toPairs = require('lodash.topairs');
const stripAnsi = require('strip-ansi');
// const loadStripAnsi = async () => await import('strip-ansi');
// const stripAnsi = loadStripAnsi();
const loadStripAnsi = async () => await import('strip-ansi');
const stripAnsi = loadStripAnsi();

function getAssetPath(compilation, name) {
return path.join(compilation.getPath(compilation.compiler.outputPath), name.split('?')[0]);
Expand Down

0 comments on commit d6d293b

Please sign in to comment.