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

Style loader causes wrong regex match #19

Closed
aleckravets opened this issue Sep 24, 2016 · 1 comment
Closed

Style loader causes wrong regex match #19

aleckravets opened this issue Sep 24, 2016 · 1 comment

Comments

@aleckravets
Copy link

If the loaded resource is bundled with webpack+style-loader and minified (no spaces), source map loader triggers the false regex match due the the following line in the style loader's runtime code (addStyles.js:235):

css += "\n/*# sourceMappingURL=data:application/json;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + " */";

and fails trying to parse this string.

@michael-ciniawsky
Copy link
Member

michael-ciniawsky commented Mar 8, 2017

@aleckravets Should be fixed by #31

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

No branches or pull requests

2 participants