Skip to content

Conversation

nstepien
Copy link
Collaborator

@nstepien nstepien commented Apr 22, 2021

callstack/linaria#57 (comment)

Linaria/Stylis add a LOT of prefixed css properties, when we don't need any of them, so I disabled them. I don't think we need any prefixes anymore nowadays. And if we do I'd rather we manage it ourselves. Prefixes is a thing of the past and browsers don't add new ones anymore.
The css properties in the devtools will be less polluted now.
We don't even have any prefixes in our codebase anymore afaict.

Build output example:
image
image
image

@nstepien nstepien self-assigned this Apr 22, 2021
@nstepien nstepien marked this pull request as ready for review April 22, 2021 14:33
@nstepien nstepien requested a review from amanmahajan7 April 22, 2021 14:33
amanmahajan7
amanmahajan7 previously approved these changes Apr 22, 2021
"useBuiltIns": "entry",
"include": [
"@babel/proposal-nullish-coalescing-operator",
"@babel/proposal-optional-chaining"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

These are included anyway as long as we support "maintained node versions"
https://github.com/adazzle/react-data-grid/blob/canary/browserslist#L5

@nstepien nstepien merged commit e310ffa into canary Apr 22, 2021
@nstepien nstepien deleted the lin branch April 22, 2021 14:46
gernotkogler pushed a commit to Garaio-REM/react-data-grid that referenced this pull request May 13, 2021
* Linaria: disable autoprefixing

* rm proposal-nullish-coalescing-operator and proposal-optional-chaining in babel config
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