mafintosh / tar-stream

tar-stream is a streaming tar parser and generator.
MIT License
400 stars 93 forks source link

Handle `fs` empty object #152

Closed streamich closed 1 year ago

streamich commented 1 year ago

In browser environment with current package.json fs is empty object, which results in constants being undefined.

More details here.

With current package.json config:

browser: {
  fs: false
}

The way require('fs') resolves in Webpack 5 is with an empty object. Which leads to constants being undefined. This should hopefully fix it.

mafintosh commented 1 year ago

thanks!

mafintosh commented 1 year ago

3.1.2