Skip to content

preserveSymlinks option not honored #332

@ryedin

Description

@ryedin

Current behavior

If you have folders of code that are symlinked into src (very common pattern for monorepo style development), the type checker does not re-trigger when those files are changed.

Expected behavior

I should be able to make changes to those symlinked files and have the typechecker correctly re-run checks.

Steps to reproduce the issue

Setup a basic CRA app with typescript enabled. Have another folder of typescript code sitting as sibling to your project. Create a symlink within the CRA src folder to your "shared" folder.
add "preserveSymlinks": true, to your tsconfig.json.

If you create a typescript error on purpose in the shared code and start the app you will observe the checker does correctly pick up the code and display the error. However, if you fix the error, the checker does not automatically re-check as it would if the file lived natively in the CRA app's src dir.

Environment

  • fork-ts-checker-webpack-plugin: 1.5.0 (from current version of CRA scripts)
  • typescript: 3.5.3
  • tslint: N/A
  • webpack: 4.39.1 (current version in CRA)
  • os: Mac 10.13.3 (AND Ubuntu 18.04)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions