Leonidas-from-XIV / node-xml2js

XML to JavaScript object converter.
MIT License
4.88k stars 604 forks source link

`.call(this)` brakes rollup module bundler #641

Closed Errorbot1122 closed 2 years ago

Errorbot1122 commented 2 years ago

Rollup is a module bundler for javascript only. I added a plunging to also bundle my external modules (xml2js being one of them) into the file as well for browsers but rollup can know what the this context is, it breaks the code. This happens on the xml2js.js file

IDK what to do

P.S: I'll add the error later

Errorbot1122 commented 2 years ago

Let me also say that I'm using rollup-plugin-polyfill-node which is 3 years old. Altho there is an actively maintained fork of this package it can't fully shim fs :(