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

Fable removes all .js files from .fable_modules when a file in project is added/removed #3641

Open
lukaszkrzywizna opened this issue Dec 5, 2023 · 1 comment

Comments

@lukaszkrzywizna
Copy link

Description

During fable watch, any file adding/removing causes the clearing of all .js files within fable_modules resulting whole application failing. Only rerun helps.

Repro code

  1. Running fable watch ./src/{my-project} --outDir ./src/{my-project}/.fable-build
  2. Adding/Removing a file in a project

The video shows the problem:

fable_modules.mp4

Related information

  • Fable version: 4.6.0
  • Operating system: Mac OS 14 Sonoma
@MangelMaxime
Copy link
Member

Indeed, it looks like when Fable detect a change to the fsproj it cleans the fable_modules, then restore the fsproj/csproj and rebuild the fable_modules however without compiling the Fable dependencies back.

IHMO Fable, should not clean the fable_modules as a whole and instead remove only the dependencies that changed (removed, version changed, added) and keep the others in place.

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

2 participants