-
-
Notifications
You must be signed in to change notification settings - Fork 720
Open
Description
Thanks for this cool lib!
I'm trying to use this lib in a frontend project using vite, when I build my project with esbuild I got the following error:
Illegal reassignment to import 'commonjsRequire'
file: C:/Users/xxx/node_modules/markdown-toc/lib/utils.js:10:0
8: var utils = require('lazy-cache')(require);
9: var fn = require;
10: require = utils;
^
11:
12: /**
Looks like require is a reserved word and can't be changed, so how to solve this?
Metadata
Metadata
Assignees
Labels
No labels