aspect-build / rules_ts

Bazel rules for the `tsc` compiler from http://typescriptlang.org
https://docs.aspect.build/rules/aspect_rules_ts
Apache License 2.0
104 stars 59 forks source link

[Bug]: ts_project with esbuild with transpiler enabled produced stale build #449

Open Exegetech opened 1 year ago

Exegetech commented 1 year ago

What happened?

When ts_project is used with transpiler and the outputs be made available to esbuild, it results in stale build. The code changes are not reflected in the final compiled bundle.

What I expect: it should build correctly.

Version

Development (host) and target OS/architectures: Rock Linux 9.1 (Blue Onyx) x86_64

Output of bazel --version: 6.2.0

Version of the Aspect rules, or other relevant rules from your WORKSPACE or MODULE.bazel file: Indicated in the provided link of the repo

Language(s) and/or frameworks involved: JavaScript, TypeScript, React

How to reproduce

I have a repo to reproduce it here https://github.com/Exegetech/buggytsproject

Any other information?

No response

alexeagle commented 8 months ago

I suspect this was https://github.com/aspect-build/rules_esbuild/issues/58 - which is just recently fixed. Could you confirm if that fixes it for you pls @Exegetech ?