Add "browser" field in exports["."] (#15596)
This commit is contained in:
1 parent
9ebcf9b0ff
commit
5c40e728e4
1 file changed
+4
@@ -42,6 +42,10 @@ async function buildPackageJson({ file, files }) {
|
||||
".": {
|
||||
types: "./index.d.ts",
|
||||
require: "./index.cjs",
|
||||
browser: {
|
||||
import: "./standalone.mjs",
|
||||
default: "./standalone.js",
|
||||
},
|
||||
default: "./index.mjs",
|
||||
},
|
||||
"./*": "./*",
|
||||
|
||||
Reference in new issue
Block a user