Skip to content

Commit

Permalink
switch back to js
Browse files Browse the repository at this point in the history
  • Loading branch information
tscanlin committed Apr 25, 2024
1 parent 59f2131 commit 5590e26
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
6 changes: 6 additions & 0 deletions index.js
@@ -0,0 +1,6 @@
import { destroy, init, refresh } from './src/js/index-esm.js'
const tocbot = { destroy, init, refresh }

export { destroy, init, refresh }
export default tocbot

1 change: 1 addition & 0 deletions index.mjs
Expand Up @@ -3,3 +3,4 @@ const tocbot = { destroy, init, refresh }

export { destroy, init, refresh }
export default tocbot

6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -3,13 +3,13 @@
"version": "4.27.10",
"description": "Generate a table of contents based on the heading structure of a html document.",
"main": "./dist/tocbot.js",
"module": "./index.mjs",
"module": "./index.js",
"exports": {
".": {
"require": "./dist/tocbot.js",
"import": "./index.mjs",
"import": "./index.js",
"types": "./index.d.ts",
"default": "./index.mjs"
"default": "./index.js"
},
"./styles.css": "./dist/styles.css",
"./tocbot.css": "./dist/tocbot.css",
Expand Down

0 comments on commit 5590e26

Please sign in to comment.