@azimutlabs/rollup-config-babel
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

🍣 azimutlabs logo /rollup-config-babel

Compile code using Babel

azimutlabs/rollup repository github workflow status azimutlabs/rollup repository license @azimutlabs/rollup-config-babel

Installation

Add peer dependencies:

$ yarn add -D rollup @babel/core

...then install config packages:

$ yarn add -D @azimutlabs/rollup-{config,config-babel}

Usage

// rollup.config.js
import babel from '@azimutlabs/rollup-config-babel';

export default babel(
  // Output format. Defaults to 'es'
  'cjs',
  {
    // Optional RollupOptions that will be merged with configuration options.
    shimMissingExports: true,
    // Optional RollupConfigPlugins<P> object that will be merged with
    // configuration plugins.
    pluginBuilders: {
      // Merge with default '@rollup/plugin-babel' plugin options.
      babel: {
        babelHelpers: ['bundled'],
      },
    },
  }
);

Contributing

Any PR is welcomed by our @js-opensource team. Check out our contributing guidelines for more info.

License

azimutlabs rollup config license

Package Sidebar

Install

npm i @azimutlabs/rollup-config-babel

Weekly Downloads

12

Version

1.0.1

License

MIT

Unpacked Size

12.1 kB

Total Files

10

Last publish

Collaborators

  • azimutlabs-owner
  • olehan