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.
 
 

20 lines
544 B

  1. module.exports = {
  2. presets: [
  3. ['@babel/preset-env', { targets: { node: 'current' } }],
  4. '@babel/preset-typescript',
  5. ['const-enum', { "transform": "constObject" }]
  6. ],
  7. plugins: [
  8. ['module-resolver', {
  9. alias: {
  10. '@modules': './src/modules',
  11. '@config': './src/config',
  12. '@shared': './src/shared'
  13. }
  14. }],
  15. 'babel-plugin-transform-typescript-metadata',
  16. ['@babel/plugin-proposal-decorators', { 'legacy': true }],
  17. ['@babel/plugin-proposal-class-properties', { 'loose': true }]
  18. ],
  19. }