Socket
Book a DemoInstallSign in
Socket

rollup-plugin-jspm

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rollup-plugin-jspm

Rollup plugin for jspm 2

latest
npmnpm
Version
1.1.0
Version published
Weekly downloads
470
18.39%
Maintainers
1
Weekly downloads
 
Created
Source

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
  ]
}

FAQs

Package last updated on 12 May 2019

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