You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have 2 entry points, index.html and profile.html, each of loading their own specific piece of JavaScript, index.js and profile.js. Both these JS files depend on a common dependency utils.js. If utils.js is big enough to become its own chunk, the resulting HTML contains an additional <script> tag for the common dependencies.
🐛 bug report
I have 2 entry points,
index.html
andprofile.html
, each of loading their own specific piece of JavaScript,index.js
andprofile.js
. Both these JS files depend on a common dependencyutils.js
. Ifutils.js
is big enough to become its own chunk, the resulting HTML contains an additional<script>
tag for the common dependencies.🎛 Configuration (.babelrc, package.json, cli command)
Please see repro repo
🤔 Expected Behavior
The
<script>
tag for the common dependency should havedefer
if the original<script>
tag has adefer
attribute. Same forasync
.😯 Current Behavior
The
<script>
tag for the common dependency does not have any attributes and is therefore renderblocking.💁 Possible Solution
🔦 Context
Normal web development.
💻 Code Sample
Please see repro repo
🌍 Your Environment
The text was updated successfully, but these errors were encountered: