Skip to content
Myr

rollup.config.js

This file

Path

rollup.config.js

20 lines · 434 bytes · JavaScript

Last changed by

Fix eslint complaintsJason Millerbefore adoption9eced2d

History of this file

Take it

Initial commit! 🚀Jason Millerbefore adoptione77a42c

line 1
1import buble from 'rollup-plugin-buble';

Add Flow type annotations (#23)Brandon Dailbefore adoption377d6f4

line 2why, one step back
2import flow from 'rollup-plugin-flow';

Fix eslint complaintsJason Millerbefore adoption9eced2d

line 3why, one step back
3import fs from 'fs';

Initial commit! 🚀Jason Millerbefore adoptione77a42c

line 4
4

Fix eslint complaintsJason Millerbefore adoption9eced2d

line 5why, one step back
5const pkg = JSON.parse(fs.readFileSync('./package.json'));

Cleanup Build Chain (#48)Luke Edwardsbefore adoptiona51bcea

line 6why, one step back
6

Initial commit! 🚀Jason Millerbefore adoptione77a42c

line 7
7export default {

Cleanup Build Chain (#48)Luke Edwardsbefore adoptiona51bcea

line 8why, one step back
8 entry: 'src/index.js',

Initial commit! 🚀Jason Millerbefore adoptione77a42c

line 9
9 useStrict: false,

Cleanup Build Chain (#48)Luke Edwardsbefore adoptiona51bcea

line 10why, one step back
10 sourceMap: true,

Initial commit! 🚀Jason Millerbefore adoptione77a42c

line 11
11 plugins: [

Cleanup Build Chain (#48)Luke Edwardsbefore adoptiona51bcea

line 12why, one step back
12 flow(),

Initial commit! 🚀Jason Millerbefore adoptione77a42c

line 13
13 buble()

Cleanup Build Chain (#48)Luke Edwardsbefore adoptiona51bcea

lines 14–15why, one step back
14 ],
15 targets: [

Fix eslint complaintsJason Millerbefore adoption9eced2d

lines 16–18why, one step back
16 { dest: pkg.main, format: 'cjs' },
17 { dest: pkg.module, format: 'es' },18 { dest: pkg['umd:main'], format: 'umd', moduleName: pkg.name }

Initial commit! 🚀Jason Millerbefore adoptione77a42c

lines 19–20
19 ]
20};