Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //craco.config.js
- const path = require('path');
- module.exports = {
- webpack: {
- alias: {
- '@': path.resolve(__dirname, 'src/')
- }
- },
- jest: {
- configure: {
- moduleNameMapper: {
- '^@(.*)$': '<rootDir>/src$1'
- }
- }
- },
- babel: {
- plugins: [
- ["@babel/plugin-proposal-decorators", { "legacy": true }]
- ]
- }
- };
- //jsconfig.json
- {
- "compilerOptions": {
- "baseUrl": "src",
- "paths": {
- "@/*": ["./*"]
- }
- },
- "exclude": ["node_modules", "**/node_modules/*"]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement