The package.json file specifies "type": "module", but entry point uses commonjs (require Syntax).
refer to: https://nodejs.org/api/packages.html#type
This causes errors when you try to test with vitest. You will get "require() of ES Module ... not supported."
Expected Behavior
The package.json should state "type": "commonjs" or change ./dist/tocbot.js file to ./dist/tocbot.cjs
Issue description
The package.json file specifies
"type": "module"
, but entry point uses commonjs (require Syntax). refer to: https://nodejs.org/api/packages.html#type This causes errors when you try to test with vitest. You will get "require() of ES Module ... not supported."Expected Behavior
The package.json should state
"type": "commonjs"
or change./dist/tocbot.js
file to./dist/tocbot.cjs
Environment
Library version: v4.28.2