rsnext/packages/next/build
Tim Neutkens bef9b56109
Update filename generation for client-side compilation (#14279)
Updates the way filenames are generated for browser compilation.
Notably:
- All entry bundles now have hashes in production, this includes pages (previously pages used a buildId in the path)
- The AmpFiles no longer depends on hardcoded bundle names, it uses the buildManifest instead (internals)
- All cases where we match the page name from the chunk/entrypoint name now use the same function `getRouteFromEntrypoint` (internals)
- In development we no longer include the "faked" `buildId` set to `development` for page files, instead we just use the `/_next/static/pages` path (was `/_next/static/development/pages`). This was changed as it caused unneeded complexity and makes generating the bundles easier (internals)
- Updated tons of tests to be more resilient to these changes by relying on the buildManifest instead of hardcoded paths (internals)

Follow up of these PRs:
https://github.com/vercel/next.js/pull/13759
https://github.com/vercel/next.js/pull/13870
https://github.com/vercel/next.js/pull/13937
https://github.com/vercel/next.js/pull/14130
https://github.com/vercel/next.js/pull/14176
https://github.com/vercel/next.js/pull/14268


Fixes #6303
Fixes #12087 
Fixes #1948
Fixes #4368
Fixes #4255
Fixes #2548
2020-06-20 19:59:47 +00:00
..
babel Clean up AMP bundle removal (#14130) 2020-06-14 12:49:46 +00: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 Update filename generation for client-side compilation (#14279) 2020-06-20 19:59:47 +00:00
compiler.ts Prepare for webpack 5 upgrade (#14268) 2020-06-17 15:00:29 +00:00
entries.ts Update filename generation for client-side compilation (#14279) 2020-06-20 19:59:47 +00:00
generate-build-id.ts Update references to zeit/next.js (#13463) 2020-05-27 17:51:11 -04:00
index.ts Update filename generation for client-side compilation (#14279) 2020-06-20 19:59:47 +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 docs: update links to docs site (#14305) 2020-06-18 09:54:07 +00:00
webpack-config.ts Update filename generation for client-side compilation (#14279) 2020-06-20 19:59:47 +00:00
write-build-id.ts Use fs.promises instead of promisify (#12026) 2020-05-02 00:10:19 -04:00