Skip to content

Commit

Permalink
add type:module to pkg.json to better support ESM
Browse files Browse the repository at this point in the history
  • Loading branch information
tscanlin committed Apr 30, 2024
1 parent abd1633 commit 203ec47
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Generate a table of contents based on the heading structure of a html document.",
"main": "./dist/tocbot.js",
"module": "./index.js",
"type": "module",
"exports": {
".": {
"require": "./dist/tocbot.js",
Expand Down

0 comments on commit 203ec47

Please sign in to comment.