rollup-plugin-jspm

Rollup plugin for jspm 2

MIT 3 个版本
安装
npm install rollup-plugin-jspm
yarn add rollup-plugin-jspm
pnpm add rollup-plugin-jspm
bun add rollup-plugin-jspm
README

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

版本列表
1.1.0 2019-05-12
1.0.1 2019-04-24
1.0.0 2019-04-23