You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am having to discard this plugin until this issue is fixed, hopefully soon I get some time to look into it myself... but just to make a note:
Node >=10.x.x has support for fs.promises. This means that going forward, this plugin will need to support import { promises as fs } from 'fs' and similar syntax. Solving that problem might solve this problem as well, as it will remove our dependence on promisify.
The
const fs = require('fs')
line gets stripped when using fs inside a function, (in this case promisify), leading tofs is not defined
error:test.js:
npx babel --plugins=babel-plugin-static-fs test.js > out.js
out.js:
The text was updated successfully, but these errors were encountered: