summaryrefslogtreecommitdiffstats
path: root/third_party/webkit/PerformanceTests/Speedometer/resources/todomvc/architecture-examples/preact/rollup.config.js
blob: e6d251ff6588526c57f20c65f2b0cafa2f307d52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import nodeResolve from 'rollup-plugin-node-resolve';
import commonjs from 'rollup-plugin-commonjs';
import babel from 'rollup-plugin-babel';

export default {
    entry: 'src/index.js',
    dest: 'dist/app.js',
    format: 'iife',
    sourceMap: true,
    external: [],
    plugins: [
        babel({
            babelrc: false,
            presets: [
                ['es2015', { loose:true, modules:false }],
                'stage-0'
            ],
            plugins: [
                ['transform-react-jsx', { pragma:'h' }]
            ]
        }),
        nodeResolve({
            jsnext: true
        }),
        commonjs()
    ]
};