storybook/lib/cli/test/fixtures/react/rollup.config.js
2017-08-30 02:47:15 +03:00

23 lines
504 B
JavaScript

import replace from 'rollup-plugin-replace';
import commonjs from 'rollup-plugin-commonjs';
import resolve from 'rollup-plugin-node-resolve';
import babel from 'rollup-plugin-babel';
export default {
input: 'index.js',
output: {
file: 'dist/bundle.js',
format: 'iife'
},
plugins: [
replace({
'process.env.NODE_ENV': JSON.stringify('production')
}),
commonjs(),
resolve(),
babel({
exclude: 'node_modules/**' // only transpile our source code
})
]
};