Skip to content

Commit

Permalink
Resolve ESM/CJS Module import conflict by using the minified lru-cach…
Browse files Browse the repository at this point in the history
…e export.
  • Loading branch information
robertpitt committed Sep 10, 2024
1 parent dee0c08 commit 63abf71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/parsers/parser_cache.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const LRU = require('lru-cache').default;
const LRU = require('lru-cache/min').default;

let parserCache = new LRU({
max: 15000,
Expand Down
2 changes: 1 addition & 1 deletion lib/parsers/string.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

const Iconv = require('iconv-lite');
const LRU = require('lru-cache').default;
const LRU = require('lru-cache/min').default;

const decoderCache = new LRU({
max: 500,
Expand Down

0 comments on commit 63abf71

Please sign in to comment.