iconv-lite-electron
v1.0.0
Published
### why use this?
Downloads
4
Readme
iconv-lite-electron
why use this?
the fatal error in Electron: iconv-lite TypeError: webpack_require(...) is not a function
// Load extensions in Node. All of them are omitted in Browserify build via 'browser' field in package.json.
var nodeVer = typeof process !== 'undefined' && process.versions && process.versions.node;
if (nodeVer) {
// // Load streaming support in Node v0.10+
// var nodeVerArr = nodeVer.split(".").map(Number);
// if (nodeVerArr[0] > 0 || nodeVerArr[1] >= 10) {
// require("./streams")(iconv);
// }
// // Load Node primitive extensions.
// require("./extend-node")(iconv);
}
you can use this code in iconv-lite
or just use `icon-lite-electron which is fixed by me.