Merge pull request #773 from ZacharyZcR/fix/macos-electron-esm-error

fix: override package.json type to commonjs for electron builds
This commit is contained in:
ZacharyZcR
2026-05-18 04:34:11 +08:00
committed by GitHub
+2 -1
View File
@@ -35,7 +35,8 @@
"!public/icons/**/*"
],
"extraMetadata": {
"main": "electron/main.cjs"
"main": "electron/main.cjs",
"type": "commonjs"
},
"buildDependenciesFromSource": false,
"nodeGypRebuild": false,