babel.config.js 427 B

12345678910111213141516171819202122
  1. module.exports = {
  2. presets:[
  3. [
  4. '@babel/preset-env',
  5. {
  6. targets:{
  7. node: 'current'
  8. }
  9. }
  10. ]
  11. ],
  12. plugins:[
  13. [
  14. '@babel/plugin-transform-modules-umd',{
  15. exactGlobals: true,
  16. globals:{
  17. index: 'AnimalApi'
  18. }
  19. }
  20. ]
  21. ]
  22. }