Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow labelFormat option to be a function #1651

Merged
merged 2 commits into from Nov 25, 2019

Conversation

Andarist
Copy link
Member

closes #1559

@changeset-bot
Copy link

changeset-bot bot commented Nov 24, 2019

🦋 Changeset is good to go

Latest commit: 7b15d76

We got this.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@codesandbox-ci
Copy link

codesandbox-ci bot commented Nov 24, 2019

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 7b15d76:

Sandbox Source
Emotion Configuration

@codecov
Copy link

codecov bot commented Nov 24, 2019

Codecov Report

Merging #1651 into next will increase coverage by <.01%.
The diff coverage is 100%.

Impacted Files Coverage Δ
packages/babel-plugin-emotion/src/utils/label.js 98.11% <100%> (+0.15%) ⬆️
packages/sheet/src/index.js 100% <0%> (ø) ⬆️
packages/cache/src/index.js 98.9% <0%> (ø) ⬆️

if (typeof labelFormat === 'function') {
return labelFormat({
name: sanitizedName,
filename
Copy link
Member

Choose a reason for hiding this comment

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

Could we call this path to distinguish it from the filename used in the string form of labelFormat?

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure, changed.

@Andarist Andarist merged commit 0a4a22f into emotion-js:next Nov 25, 2019
@Andarist Andarist deleted the label-format-fn branch November 25, 2019 20:25
louisgv pushed a commit to louisgv/emotion that referenced this pull request Sep 6, 2020
* Allow `labelFormat` option to be a function

* Change name of filename argument to path in function labelFormat
@github-actions github-actions bot mentioned this pull request Nov 10, 2020
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.

None yet

2 participants