diff --git a/babel.config.js b/babel.config.js index 4b6206a9..ae7561b4 100644 --- a/babel.config.js +++ b/babel.config.js @@ -8,6 +8,7 @@ module.exports = { cwd: 'babelrc', extensions: ['.ts', '.tsx', '.js', '.ios.js', '.android.js'], alias: { + '@root': './src', '@components': './src/components', '@hooks': './src/hooks', '@actions': './src/action', diff --git a/tsconfig.json b/tsconfig.json index da6b376f..d9248cf8 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -14,6 +14,7 @@ "skipLibCheck": true, /* Skip type checking all .d.ts files. */ "baseUrl": ".", "paths": { + "@root/*": ["."], "@components/*": ["src/components/*"], "@hooks": ["src/hooks/index"], "@hooks/*": ["src/hooks/*"],