Add "browser" field in exports["."] (#15596)

This commit is contained in:
fisker Cheung authored and GitHub committed 2023-11-12 23:21:13 +08:00
1 parent 9ebcf9b0ff
commit 5c40e728e4
1 file changed
+4
+4
View File
@@ -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",
},
"./*": "./*",