mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2025-06-15 02:36:41 +00:00
Fix ES imports for webpack: declare exports.browser
entrypoint as higher priority than import
We could also drop the browser's directive `"./dist/node/openpgp.min.cjs": "./dist/openpgp.min.js"`, since that build cannot be used with `require()`, and it's instead meant to be the target of <script> tags. But we keep it around for now to avoid potentially breaking changes, in case it's used in some setups.
This commit is contained in:
parent
121b478312
commit
f75447afaa
@ -22,9 +22,9 @@
|
|||||||
"exports": {
|
"exports": {
|
||||||
".": {
|
".": {
|
||||||
"types": "./openpgp.d.ts",
|
"types": "./openpgp.d.ts",
|
||||||
|
"browser": "./dist/openpgp.min.mjs",
|
||||||
"import": "./dist/node/openpgp.mjs",
|
"import": "./dist/node/openpgp.mjs",
|
||||||
"require": "./dist/node/openpgp.min.cjs",
|
"require": "./dist/node/openpgp.min.cjs"
|
||||||
"browser": "./dist/openpgp.min.mjs"
|
|
||||||
},
|
},
|
||||||
"./lightweight": {
|
"./lightweight": {
|
||||||
"types": "./openpgp.d.ts",
|
"types": "./openpgp.d.ts",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user