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", "module": "./dist/shareon.mjs",
"unpkg": "./dist/shareon.min.js", "unpkg": "./dist/shareon.min.js",
"exports": { "exports": {
"require": "./dist/shareon.cjs", "./package.json": "./package.json",
"import": "./dist/shareon.mjs" ".": {
}, "browser": "./dist/shareon.min.js",
"browser": { "require": "./dist/shareon.cjs",
"./noinit": "./dist/noinit" "import": "./dist/shareon.mjs"
},
"./noinit": {
"browser": "./dist/noinit/shareon.min.js",
"require": "./dist/noinit/shareon.cjs",
"import": "./dist/noinit/shareon.mjs"
}
}, },
"files": [ "files": [
"dist" "dist"