Egor Blinov
Egor Blinov
> Yes, that needs to be added to Yoga which is a whole other project. already [done](https://github.com/facebook/yoga/pull/1116), waiting for merge for 6 months
For now, I added `emitCSS: true` in the node output, and that fixed the problem for me.
@dalisoft could you please help me understand how Propose 2 can work with dynamic value?
In order for TS to infer something with `as const` assertion, that something needs to be literal, which is impossible for dynamic values. From the TS diagnostic: ``` A 'const'...
What happens when AST is parsed by Rust and then transferred to JS is _conceptually_ not different from `JSON.parse` So how would you use `as const` to get type inference...
Indeed, that will work, but this is not quite the mainstream usage of the ast parsers :)
@orta @ds300 please take a look
@hardfist the time is spent here https://github.com/web-infra-dev/rspack/blob/2bd905d47e731772365637188c929f5371e60267/packages/rspack/src/node/NodeWatchFileSystem.ts#L108 But I doubt the straightforward solution https://github.com/web-infra-dev/rspack/issues/7490#issuecomment-2273955633 will work in cases when you add new `import` and add new modules to the build...
I think the ideal solution will be if `Watchpack` has an incremental implementation for `watch` that would only add new handlers for new files.
@vkurchatkin-miro indeed, but it's a bit late, as it already runs all files through `filter()` right before.