We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 37dd206 commit 4b1322eCopy full SHA for 4b1322e
src/server/template-renderer/index.js
@@ -192,7 +192,7 @@ export default class TemplateRenderer {
192
windowKey = '__INITIAL_STATE__'
193
} = options || {}
194
const autoRemove = process.env.NODE_ENV === 'production'
195
- ? '(function(){var s;(s=document.currentScript||document.scripts[document.scripts.length-1]).parentNode.removeChild(s);}());'
+ ? ';(function(){var s;(s=document.currentScript||document.scripts[document.scripts.length-1]).parentNode.removeChild(s);}());'
196
: ''
197
return context[contextKey]
198
? `<script>window.${windowKey}=${
0 commit comments