babel-plugin-static-fs icon indicating copy to clipboard operation
babel-plugin-static-fs copied to clipboard

statically transforms Node fs for the browser

Results 8 babel-plugin-static-fs issues
Sort by recently updated
recently updated
newest added

**What kind of change does this PR introduce?** (check at least one) - [ ] Bugfix (non-breaking change which fixes an issue) - [x] Feature (non-breaking change which adds functionality)...

Node version: ```12.11``` Deprecation message: ``` DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. ``` I think the issue...

The `const fs = require('fs')` line gets stripped when using fs inside a function, (in this case promisify), leading to `fs is not defined` error: test.js: const fs = require("fs");...

Thanks for this great plugin. I'm getting a problem where it doesn't seem to pick up changes to the file being inlined. I have to edit the parent JS file...

Hi, I'm new to webpack. I wanted to inline my `fs.readFileSync` statements but I don't know how to integrate this plugin into webpack. Can you guide me?

Plugin is fine when using without dynamic `import`s in Webpack – using `chunkFilename`. However, as soon as you try to build it with dynamic `import`s I get: ``` ERROR in...

I get this error ``` Error: file.js: Could not statically evaluate how the fs module was required/imported. while parsing file: file.js ``` When trying to use `static-fs` with either [babel-plugin-static-fs](https://www.npmjs.com/package/babel-plugin-static-fs)...

Not sure if this is dangerous. The `path` module does not have any side-effects that I know of, so we could remove it entirely from the program when the only...