socifi-rollup-config

1.6.1 • Public • Published

SOCIFI Default Rollup Configuration

This is default configuration for rollup that compile javascript libraries.

What is included

It parse ECMAScript 6 javascript syntax using Babel env preset. Supported browsers are defined from package.json of compiled library. Default configuration can also handle Flow Type syntax.

All files are bundled separately. It allowed to create smaller files with compilers that does not have tree shaking like webpack.

To the destination folder are copied .js.flow so the library can be use with Flow Types.

How to use it

First, install this package:

npm install socifi-rollup-config --save-dev

Then create your rollup.config.js file:

import getConfig from 'ui-rollup-config';
import path from 'path';
import packageJson from './package.json';

export default getConfig(packageJson, path.resolve(__dirname, 'src'), {
    custom: 'settings',
});

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.6.1
    4
    • latest

Version History

Package Sidebar

Install

npm i socifi-rollup-config

Weekly Downloads

10

Version

1.6.1

License

Apache-2.0

Unpacked Size

21 kB

Total Files

6

Last publish

Collaborators

  • fabulator