Skip to content

Conversation

@thyming
Copy link

@thyming thyming commented Feb 9, 2022

Hi, I was tracking down today why builds for some of our apps were not deterministic. I believe it's because no from is provided to postcss.parse, so it generates a random ID every compilation. I am out of my depth with frontend tooling, so I wasn't sure how this from value is used and if what I've done is appropriate. Regardless, I believe it should be something stable and non-null.

See postcss/postcss#1512 and #3356 for a related issue and discussion.

Fixes #7583

@thyming thyming changed the title Add a when postcss parsing preflight Add a from when postcss parsing preflight Feb 9, 2022
@thecrypticace thecrypticace self-assigned this Feb 22, 2022
@thecrypticace
Copy link
Contributor

Thanks! Gonna take a look at this either today or tomorrow as I'll be making a few fixes to source map generation.

@thecrypticace
Copy link
Contributor

Thanks for the PR! In the end the real issue ended up being elsewhere — we are supposed to overwrite the source on all nodes even those produced by plugins and were not doing so recursively so there were a lot of lines that didn't have source maps attached. This did however lead me to discover that we weren't setting some stuff up correctly so I really appreciate it!

@thyming thyming deleted the postcss-from-preflight branch February 23, 2022 22:19
@thyming
Copy link
Author

thyming commented Feb 23, 2022

Awesome, thanks for the fix.

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.

Tailwind preflight doesn't produce sourcemap file deterministically

2 participants