cssinjs / cssinjs/jss

Basic source maps support

Open
#469 1 comment 4 reactions 0 assignees View on GitHub
complexity:high
Dominant language
JavaScript
Stars
7.1k
Forks
386
PR merge metrics
No merged PRs in 30d

Description

Right now I don't know how we could support source maps pointing to the exact line in js which generated a particular rule property or even a rule. Though we could at least point to the file by creating a babel plugin which will add the file name to `jss.createStyleSheet(styles, {fileName})` or `injectSheet(styles, {fileName})` calls. The function name should be customizable.

Then JSS can render a comment `/*# sourceMappingURL=` after the css string.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.