egoist/bundle-require

Force format

otakustay opened this issue · 0 comments

Current implement is to guess format by both package.json#type and file extensions, but we want the ability to force ESM output even for .js file no matter what type is in package.json

Maybe we can add an format option to bundleRequire function?