rsnext/packages/next/pages
Joe Haddad d874329d11
Prioritize webpack bootstrapping first (#13987)
Webpack will randomly execute script order if its runtime is not prioritized before chunks execute.

This seems to be somehow triggered in #13870 because of slightly different script ordering.

This had actually broke CSS, which is why our tests are failing 50% of the time:

Without this PR:
![image](https://user-images.githubusercontent.com/616428/84221491-57f0a000-aaa3-11ea-9dff-c27c87d29ac5.png)

However, it's still problematic to use `async` in development since we rely on script execution order. So, this PR disables `async` in development.

We're exploring `defer` in the future anyway (over `async`), which will be ordered, so I don't mind diverging between dev and prod in this way.

---

Fixes #13911
2020-06-10 04:41:59 +00:00
..
_app.tsx Update references to zeit/next.js (#13463) 2020-05-27 17:51:11 -04:00
_document.tsx Prioritize webpack bootstrapping first (#13987) 2020-06-10 04:41:59 +00:00
_error.tsx Add support for static 404 when _error does not have custom GIP (#11062) 2020-03-14 09:58:20 +01:00