-
Notifications
You must be signed in to change notification settings - Fork 1
Increase specificity for hybrid ui #1
base: master
Are you sure you want to change the base?
Conversation
"prebuild:dist": "rimraf dist/*", | ||
"build:dist": "rollup -c && rollup -c --environment ESBUNDLE && rollup -c --environment PRODUCTION", | ||
"build:dist": | ||
"rollup -c && rollup -c --environment ESBUNDLE && rollup -c --environment PRODUCTION", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wow they're using rollup
updatedStrings[0] = `${cssWrapperStart}${updatedStrings[0]}` | ||
updatedStrings[updatedStrings.length - 1] = `${updatedStrings[ | ||
updatedStrings.length - 1 | ||
]}${cssWrapperEnd}` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updatedStrings.push(`${updatedStrings.pop()}${cssWrapperEnd}`)
possibly looks nicer, but probably less performant, maybe also more convoluted, whaddayathink?
I wish we could do array[-1] like python
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm. I’ll try. I was having a lot of issues working with that strings array. I’m not sure if it’s typescript or what.
@@ -1,26 +1,43 @@ | |||
// @flow | |||
import type { Interpolation, Target } from '../types' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no semi-colons! those bastards!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah. I have a really hard time reading this code.
I was planning on leaving this in a branch for now. Unless we can identify a way to make it generic and submit it to styled components. |
that sounds fine, another thing we need to figure out for cleanup post release and rollout |
DO NOT PR TO STYLED-COMPONENTS
This branch currently has the code we are using to increase specificity of classes for the hybrid UI. It also includes the ability to push this to our private repo.