locutusjs / locutus

Bringing stdlibs of other programming languages to JavaScript for educational purposes

Home Page:https://locutus.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Webpack require ('fs')

Quezler opened this issue · comments

While this library gets compiled with webpack/etc file_get_contents throws an exception that it cannot find the fs module, which is logical, since its compiling for a browser.

My request is that a check gets implemented of some sort that it ignores the exception while compiling for browsers.

So far i have 'solved' it by just erasing the function content on every instance of the app, but that is quite logically not the way to go long-term.