From 2aa431ff95166e1bbcd4262720e6b91ea37f265a Mon Sep 17 00:00:00 2001 From: Nikita Karamov Date: Wed, 25 Mar 2020 22:10:07 +0100 Subject: [PATCH] Update package definitions in package.json --- package.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 49df4af..56eda36 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,13 @@ "sharing", "social networks" ], - "main": "./dist/shareon.js", + "main": "./dist/shareon.cjs", + "module": "./dist/shareon.mjs", + "exports": { + "require": "./dist/shareon.cjs", + "import": "./dist/shareon.mjs" + }, + "unpkg": "./dist/shareon.min.js", "scripts": { "build": "rollup -c ./rollup/rollup.config.prod.js", "dev": "rollup -w -c ./rollup/rollup.config.dev.js",