Open jrencz opened 6 years ago
One of dependencies of the module being entry point to a chunk inlined with html-webpack-inline-chunk-plugin has core-js in it. It contains this line
html-webpack-inline-chunk-plugin
https://github.com/zloirock/core-js/blob/a08b6d46ea3f02a33b17df552e73078b42c5b78f/client/shim.js#L1109
(minified it looks like this: t.write("<script>document.F=Object<\/script>"))
t.write("<script>document.F=Object<\/script>")
Inlined it looks like this:
<script type="text/javascript>/* ... */t.write("<script>document.F=Object</script>")/* ... */</script>
Which breaks parsing. The script tag needs to be escaped
Related: https://wls.wwco.com/blog/2007/04/25/using-script-in-a-javascript-literal/ (yeah, it's old but it's definitely on tipic)
One of dependencies of the module being entry point to a chunk inlined with
html-webpack-inline-chunk-plugin
has core-js in it. It contains this linehttps://github.com/zloirock/core-js/blob/a08b6d46ea3f02a33b17df552e73078b42c5b78f/client/shim.js#L1109
(minified it looks like this:
t.write("<script>document.F=Object<\/script>")
)Inlined it looks like this:
Which breaks parsing. The script tag needs to be escaped
Related: https://wls.wwco.com/blog/2007/04/25/using-script-in-a-javascript-literal/ (yeah, it's old but it's definitely on tipic)