babel.config.js 516 B

123456789101112131415161718192021222324252627
  1. module.exports = {
  2. plugins: [
  3. '@babel/plugin-syntax-dynamic-import',
  4. '@babel/plugin-proposal-class-properties',
  5. // We need the bundler entry not the web one
  6. // Jest will otherwise resolve the wrong one
  7. [
  8. "module-resolver",
  9. {
  10. "alias": {
  11. "webdav$": "webdav/dist/node/index.js",
  12. },
  13. },
  14. ]
  15. ],
  16. presets: [
  17. // https://babeljs.io/docs/en/babel-preset-typescript
  18. '@babel/preset-typescript',
  19. [
  20. '@babel/preset-env',
  21. {
  22. useBuiltIns: false,
  23. modules: 'auto',
  24. },
  25. ],
  26. ],
  27. }