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

Remove i from style tag id #40

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

alexanderchr
Copy link
Contributor

The i added to the style tag id in #13 solved some problems - but caused another: if one module is imported from multiple other modules it may be added as two style tags. This happens because one module may get two different identifiers: i.e. s-${id}-2 and s-${id}-0.

See this test case: https://github.com/alexanderchr/isomorphic-style-loader/blob/0533d1acc0fc1225fb1759854734091607f96be8/test/insertCssSpec.js#L69

@coveralls
Copy link

coveralls commented May 4, 2016

Coverage Status

Coverage increased (+9.2%) to 84.211% when pulling 5bbf41e on alexanderchr:remove-index-from-id into 6ff8064 on kriasoft:master.

@coveralls
Copy link

coveralls commented May 4, 2016

Coverage Status

Coverage increased (+8.9%) to 83.929% when pulling 5bbf41e on alexanderchr:remove-index-from-id into 6ff8064 on kriasoft:master.

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.

2 participants