Skip to content

Conversation

@foolip
Copy link
Collaborator

@foolip foolip commented Jun 11, 2024

Parts of this were more complicated than they need to be because
initially the dist file was a modified version of the source with
comments preserved. Now that it is just computed data, simplifications
are possible.

Also, only call computeBaseline once with the compat keys that will
actually be used. This does mean that fixing one warning could reveal
another instead of showing both at the same time, but that's not so
awful.

Parts of this were more complicated than they need to be because
initially the dist file was a modified version of the source with
comments preserved. Now that it is just computed data, simplifications
are possible.

Also, only call computeBaseline once with the compat keys that will
actually be used. This does mean that fixing one warning could reveal
another instead of showing both at the same time, but that's not so
awful.
- css.properties.bottom.anchor
- css.properties.height.anchor-size
- css.properties.inline-size.anchor-size
- css.properties.inset.anchor
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ddbeck would you like me to do extra work to tweak the sort order so that "." is sorted before "-"?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice to have but #1231 will eventually make this sort order irrelevant, right? Or at least it's a problem for that code?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right... I was thinking #1231 would only group things but not change the order, but actually it will be quite natural only order the keys that we're going to write to dist, and approach it more as "nice visual display order" and not "canonicalize for isDeepStrictEqual". Details TBD, but I think you're right it's fine to solve this problem there, if the order feels ugly after breaking up into blocks.

- css.properties.bottom.anchor
- css.properties.height.anchor-size
- css.properties.inline-size.anchor-size
- css.properties.inset.anchor
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice to have but #1231 will eventually make this sort order irrelevant, right? Or at least it's a problem for that code?

@foolip foolip changed the title Simplify and document to dist generation flow Simplify and document the dist generation flow Jun 12, 2024
@foolip foolip merged commit 0eff225 into web-platform-dx:main Jun 12, 2024
@foolip foolip deleted the dist-simpler branch June 12, 2024 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants