555
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

rollup.config.js 718B

123456789101112131415161718192021222324252627
  1. import commonjs from '@rollup/plugin-commonjs';
  2. import { nodeResolve } from '@rollup/plugin-node-resolve';
  3. import versionInjector from 'rollup-plugin-version-injector';
  4. export default {
  5. input: 'index.js',
  6. output: {
  7. file : 'elxr.js'
  8. , format: 'cjs'
  9. },
  10. // external: ['chessinstances'],
  11. // globals: { chessinstances : chessinstances},
  12. // external : [ 'chessinstances.js' ],
  13. // exclude : [ 'chessinstances.js' ],
  14. plugins: [commonjs({
  15. dynamicRequireTargets: [
  16. // include using a glob pattern (either a string or an array of strings)
  17. '**/cu*.js'
  18. ]
  19. // ,
  20. // exclude : [ 'chessinstances.js' ]
  21. }), nodeResolve(), versionInjector()]
  22. };
  23. // Dr Kamat
  24. // Rahul Roji
  25. // 06259