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 fileTake it
1import buble from 'rollup-plugin-buble';Add Flow type annotations (#23)Brandon Dailbefore adoption377d6f4
line 2why, one step back2import flow from 'rollup-plugin-flow';Fix eslint complaintsJason Millerbefore adoption9eced2d
line 3why, one step back3import fs from 'fs';4Fix eslint complaintsJason Millerbefore adoption9eced2d
line 5why, one step back5const pkg = JSON.parse(fs.readFileSync('./package.json'));Cleanup Build Chain (#48)Luke Edwardsbefore adoptiona51bcea
line 6why, one step back67export default {Cleanup Build Chain (#48)Luke Edwardsbefore adoptiona51bcea
line 8why, one step back8 entry: 'src/index.js',9 useStrict: false,Cleanup Build Chain (#48)Luke Edwardsbefore adoptiona51bcea
line 10why, one step back10 sourceMap: true,11 plugins: [Cleanup Build Chain (#48)Luke Edwardsbefore adoptiona51bcea
line 12why, one step back12 flow(),13 buble()Cleanup Build Chain (#48)Luke Edwardsbefore adoptiona51bcea
lines 14–15why, one step back14 ],15 targets: [Fix eslint complaintsJason Millerbefore adoption9eced2d
lines 16–18why, one step back16 { 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–2019 ]20};