@jspm/plugin-rollup
Rollup plugin for jspm 2
Last updated a year ago by guybedford .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @jspm/plugin-rollup 
SYNC missed versions from official npm registry.

@jspm/plugin-rollup

Standards-based JSPM Rollup plugin, including:

  • All module references as URLs
  • Support for resolving packages via node_modules or CDN providers
  • Fully compatible with Node.js resolution semantics
  • Support for import maps
  • Support for TypeScript

Installation

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

Usage

rollup.config.js

import jspmRollup from '@jspm/plugin-rollup';

const baseUrl = new URL('./components', import.meta.url);

export default {
  // Important to use "./" here to indicate a local path
  // and not a package. Resolved to baseUrl below.
  input: './main.js',
  plugins: [
    jspmRollup({
      baseUrl,

      // Generator options as per @jspm/generator
      defaultProvider: 'nodemodules',
      env: ['browser'],

      // map of externals to aliased or true
      externals: {
        react: 'custom-react'
      }
    })
  ]
}
rollup -c

Current Tags

  • 1.2.4                                ...           latest (a year ago)

5 Versions

  • 1.2.4                                ...           a year ago
  • 1.2.3                                ...           a year ago
  • 1.2.2                                ...           a year ago
  • 1.2.1                                ...           a year ago
  • 1.2.0                                ...           a year ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (8)
Dev Dependencies (5)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |