Some 'exports' field magic
parent
69edba6b9f
commit
baa669fabf
10
package.json
10
package.json
|
@ -25,11 +25,17 @@
|
|||
"module": "./dist/shareon.mjs",
|
||||
"unpkg": "./dist/shareon.min.js",
|
||||
"exports": {
|
||||
"./package.json": "./package.json",
|
||||
".": {
|
||||
"browser": "./dist/shareon.min.js",
|
||||
"require": "./dist/shareon.cjs",
|
||||
"import": "./dist/shareon.mjs"
|
||||
},
|
||||
"browser": {
|
||||
"./noinit": "./dist/noinit"
|
||||
"./noinit": {
|
||||
"browser": "./dist/noinit/shareon.min.js",
|
||||
"require": "./dist/noinit/shareon.cjs",
|
||||
"import": "./dist/noinit/shareon.mjs"
|
||||
}
|
||||
},
|
||||
"files": [
|
||||
"dist"
|
||||
|
|
Loading…
Reference in New Issue