You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The styles in my case contains an inline source map URL and this URL is what is different (they're different because one is has a 'sourceRoot' property and contains Windows style paths, and the other does not have a 'sourceRoot' property and contains Unix style paths).
My suggestion is to only generate a hash of the styles up to the start of the source mapping URL comment (when process.env.NODE_ENV !== 'production' ofcourse).
I have tried a quick fix and replaced the previous line with the following and this seems to do the job for me:
I found that when I enable source maps, React is giving me a warning:
I looked into this and i found that when generating the class name, a hash is created from the generated CSS + some identifier name.
emotion/packages/create-emotion/src/index.js
Line 262 in d9a9e33
The styles in my case contains an inline source map URL and this URL is what is different (they're different because one is has a 'sourceRoot' property and contains Windows style paths, and the other does not have a 'sourceRoot' property and contains Unix style paths).
My suggestion is to only generate a hash of the styles up to the start of the source mapping URL comment (when process.env.NODE_ENV !== 'production' ofcourse).
I have tried a quick fix and replaced the previous line with the following and this seems to do the job for me:
The text was updated successfully, but these errors were encountered: