Skip to content
jspm 2 Rollup plugin
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src remove cjsResolve from externals resolution Apr 18, 2019
test
.gitignore self-hosting Apr 17, 2019
README.md Update README.md May 12, 2019
jspm-rollup.js remove rollup externals fixes May 12, 2019
package.json

README.md

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
  ]
}
You can’t perform that action at this time.