@hugov/cjs-to-iife
small simple bundler
Last updated 2 months ago by hugov .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @hugov/cjs-to-iife 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.1.4                                ...           latest (2 months ago)

4 Versions

  • 0.1.4                                ...           2 months ago
  • 0.1.3                                ...           a year ago
  • 0.1.2                                ...           a year ago
  • 0.1.1                                ...           2 years ago
Maintainers (1)
Downloads
Today 4
This Week 5
This Month 5
Last Day 1
Last Week 8
Last Month 14
Dependencies (3)
Dev Dependencies (3)
Dependents (1)

Copyright 2014 - 2017 © taobao.org |