@hugov/cjs-to-iife
v0.1.4
Published
small simple bundler
Downloads
2
Readme
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
orthis.exports.default
. Uses the following rollup options- format: 'iife'
- extend: true
- exports: 'named'
- name: 'exports'