Skip to content

Instantly share code, notes, and snippets.

@rpf5573
Created September 10, 2019 06:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rpf5573/c700fe277084dc7cb01ae617c5d0d852 to your computer and use it in GitHub Desktop.
Save rpf5573/c700fe277084dc7cb01ae617c5d0d852 to your computer and use it in GitHub Desktop.
tsconfig.json
{
"compilerOptions": {
"target": "es2015",
"module": "commonjs", // commonjs방식으로 module을 import한다
"moduleResolution": "node", // nodejs에서 사용하는 방식으로 module을 찾아서 import한다
"strict": true,
"noResolve": false, // Do not add triple-slash references or module import targets to the list of compiled files.
"jsx": "react",
"allowSyntheticDefaultImports": true, // Allow default imports from modules with no default export. This does not affect code emit, just typechecking.
"resolveJsonModule":true, // import {name as appName} from '../app.json'; 이걸 가능하게 해준다. 즉 json파일을 import할 수 있도록 만들어준다
"typeRoots": ["./node_modules/@types", "./src/@types"]
},
"exclude": [
"node_modules",
"dest",
"android",
"ios"
],
"include": ["./src/**/*", "index.tsx"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment