transform-fs-promises-webpack-plugin
v1.0.0
Published
A webpack plugin to transform fs promises APIs for compatible with lower Node.js versions.
Maintainers
Readme
transform-fs-promises-webpack-plugin
A Webpack plugin to transform require('fs/promises') to require('fs').promises for compatible with Node.js 14 and below.
Compatible with webpack@5 and webpack@4.
Installation
npm install transform-fs-promises-webpack-plugin --saveUsage
// import via esm
import { TransformFsPromisesPlugin } from "transform-fs-promises-webpack-plugin";
// import via cjs
const { TransformFsPromisesPlugin } = require("transform-fs-promises-webpack-plugin");const { TransformFsPromisesPlugin } = require("transform-fs-promises-webpack-plugin");
/** @type {import('webpack').Configuration} */
module.exports = {
plugins: [new TransformFsPromisesPlugin()],
};Relative
License
The Anti 996 License
