Advertisement
Guest User

Untitled

a guest
Aug 18th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. //craco.config.js
  2. const path = require('path');
  3.  
  4. module.exports = {
  5. webpack: {
  6. alias: {
  7. '@': path.resolve(__dirname, 'src/')
  8. }
  9. },
  10. jest: {
  11. configure: {
  12. moduleNameMapper: {
  13. '^@(.*)$': '<rootDir>/src$1'
  14. }
  15. }
  16. },
  17. babel: {
  18. plugins: [
  19. ["@babel/plugin-proposal-decorators", { "legacy": true }]
  20. ]
  21. }
  22. };
  23.  
  24. //jsconfig.json
  25. {
  26. "compilerOptions": {
  27. "baseUrl": "src",
  28. "paths": {
  29. "@/*": ["./*"]
  30. }
  31. },
  32. "exclude": ["node_modules", "**/node_modules/*"]
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement