Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allows undefined inline style map in
inlineStyle()
.
Test use cases which use `:%{component}_prerender_for_test` from `prerender_component()` directly call prerender JS from a test. While we _theoretically_ have the knowledge necessary to inject the inline style map, there is no good opportunity to load it. It could be done in a hacky way by including a `ts_library(runtime_deps = [...])` (generally considered bad practice and not supported by `ts_project()`) or rewriting the user's source files in the `:%{component}_prerender_for_test` target (would break imports in a non-obvious way). Ultimately such test use cases don't really care about the inline style map, since they shouldn't be asserting against it at all. The simplest way to support them is to just allow the inline style map to not be set. This could result in future bugs where the map isn't set when it should be, but I expect usage to pretty stable and since it is an internal implementation detail, only I should be able to make that mistake, not every user of `rules_prerender`.
- Loading branch information