28 lines
524 B
JavaScript
28 lines
524 B
JavaScript
|
import babel from 'rollup-plugin-babel';
|
||
|
import flow from 'rollup-plugin-flow';
|
||
|
import includePaths from 'rollup-plugin-includepaths';
|
||
|
|
||
|
let includePathOptions = {
|
||
|
include: {},
|
||
|
paths: ['src'],
|
||
|
external: [],
|
||
|
extensions: ['.js']
|
||
|
};
|
||
|
|
||
|
export default {
|
||
|
input: 'src/index.js',
|
||
|
output: {
|
||
|
file: 'dist/bundle.es.js',
|
||
|
format: 'cjs'
|
||
|
},
|
||
|
plugins: [
|
||
|
flow({ all: true }),
|
||
|
includePaths(includePathOptions),
|
||
|
babel({
|
||
|
babelrc: false,
|
||
|
presets: [],
|
||
|
}),
|
||
|
],
|
||
|
external: ['lbry-redux']
|
||
|
}
|