iconv-lite-electron
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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.

Dependents (0)

Package Sidebar

Install

npm i iconv-lite-electron

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

330 kB

Total Files

28

Last publish

Collaborators

  • jifashi