Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

TypeScriptCompileBlocked #399

@lucamorelli

Description

@lucamorelli

please, I suggest a small update in the documentation on how to add hot module reload in a existing project.
To make it work with the ts loader like in your sample I found that I have to add this
<TypeScriptCompileBlocked>true</TypeScriptCompileBlocked>
to the project file.

If you don't do this, ts compiles to a js file, and webpack look at first the js compiled file, see that is not changed and doesn't trigger the reload.

you have 2 solutions:

  1. add that to the project.
  2. and compileOnSave to the tsconfig, this way that js file is updated and webpack reload the changed files.

This thing has made me mad for a week.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions