Skip to content

Latest commit

 

History

History

rollup-config-essentials

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Essential features to properly work on a js library package

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

Installation

Add peer dependencies:

$ yarn add -D rollup

...then install config packages:

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

Usage

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

export default essentials(
  // 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 'external' plugin options.
      external: {
        checkForBabelMacro: true,
      },
      // Merge with default '@rollup/plugin-node-resolve' plugin options.
      nodeResolve: {
        modulesOnly: true,
      },
    },
  }
);

Contributing

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

License

azimutlabs rollup config license