Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tsconfig.json オプション追加 #395

Closed
TakashiYano opened this issue Apr 14, 2023 · 1 comment
Closed

tsconfig.json オプション追加 #395

TakashiYano opened this issue Apr 14, 2023 · 1 comment

Comments

@TakashiYano
Copy link
Owner

TakashiYano commented Apr 14, 2023

  • 絶対パスでインポートする
@TakashiYano
Copy link
Owner Author

  • tsconfig.json

    • baseUrl
      • 相対パスの../を省略できる
    • incremental
      • コンパイルしたファイルのバージョンを記録するファイルを作成して、変更があった分だけをコンパイルし直す
    {
      "compilerOptions": {
        "target": "es5",
        "lib": ["dom", "dom.iterable", "esnext"],
        "allowJs": true,
        "skipLibCheck": true,
        "strict": true,
        "forceConsistentCasingInFileNames": true,
        "noEmit": true,
        "esModuleInterop": true,
        "module": "esnext",
        "moduleResolution": "node",
        "resolveJsonModule": true,
        "isolatedModules": true,
        "jsx": "preserve",
        "baseUrl": ".",
        "incremental": true
      },
      "exclude": ["node_modules", ".next", "out"], //includeで指定したファイルから特別に除外するファイルを記述する
      "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "**/*.js", "**/*.mjs"] //コンパイルする対象ファイルを記述する
    }

@TakashiYano TakashiYano changed the title tsconfig.json tsconfig.json オプション追加 Apr 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant