rollup.config.js 458 B

12345678910111213141516171819
  1. import babel from 'rollup-plugin-babel';
  2. import pkg from './package.json'
  3. export default {
  4. input: 'src/index.js',
  5. output: {
  6. name: 'c3',
  7. format: 'umd',
  8. banner: `/* @license C3.js v${pkg.version} | (c) C3 Team and other contributors | http://c3js.org/ */`
  9. },
  10. plugins: [babel({
  11. presets: [['es2015', {
  12. modules: false
  13. }]],
  14. plugins: [
  15. 'external-helpers'
  16. ]
  17. })]
  18. };