Skip to content

Commit

Permalink
better support for ESM with mjs and keeping js for commonjs
Browse files Browse the repository at this point in the history
  • Loading branch information
tscanlin committed Apr 25, 2024
1 parent 4c38b8a commit 8945e76
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
File renamed without changes.
6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -3,13 +3,13 @@
"version": "4.27.7",
"description": "Generate a table of contents based on the heading structure of a html document.",
"main": "./dist/tocbot.js",
"module": "./index.js",
"module": "./index.mjs",
"exports": {
".": {
"require": "./dist/tocbot.js",
"import": "./index.js",
"import": "./index.mjs",
"types": "./index.d.ts",
"default": "./index.js"
"default": "./index.mjs"
},
"./styles.css": "./dist/styles.css",
"./tocbot.css": "./dist/tocbot.css",
Expand Down

0 comments on commit 8945e76

Please sign in to comment.