Use Create-React-App absolute path feature

develop
Jason Zhu 2023-03-19 15:17:58 +11:00
parent bbaec4a027
commit a867ce0001
2 changed files with 7 additions and 10 deletions

View File

@ -1,6 +1,6 @@
import React from 'react';
import './App.css';
import Header from './components/Header';
import Header from 'components/Header';
import { Filters } from './Filters';
import { Pokemon } from './features/Pokedex/Pokemon';

View File

@ -1,11 +1,7 @@
{
"compilerOptions": {
"target": "es5",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
@ -18,9 +14,10 @@
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx"
"jsx": "react-jsx",
"incremental": true,
"baseUrl": "src"
},
"include": [
"src"
]
"include": ["src/**.tsx", "src/**.ts"],
"exclude": ["node_modules", "build", "public"]
}