From 203ec47b46c4775630060bbe2b572aad430a50ac Mon Sep 17 00:00:00 2001 From: Tim Scanlin Date: Mon, 29 Apr 2024 17:45:57 -0700 Subject: [PATCH] add type:module to pkg.json to better support ESM --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 9d9f537..6b88824 100644 --- a/package.json +++ b/package.json @@ -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",