Closed
Description
Node v13.2.0+ has experimental ESM (native module) support without any kind of flag. This means that you can now do:
import { readFile } from 'fs'
However, if you try:
import { readFile } from 'fs-extra'
You get an error, because fs-extra
is CJS-only. (You cannot export named exports from a CJS file) If we are going to remain a drop-in replacement for fs
, we need to support this.