1. 20 8月, 2019 1 次提交
  2. 19 8月, 2019 1 次提交
    • T
      Add custom profiler / tracer (#8378) · 46c4f20c
      Tim Neutkens 提交于
      * Add custom profiler / tracer
      
      This captures both client/production builds and everything before and after is cpu profiled, which makes sure that the whole process instead of just webpack is included in the final report.
      
      * Update tests
      
      * Update profiling-plugin.js
      
      * Rename profiling-plugin.js to profiling-plugin.ts
      
      * Update profiling-plugin.ts
      
      * Update and rename profiling-plugin.ts to profiling-plugin.js
      
      * Update webpack-config.ts
      
      * Update profiling-plugin.js
      
      * Add types
      
      * Add missing type
      
      * Add back TypeScript linting
      
      * Remove tracing-js
      46c4f20c
  3. 12 8月, 2019 1 次提交
    • J
      Followup optimizations for new experimentalPrerender (#8287) · fc7e235f
      JJ Kasper 提交于
      * Add checking for hybrid AMP during static check
      
      * Update to always hit server for prerender data
      
      * Add removing of SPR code when not used
      
      * Add checking for hybrid AMP during static check
      
      * Update to always hit server for prerender data
      
      * Add removing of SPR code when not used
      
      * Update dead code elimination
      fc7e235f
  4. 09 8月, 2019 1 次提交
    • A
      Experimental: Granular build chunking (#7696) · 3e8b36e8
      Alex Castle 提交于
      * Refactor SplitChunksPlugin configs and add experimental chunking strategy
      
      * Use typeDefs for SplitChunksConfig
      
      * Modify build manifest plugin to create runtime build manifest
      
      * Add support for granular chunks to page-loader
      
      * Ensure normal behavior if experimental granularChunks flag is false
      
      * Update client build manifest to remove iife & implicit global
      
      * Factor out '/_next/' prepending into getDependencies
      
      * Update packages/next/build/webpack-config.ts filepath regex
      Co-Authored-By: NJason Miller <developit@users.noreply.github.com>
      
      * Simplify dependency load ordering in page-loader.js
      
      * Use SHA1 hash to shorten filenames for dependency modules
      
      * Add scheduler to framework cacheGroup in webpack-config
      
      * Update page loader to not duplicate script tags with query parameters
      
      * Ensure no slashes end up in the file hashes
      
      * Add prop-types to framework chunk
      
      * Fix issue with mis-attributed events
      
      * Increase modern build size budget--possibly decrement after consulting with @janicklasralph
      
      * Use module.rawRequest for lib chunks
      Co-Authored-By: NDaniel Stockman <daniel.stockman@gmail.com>
      
      * Dasherize lib chunk names
      Co-Authored-By: NDaniel Stockman <daniel.stockman@gmail.com>
      
      * Fix typescript errors, reorganize lib name logic
      
      * Dasherize rawRequest, short circuit name logic when rawRequest found
      
      * Add `scheduler` package to test regex
      
      * Fix a nit
      
      * Adjust build manifest plugin
      
      * Shorten key name
      
      * Extract createPreloadLink helper
      
      * Extract getDependencies helper
      
      * Move method
      
      * Minimize diff
      
      * Minimize diff x2
      
      * Fix Array.from polyfill
      
      * Simplify page loader code
      
      * Remove async=false for script tags
      
      * Code golf `getDependencies` implementation
      
      * Require lib chunks be in node_modules
      
      * Update packages/next/build/webpack-config.ts
      Co-Authored-By: NJoe Haddad <timer150@gmail.com>
      
      * Replace remaining missed windows compat regex
      
      * Trim client manifest
      
      * Prevent duplicate link preload tags
      
      * Revert size test changes
      
      * Squash manifest size even further
      
      * Add comment for clarity
      
      * Code golfing 🏌️‍♂️
      
      * Correctly select modern dependencies
      
      * Ship separate modern client manifest when module/module enabled
      
      * Update packages/next/build/webpack/plugins/build-manifest-plugin.ts
      Co-Authored-By: NJoe Haddad <timer150@gmail.com>
      
      * Remove unneccessary filter from page-loader
      
      * Add lookbehind to file extension regex in page-loader
      
      * v9.0.3
      
      * Update examples for Apollo with AppTree (#8180)
      
      * Update examples for Apollo with AppTree
      
      * Fix apolloClient being overwritten when rendering AppTree
      
      * Golf page-loader (#8190)
      
      * Remove lookbehind for module replacement
      
      * Wait for build manifest promise before page load or prefetch
      
      * Updating modern-only chunks inside the right entry point
      
      * Fixing ts errors
      
      * Rename variable
      
      * Revert "Wait for build manifest promise before page load or prefetch"
      
      This reverts commit c370528c6888ba7fa71162a0854534ed280224ef.
      
      * Use proper typedef for webpack chunk
      
      * Re-enable promisified client build manifest
      
      * Fix bug in getDependencies map
      
      * Insert check for granularChunks in page-loader
      
      * Increase size limit temporarily for granular chunks
      
      * Add 50ms delay to flaky test
      
      * Set env.__NEXT_GRANULAR_CHUNKS in webpack config
      
      * Reset size limit to 187
      
      * Set process.env.__NEXT_GRANULAR_CHUNKS to false if selectivePageBuilding
      
      * Update test/integration/production/test/index.test.js
      Co-Authored-By: NJoe Haddad <timer150@gmail.com>
      
      * Do not create promise if not using chunking PR
      3e8b36e8
  5. 06 8月, 2019 1 次提交
    • J
      Experimental: Serverless Trace target (#8246) · b31c2967
      Joe Haddad 提交于
      * Experimental: Serverless Trace target
      The Serverless Trace target produces Serverless-handler wrapped entrypoints, but does not bundle all of `node_modules`.
      
      This behavior increases bundling performance to be more akin to `target: 'server'`.
      
      This mode is expected to be used with smart platforms (like [ZEIT Now](https://zeit.co/now) that can trace a program to its minimum dependencies.
      
      * Use more generic variables
      
      * Add asset relocator for production mode of serverless trace
      
      * Verify Firebase compatiblity
      
      * Revert "Add asset relocator for production mode of serverless trace"
      
      This reverts commit 8404f1dcf28b60edab41a56c94b38dcd3fddec20.
      
      * Add serverless trace tests
      
      * Add _isLikeServerless helper
      
      * Make constants
      
      * Fix export
      
      * Update packages/next-server/server/config.ts
      Co-Authored-By: NJJ Kasper <jj@jjsweb.site>
      
      * Use a global helper for is like serverless
      
      * Update import for isTargetLikeServerless
      
      * Update packages/next/build/index.ts
      Co-Authored-By: NJJ Kasper <jj@jjsweb.site>
      b31c2967
  6. 30 7月, 2019 1 次提交
  7. 25 7月, 2019 1 次提交
    • J
      Experimental module/nomodule support (#7704) · f4e6149d
      Janicklas Ralph 提交于
      * Module/nomodule implementation based on RFC 7563
      
      * Remove comment
      
      * Fixing issue with building amp pages
      
      * Fixing test cases for serverless mode
      
      * Adding safari 10 nomodule fix. Preloading modern js by default
      
      * Fixing size-limit integration test
      
      * Bug fix
      
      * Adding testcase for modern build
      
      * Trigger rebuild
      
      * Setting default crossOrigin value
      
      * Moving modern config option inside experimental flag
      
      * Adding nomodule attribute to safari-fix script
      
      * Changing safari10NomoduleFix default value to true
      
      * Removing safari-fix flag
      
      * Changing .es6 to .module
      
      * Disable modern default
      
      * Removing default crossOrigin value. Setting modern flag to false by default. Fixed test cases
      
      * Remove confusing defaults and mark required instead
      
      * Adjust blacklist
      
      * Move behavior of page marking
      
      * Fixing childCompiler errors not being captured
      
      * Tweak names
      
      * Revert
      
      * whoops
      
      * Fixing bug with page-loader.js
      
      * Changing modern babel cache name
      
      * Rename helper
      
      * Iterate over both bundles
      
      * Correctly clamp bundle sizes
      
      * Revert test
      
      * Add modern mode tests
      
      * Fix test
      
      * test
      
      * test2
      f4e6149d
  8. 14 7月, 2019 1 次提交
  9. 09 7月, 2019 1 次提交
  10. 29 6月, 2019 1 次提交
  11. 27 6月, 2019 1 次提交
  12. 24 6月, 2019 1 次提交
  13. 22 6月, 2019 1 次提交
    • G
      ncc Webpack build redux (#7628) · e85a517e
      Guy Bedford 提交于
      * Reimplement ncc webpack build
      
      This reverts commit 6feca310.
      
      * Shared webpack build
      
      * ncc workaround pending @zeit/ncc#437
      
      * update ncc
      
      * build tweaks, fixup autodll-import
      
      * possible Node 8 fix
      
      * second possible Node 8 fix
      
      * and update taskfile
      e85a517e
  14. 19 6月, 2019 1 次提交
    • J
      Re-require all module information for client-side initializers list (#7571) · 033dd5ed
      Joe Haddad 提交于
      * Re-require all module information for client-side initializers list
      We really should re-work how our loadable code words, because this passes an excessive number of modules to the client.
      
      In the ideal world, we only pass the entry module id of each chunk, but there's no point in investing the time until we switch to webpack 5 which completely revamps the chunk graph API.
      
      * Get a unique set of ids
      033dd5ed
  15. 31 5月, 2019 1 次提交
  16. 29 5月, 2019 1 次提交
    • T
      Move syntax formatting to prettier (#7454) · 3e51ddb8
      Tim Neutkens 提交于
      * Run prettier over packages/**/*.js
      
      * Run prettier over packages/**/*.ts
      
      * Run prettier over examples
      
      * Remove tslint
      
      * Run prettier over examples
      
      * Run prettier over all markdown files
      
      * Run prettier over json files
      3e51ddb8
  17. 28 5月, 2019 1 次提交
    • J
      Dynamic routing mark 2 (#7432) · e27203f8
      Joe Haddad 提交于
      * Update escape string regexp operators
      
      * temp
      
      * Extract getRouteRegex func
      
      * First iteration of dynamic routing for production only
      
      * Correctly order prod
      
      * Add serverless support
      
      * Single line it
      
      * noop routes
      
      * Format doc
      
      * Fix dynamic routing for dev
      
      * Add flag for dynamic routing
      
      * Update packages/next-server/lib/router/router.ts
      Co-Authored-By: NJJ Kasper <jj@jjsweb.site>
      
      * remove example
      
      * Add router tests
      
      * Format code
      
      * Sort routes
      
      * Update to not use posix path methods
      e27203f8
  18. 23 5月, 2019 2 次提交
    • J
      Upgrade dependencies (#7412) · f9f80dff
      Joe Haddad 提交于
      *  Upgrade workspace dependencies
      
      * Run new prettier against examples
      
      * Upgrade some next-server packages
      
      * Upgrade Next.js dependencies
      
      * Upgrade webpack deps
      
      * Upgrade async sema
      
      * Fix compilation
      
      * Revert broken plugin
      f9f80dff
    • J
      Add auto static/dynamic (#7293) · cdd54afb
      JJ Kasper 提交于
      * Add automatic exporting of pages with no getInitialProps
      
      * Add support for exporting serverless to static
      and serving the html files during next start
      
      * Fix missing runtimeEnv when requiring page, re-add warning
      when trying to export with serverless, and update tests
      
      * Update flying-shuttle test
      
      * revert un-used pagesManifest change
      
      * remove query.amp RegExp test
      
      * Fix windows backslashes not being replaced
      
      * Re-enable serverless support for next start
      
      * bump
      
      * Fix getInitialProps check
      
      * Fix incorrect error check
      
      * Re-add check for reserved pages
      
      * Fix static check
      
      * Update to ignore /api pages and clean up some tests
      
      * Re-add needed next.config for test and correct behavior
      
      * Update RegExp for ignored pages for auto-static
      
      * Add checking for custom getInitialProps in pages/_app
      
      * Update isPageStatic logic to only use default export
      
      * Re-add retrying to CircleCi
      
      * Update query during dev to only have values
      available during export for static pages
      
      * Fix test
      
      * Add warning when page without default export is
      found and make sure to update pages-manifest
      correctly in flying-shuttle mode
      
      * Fix backslashes not being replaced
      
      * Integrate auto-static with flying-shuttle
      and make sure AMP is handled in flying-shuttle
      
      * Add autoExport for opting in
      cdd54afb
  19. 17 5月, 2019 3 次提交
  20. 15 5月, 2019 1 次提交
  21. 09 5月, 2019 2 次提交
  22. 08 5月, 2019 1 次提交
  23. 02 5月, 2019 1 次提交
  24. 29 4月, 2019 1 次提交
  25. 27 4月, 2019 1 次提交
  26. 26 4月, 2019 1 次提交
  27. 25 4月, 2019 1 次提交
  28. 24 4月, 2019 3 次提交
  29. 23 4月, 2019 1 次提交
  30. 22 4月, 2019 2 次提交
  31. 12 4月, 2019 1 次提交
  32. 11 4月, 2019 2 次提交