putout
plugin adds ability to convert Commonjs to ESM.
npm i @putout/plugin-convert-commonjs-to-esm -D
{
"rules": {
"convert-commonjs-to-esm": "on"
}
}
const {join} = require('path');
module.exports = () => {
};
import {join} from 'path';
export default () => {
};
MIT