JSPM

rollup-plugin-simple-babel

1.0.6
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 237
  • Score
    100M100P100Q92020F
  • License MIT

Babel plugin for Rollup

Package Exports

  • rollup-plugin-simple-babel

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (rollup-plugin-simple-babel) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

rollup-plugin-simple-babel

Build Status Maintainability Coverage Status npm version
Simple and awesome Babel plugin for rollup

Quick start

1. Install plugin package via npm npm install rollup-plugin-simple-babel or via yarn yarn add rollup-plugin-simple-babel
2. Add plugin call into Rollup config file

// rollup.config.js
import babel from 'rollup-plugin-simple-babel';
    
module.exports = {
    ...,
    plugins: [
        babel()
    ],
    ...
}

Options

This plugin supported all Babel options

Example:

import babel from 'rollup-plugin-simple-babel';
       
module.exports = {
    ...,
    plugins: [
        babel({
            presets: ['@babel/preset-react']
        })
    ],
    ...
}

By default Babel calls without options

Code and documentation copyright 2018 Vladimir Belov. Code released under the MIT license.