diff --git a/lib/index.js b/lib/index.js index f40230d..a5f3946 100644 --- a/lib/index.js +++ b/lib/index.js @@ -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]);