diff options
Diffstat (limited to '')
-rw-r--r-- | third_party/webkit/PerformanceTests/Speedometer/resources/todomvc/architecture-examples/preact/rollup.config.js | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/third_party/webkit/PerformanceTests/Speedometer/resources/todomvc/architecture-examples/preact/rollup.config.js b/third_party/webkit/PerformanceTests/Speedometer/resources/todomvc/architecture-examples/preact/rollup.config.js new file mode 100644 index 0000000000..e6d251ff65 --- /dev/null +++ b/third_party/webkit/PerformanceTests/Speedometer/resources/todomvc/architecture-examples/preact/rollup.config.js @@ -0,0 +1,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() + ] +}; |