esm-build.js 591 B

12345678910111213141516171819202122232425262728
  1. import build from './build.js';
  2. export default ([
  3. {
  4. input: 'entry/entry-core.js',
  5. output: Object.assign({}, build.output, {
  6. file: 'modular/sortable.core.esm.js',
  7. format: 'esm'
  8. })
  9. },
  10. {
  11. input: 'entry/entry-defaults.js',
  12. output: Object.assign({}, build.output, {
  13. file: 'modular/sortable.esm.js',
  14. format: 'esm'
  15. })
  16. },
  17. {
  18. input: 'entry/entry-complete.js',
  19. output: Object.assign({}, build.output, {
  20. file: 'modular/sortable.complete.esm.js',
  21. format: 'esm'
  22. })
  23. }
  24. ]).map(config => {
  25. let buildCopy = { ...build };
  26. return Object.assign(buildCopy, config);
  27. });