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.

28 lines
497 B

4 years ago
  1. module.exports = {
  2. presets: [
  3. [
  4. '@babel/env',
  5. {
  6. targets: {
  7. node: 'current'
  8. }
  9. }
  10. ],
  11. require.resolve('./local-preset')
  12. ],
  13. plugins: [
  14. require.resolve('./local-plugin'),
  15. '@babel/plugin-proposal-object-rest-spread',
  16. ['module:fast-async', {
  17. runtimePattern: null,
  18. useRuntimeModule: false
  19. }]
  20. ],
  21. env: {
  22. test: {
  23. plugins: [
  24. [require.resolve('./local-plugin'), { foo: 'bar' }]
  25. ]
  26. }
  27. }
  28. };