rsnext/packages/next/build
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
..
babel Remove unused variable (#13716) 2020-06-03 11:58:58 -04:00
output Update references to zeit/next.js (#13463) 2020-05-27 17:51:11 -04:00
plugins Clean up render.tsx options (#13759) 2020-06-06 23:00:03 +00:00
polyfills Upgrade to Prettier 2 (#13061) 2020-05-18 15:24:37 -04:00
profiler Added no-shadow rule to eslint (#13645) 2020-06-01 21:00:22 +00:00
webpack Prioritize webpack bootstrapping first (#13987) 2020-06-10 04:41:59 +00:00
compiler.ts Fail production build quickly (#13496) 2020-05-28 22:51:30 +00:00
entries.ts Fix pages/index.js and pages/index/index.js behavior (#13699) 2020-06-04 17:32:45 +00:00
generate-build-id.ts Update references to zeit/next.js (#13463) 2020-05-27 17:51:11 -04:00
index.ts Prepare custom routes loading for adding additional routes (#13857) 2020-06-09 20:16:23 +00:00
is-writeable.ts Use fs.promises instead of promisify (#12026) 2020-05-02 00:10:19 -04:00
spinner.ts node-fetch, ora 2020-03-30 16:26:25 -04:00
utils.ts Prepare custom routes loading for adding additional routes (#13857) 2020-06-09 20:16:23 +00:00
webpack-config.ts Clean up render.tsx options (#13759) 2020-06-06 23:00:03 +00:00
write-build-id.ts Use fs.promises instead of promisify (#12026) 2020-05-02 00:10:19 -04:00