CommonJS

The CJS filter maps export statements to their CommonJS counterparts.

  • export def f to exports.f =
  • export async def f to exports.f = async
  • export v = to exports.v =
  • export default proc to module.exports =
  • export default async proc to module.exports = async
  • export default to module.exports =

Next: ESM