1. @rollup/plugin-buble
Compile ES2015 with buble
@rollup/plugin-buble
Package: @rollup/plugin-buble
Created by: rollup
Last modified: Thu, 05 Oct 2023 12:00:23 GMT
Version: 1.0.3
License: MIT
Downloads: 137,655
Repository: https://github.com/rollup/plugins

Install

npm install @rollup/plugin-buble
yarn add @rollup/plugin-buble

npm
size
libera manifesto

@rollup/plugin-buble

🍣 A Rollup plugin which converts ES2015+ code with the Bublé compiler.

Requirements

This plugin requires an LTS Node version (v14.0.0+) and Rollup v1.20.0+.

Install

Using npm:

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

Usage

Create a rollup.config.js configuration file and import the plugin:

 import buble from '@rollup/plugin-buble';

export default {
  input: 'src/index.js',
  output: {
    dir: 'output',
    format: 'cjs'
  },
  plugins: [buble()]
};

Then call rollup either via the CLI or the API.

Options

transforms

Type: Object

Default: { modules: false }

Specifies additional transform options for the Bublé compiler.

exclude

Type: String | Array[...String]

Default: null

A picomatch pattern, or array of patterns, which specifies the files in the build the plugin should ignore. By default no files are ignored.

include

Type: String | Array[...String]

Default: null

A picomatch pattern, or array of patterns, which specifies the files in the build the plugin should operate on. By default all files are targeted.

Meta

CONTRIBUTING

LICENSE (MIT)

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin