rollup.config.js 418 B

1234567891011121314151617
  1. import typescript from 'rollup-plugin-typescript2'
  2. import pkg from './package.json'
  3. export default [
  4. {
  5. input: 'src/index.ts',
  6. output: {
  7. file: 'htdocs/js/c3.js',
  8. name: 'c3',
  9. format: 'umd',
  10. banner: `/* @license C3.js v${pkg.version} | (c) C3 Team and other contributors | http://c3js.org/ */`,
  11. globals: { d3: 'd3' }
  12. },
  13. plugins: [typescript()],
  14. external: ['d3']
  15. }
  16. ]