jstransformer-rollup

2.0.0 • Public • Published

jstransformer-rollup

Rollup support for JSTransformers.

Build Status Coverage Status Dependency Status Greenkeeper badge NPM version

Installation

npm install jstransformer-rollup

API

index.js

import rollup from './other-file'
rollup()

other-file.js

export default function rollup() {
  console.log('hi')
}
var rollup = require('jstransformer')(require('jstransformer-rollup'));
 
rollup.renderFileAsync('index.js', {
  // options here passed to rollup.rollup and bundle.generate
  // https://github.com/rollup/rollup/wiki/JavaScript-API
}).body
//=> 'function rollup() {\n  console.log('hi')\n}\nrollup()'

License

MIT

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.0.00latest

Version History

VersionDownloads (Last 7 Days)Published
2.0.00
1.1.00
1.0.00
0.0.20
0.0.10

Package Sidebar

Install

npm i jstransformer-rollup

Weekly Downloads

0

Version

2.0.0

License

MIT

Last publish

Collaborators

  • calebeby
  • forbeslindesay
  • hemanth
  • robloach
  • stoeffel
  • timothygu