Some 'exports' field magic

pull/14/head
Nikita Karamov 2020-07-23 19:26:07 +02:00
parent 69edba6b9f
commit baa669fabf
No known key found for this signature in database
GPG Key ID: E40DFE6E993540FF
1 changed files with 11 additions and 5 deletions

View File

@ -25,11 +25,17 @@
"module": "./dist/shareon.mjs",
"unpkg": "./dist/shareon.min.js",
"exports": {
"require": "./dist/shareon.cjs",
"import": "./dist/shareon.mjs"
},
"browser": {
"./noinit": "./dist/noinit"
"./package.json": "./package.json",
".": {
"browser": "./dist/shareon.min.js",
"require": "./dist/shareon.cjs",
"import": "./dist/shareon.mjs"
},
"./noinit": {
"browser": "./dist/noinit/shareon.min.js",
"require": "./dist/noinit/shareon.cjs",
"import": "./dist/noinit/shareon.mjs"
}
},
"files": [
"dist"