Skip to content

Commit

Permalink
chore: import 절대경로 가능하도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
MinGu-Jeong committed Feb 8, 2024
1 parent 0a1a98e commit d93120e
Show file tree
Hide file tree
Showing 8 changed files with 53 additions and 3 deletions.
23 changes: 22 additions & 1 deletion .pnp.cjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Binary file not shown.
Binary file modified .yarn/install-state.gz
Binary file not shown.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"@emotion/styled": "^11.11.0",
"@mui/material": "^5.15.7",
"@tanstack/react-query": "^5.18.1",
"@types/node": "^20.11.16",
"axios": "^1.6.7",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand Down
6 changes: 5 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"baseUrl": "src"
"baseUrl": ".",
"paths": {
"@/*": ["src/*"],
"@pages/*": ["src/pages/*"],
}
},
"include": ["src"],
"references": [{ "path": "./tsconfig.node.json" }]
Expand Down
9 changes: 8 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import path from 'path'

// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
})
resolve: {
alias: [
{ find: '@', replacement: path.resolve(__dirname, 'src') },
{ find: '@pages', replacement: path.resolve(__dirname, 'src/pages') },
]
}
})
17 changes: 17 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1145,6 +1145,15 @@ __metadata:
languageName: node
linkType: hard

"@types/node@npm:^20.11.16":
version: 20.11.16
resolution: "@types/node@npm:20.11.16"
dependencies:
undici-types: ~5.26.4
checksum: 51f0831c1219bf4698e7430aeb9892237bd851deeb25ce23c5bb0ceefcc77c3b114e48f4e98d9fc26def5a87ba9d8079f0281dd37bee691140a93f133812c152
languageName: node
linkType: hard

"@types/parse-json@npm:^4.0.0":
version: 4.0.2
resolution: "@types/parse-json@npm:4.0.2"
Expand Down Expand Up @@ -1500,6 +1509,7 @@ __metadata:
"@emotion/styled": ^11.11.0
"@mui/material": ^5.15.7
"@tanstack/react-query": ^5.18.1
"@types/node": ^20.11.16
"@types/react": ^18.2.43
"@types/react-dom": ^18.2.17
"@typescript-eslint/eslint-plugin": ^6.14.0
Expand Down Expand Up @@ -3629,6 +3639,13 @@ __metadata:
languageName: node
linkType: hard

"undici-types@npm:~5.26.4":
version: 5.26.5
resolution: "undici-types@npm:5.26.5"
checksum: 3192ef6f3fd5df652f2dc1cd782b49d6ff14dc98e5dced492aa8a8c65425227da5da6aafe22523c67f035a272c599bb89cfe803c1db6311e44bed3042fc25487
languageName: node
linkType: hard

"unique-filename@npm:^3.0.0":
version: 3.0.0
resolution: "unique-filename@npm:3.0.0"
Expand Down

0 comments on commit d93120e

Please sign in to comment.