From 90e3f0b8f6f111eab6bd56089bf9235b2143a39a Mon Sep 17 00:00:00 2001 From: amandasavluchinske Date: Tue, 2 Jan 2024 16:27:53 -0300 Subject: [PATCH] Testing keeping require and doing a version bump on strip-ansi --- lib/index.js | 2 ++ package.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index 147bd9e..f40230d 100644 --- a/lib/index.js +++ b/lib/index.js @@ -21,6 +21,8 @@ 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(); function getAssetPath(compilation, name) { return path.join(compilation.getPath(compilation.compiler.outputPath), name.split('?')[0]); diff --git a/package.json b/package.json index 2def6c1..41d660a 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ "lodash.frompairs": "^4.0.1", "lodash.get": "^4.4.2", "lodash.topairs": "^4.3.0", - "strip-ansi": "^6.0.1" + "strip-ansi": "^7.1.0" }, "devDependencies": { "@types/babel__traverse": "7.0.6",