rollup.config.js 680B

1234567891011121314151617181920212223
  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 : 'i.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. };