Skip to content

Emotion css prop using object styles produces no sourceMaps #160

@soconnor-affinity

Description

@soconnor-affinity

The Emotion swc plugin doesn't produce a sourceMappingURL comment when using the css prop with the object styles syntax.

I found existing tests for the Emotion plugin that handle the css prop w/ the css JS template literal syntax I could not find any tests for the css prop w/ object styles.

Examples

Creates sourceMappingURL

<div css={css`color: red`}>Hello</div>

Missing sourceMappingURL

<div css={{ color: 'red' }}>Hello</div>

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions