aspect-build / aspect-build/rules_ts

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

Open
#449 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Starlark
Stars
138
Forks
87
Avg merge
2d 8h
Merged PRs (30d)
3

Description

### 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_

Contributor guide

Open the contributing guide

Research direction

Start with the linked buggytsproject reproduction and the ts_project configuration using transpiler outputs with esbuild. Run the Bazel build, change the TypeScript source, and compare the final compiled bundle. Done means source changes are reflected in the bundle rather than a stale build being reused.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react, typescript
Domain
build-system, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.