Skip to content

Commit

Permalink
fix: use import instead of require
Browse files Browse the repository at this point in the history
"ReferenceError: require is not defined in ES module scope, you can use import instead"
  • Loading branch information
chrisbbreuer committed Dec 18, 2022
1 parent 1df6941 commit 68d9bcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/ConvertAnsi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
* LICENSE file in the root directory of this source tree.
*/

const ansiRegex = require('ansi-regex');
const style = require('ansi-styles');
import ansiRegex from 'ansi-regex';
import style from 'ansi-styles';
import type { Config, NewPlugin, Printer, Refs } from '../types';

const toHumanReadableAnsi = (text: string) =>
Expand Down

0 comments on commit 68d9bcf

Please sign in to comment.