Closed rbhalla closed 1 year ago
@rbhalla did the following PR by @jacksteamdev resolve this issue?
If so, maybe this issue can be closed now?
Hi @karlhorky, unfortunately I've been unable to test since the codebase I'm using this library with is not on the beta tag.
I'm happy to close this though since the PR does directly address this problem. I'll reopen if necessary.
Build tool
Rollup
Where do you see the problem?
Describe the bug
When making a change to certain .tsx files I am not seeing the built files get an update.
It seems to be happening in a very odd scenario though, read reproduction for steps.
Reproduction
https://github.com/rbhalla/crxjs-bug-repro/tree/tsx-not-updating
Use
npm run dev
to get started. Open thesrc/ContextWrapper.tsx
in thedist
folder and keep an eye on it. Open the original and make a trivial change (I've included aconsole.log
to be changed).It will not update the
dist
file. There are two ways I've found to fix this: 1) Remove thefoo
function being exported. I've noticed that you need to hit save twice before this reflects in thedist
file. From then on, all changes in that file will be immediate.2) Remove the
Wrapper
reference insrc/main.tsx
on line 14 and 16. I have no idea why this is the case, but when you do that, changes toContextWrapper
start saving properly.Logs
No response
System Info
Severity
annoyance