Open SupremeTechnopriest opened 7 years ago
we can use https://www.npmjs.com/package/browserify-fs for fs
like you do here for crypto https://github.com/calvinmetcalf/rollup-plugin-node-builtins/blob/master/src/index.js#L35
working on a pr now
the mocks yes!, browserify fs um lets not do that by default, that's a whole lot of stuff there
Yeah I was actually thinking of making process
an option as well. Im having problems with it looking for global
in the browser. Checking to see if upgrading the packages fixes the issue first.
@calvinmetcalf https://github.com/calvinmetcalf/rollup-plugin-node-builtins/pull/22 submitted
Yeah I was actually thinking of making process an option as well. Im having problems with it looking for global in the browser. Checking to see if upgrading the packages fixes the issue first.
check the readme process needs the globals shim
submitted #23
Could we add some mocks for libraries like
fs
andnet
? Here is howbrowserify
does it https://github.com/substack/node-browserify/blob/master/lib/builtins.js#L12