Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fly-rollup

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fly-rollup

Rollup plugin for Fly.

  • 2.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

fly-rollup

fly badge npm badge download badge travisbadge license badge

Rollup plugin for Fly .

Install

This plugin requires Fly .

npm i --save-dev fly-rollup

Usage

Async/Await flavored:

export async function roll (fly) {
  await fly
    .source('src/entry.js') // just pass your entry file(s) here
    .rollup({
      rollup: { // rollup options
        plugins: [
          require('rollup-plugin-babel')()
        ]
      },
      bundle: { // bundle options
        format: 'es'
      }
    })
    .target('dist')
}

Generator function flavored:

exports.roll = function * (fly) {
  yield fly
    .source('src/entry.js') // just pass your entry file(s) here
    .rollup({
      rollup: { // rollup options
        plugins: [
          require('rollup-plugin-babel')()
        ]
      },
      bundle: { // bundle options
        format: 'es'
      }
    })
    .target('dist')
}

You just need to pass entry files to fly-rollup .

Sourcemap

Sourcemap is controlled by sourceMap key in bundle options. It has 3 options:

  • true: default value, generate external sourcemap along with bundle output.
  • 'inline': inline sourcemap.
  • false: disable sourcemap.

e.g.

fly.source
  .rollup({
    bundle: {
      sourceMap: false // disable sourcemap
    }
  })

For other options:

See Rollup JavaScript API#rollup.rollup( options ) for rollup options .

See Rollup JavaScript API#bundle.generate( options ) for bundle options .

License

Do What The F*ck You Want To Public License

Keywords

FAQs

Package last updated on 28 Mar 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc