rollup.config.js 476 B

123456789101112131415161718192021222324
  1. const pkg = require('./package.json');
  2. const banner = `/*!
  3. * @license
  4. * ` + pkg.name + `
  5. * http://chartjs.org/
  6. * Version: ` + pkg.version + `
  7. *
  8. * Copyright ` + (new Date().getFullYear()) + ` Chart.js Contributors
  9. * Released under the MIT license
  10. * https://github.com/chartjs/` + pkg.name + `/blob/master/LICENSE.md
  11. */`;
  12. export default {
  13. input: 'src/plugin.js',
  14. banner: banner,
  15. format: 'umd',
  16. external: [
  17. 'chart.js'
  18. ],
  19. globals: {
  20. 'chart.js': 'Chart'
  21. }
  22. };