rollup-plugin-jspm
Rollup plugin for jspm 2
Last updated 6 years ago by guybedford .
MIT · Original npm
$ cnpm install rollup-plugin-jspm 
SYNC missed versions from official npm registry.

rollup-plugin-jspm

Integrate jspm with rollup.

Installation

npm install --save-dev rollup-plugin-jspm

Usage

// rollup.config.js
import path from 'path';
import babelRollup from 'rollup-plugin-babel';
import jspmRollup from 'rollup-plugin-jspm';

const basePath = path.resolve('components');

export default {
  input: './main.js', // Will resolve to 'components/main.js'
  plugins: [
    jspmRollup({ 
      basePath, // defaults to process.cwd()
      env: { browser: true, node: false }, // defaults to { node: true }
      // set to use @babel/preset-env
      envTarget: {
        browsers: 'last 2 versions'
      },
      // map of externals to aliased or true
      externals: {}
    }),
    babelRollup() // Compose with other Rollup plugins
  ]
}

Current Tags

  • 1.1.0                                ...           latest (6 years ago)

1 Versions

  • 1.1.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (4)
Dev Dependencies (4)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org