Skip to content
This repository was archived by the owner on Feb 18, 2025. It is now read-only.

Conversation

nvanselow
Copy link
Collaborator

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.

"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",

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}`

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

Copy link
Collaborator Author

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'

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!

Copy link
Collaborator Author

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.

@nvanselow
Copy link
Collaborator Author

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.

@genedwards
Copy link

that sounds fine, another thing we need to figure out for cleanup post release and rollout

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants