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
iframe style tags are stripped by Vite 2.8.5 #266
Comments
Thanks, I'm working with the vite folks to figure out what's going wrong. vitejs/vite#7124 |
Now that Vite uses I've tried to tweak the condition into something silly like this: if (req.url.match(/\?html-proxy/) || !req.url.match(/^\/iframe.html($|\?)/)) {
next();
return;
} This seems to work fine in my case but this requires additional checks with Storybook's query parameters. |
Have confirmed this issue is fixed for Vite 2.8.6. Will close as there are other issues tracking the underlying problem. Thanks everyone! |
Fixes #266 See comment #266 (comment) * Upgraded to Vite 2.8.5 to reproduce the issue * Updated outdated CONTRIBUTING.md
When Vite 2.8.5 executes
transformIndexHtml
and internally runs "devHtmlHook", all the<style>
are stripped from the iframe<head>
resulting in Storybook's template code being exposed:Have confirmed that this issue is new for 2.8.5 (downgrading to 2.8.4 doesn't exhibit this behaviour).
The text was updated successfully, but these errors were encountered: