From adf6f1d071760d37dc50cae8e1566b4dc7d205cd Mon Sep 17 00:00:00 2001 From: danbopes Date: Fri, 5 Nov 2021 20:42:14 -0400 Subject: [PATCH] Update package.json Because of the fact that you're using import, specifying the type as a module will allow it to be imported easily into node.js projects. Since this is not common.js (Doesn't use `require()`), this does not integrate very well with any node.js project (In my specific case next.js). --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 7c098a136..a7f39a678 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "typings": "js/index.d.ts", "style": "css/all.css", "sideEffects": false, + "type": "module", "scripts": { "clean": "rimraf css", "css": "npm-run-all --parallel css-compile* --sequential css-prefix css-concat css-minify",