0.1.4 • Published 5 years ago

@hugov/cjs-to-iife v0.1.4

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

cjs-to-iife

small simple bundler

Examples

const code = require('cjs-to-iife')('./commonjsmodule.js')

Notes

  • returns the promise of a string
  • sets this.exports.name or this.exports.default. Uses the following rollup options
    • format: 'iife'
    • extend: true
    • exports: 'named'
    • name: 'exports'

License

MIT © Hugo Villeneuve