From defb6a1fc767320c2e75a5a95ccee173654a3f6e Mon Sep 17 00:00:00 2001 From: Benjamin Intal Date: Tue, 3 Aug 2021 11:19:33 +0800 Subject: [PATCH] Export modern JavaScript For those that install via npm and want to ship out modern JavaScript code, I think you can add this in `package.json` --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index ccdb31e..30aa4c1 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ ], "main": "dist/sparkline.js", "module": "dist/sparkline.commonjs2.js", + "exports": "src/sparkline.js", "scripts": { "test": "mocha --require @babel/register \"test/**/*_test.js\"", "js:dist:commonjs2": "LIBRARY_TARGET=commonjs2 webpack",