Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(gatsby): lazy bundle page components in dev server #27884

Merged
merged 36 commits into from
Nov 17, 2020
Merged

Commits on Nov 6, 2020

  1. feat(gatsby): lazy compile page components in dev server

    This means we only compile the core runtime code initially — page components are only compiled when the user visits the page.
    KyleAMathews committed Nov 6, 2020
    Configuration menu
    Copy the full SHA
    b78ee23 View commit details
    Browse the repository at this point in the history
  2. Fix lint

    KyleAMathews committed Nov 6, 2020
    Configuration menu
    Copy the full SHA
    636afaf View commit details
    Browse the repository at this point in the history
  3. Cleanup logs

    KyleAMathews committed Nov 6, 2020
    Configuration menu
    Copy the full SHA
    b46f680 View commit details
    Browse the repository at this point in the history
  4. cleanups

    KyleAMathews committed Nov 6, 2020
    Configuration menu
    Copy the full SHA
    a47442e View commit details
    Browse the repository at this point in the history
  5. fix tests

    KyleAMathews committed Nov 6, 2020
    Configuration menu
    Copy the full SHA
    a378040 View commit details
    Browse the repository at this point in the history
  6. Don't bother with navigating — if webpack doesn't update — the user p…

    …robably has errors in their code or something bigger is wrong so let them just refresh, etc.
    KyleAMathews committed Nov 6, 2020
    Configuration menu
    Copy the full SHA
    a268a4d View commit details
    Browse the repository at this point in the history

Commits on Nov 9, 2020

  1. Update packages/gatsby/src/bootstrap/requires-writer.ts

    Co-authored-by: Ward Peeters <ward@coding-tech.com>
    KyleAMathews and wardpeet authored Nov 9, 2020
    Configuration menu
    Copy the full SHA
    4d07210 View commit details
    Browse the repository at this point in the history
  2. Update packages/gatsby/cache-dir/dev-loader.js

    Co-authored-by: Ward Peeters <ward@coding-tech.com>
    KyleAMathews and wardpeet authored Nov 9, 2020
    Configuration menu
    Copy the full SHA
    59a0385 View commit details
    Browse the repository at this point in the history
  3. Fix lint error

    KyleAMathews committed Nov 9, 2020
    Configuration menu
    Copy the full SHA
    1cef9c0 View commit details
    Browse the repository at this point in the history

Commits on Nov 10, 2020

  1. Wait until we know staticQueryHashes are written to page-data.json files

    We only discover static queries for pages after the component is compiled.
    
    Which means when we lazily add page components, we initially don't know
    what static queries should be loaded. To track this, we mark page-data.json
    files as not bundled & only after the staticQueryHashes is written do we
    accept the page as loaded.
    KyleAMathews committed Nov 10, 2020
    Configuration menu
    Copy the full SHA
    56d5288 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    29db87e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    afc77cc View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    237d715 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    d23f5fb View commit details
    Browse the repository at this point in the history

Commits on Nov 11, 2020

  1. Configuration menu
    Copy the full SHA
    f87a58c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    208cedf View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    94aa19f View commit details
    Browse the repository at this point in the history

Commits on Nov 12, 2020

  1. Configuration menu
    Copy the full SHA
    902cf62 View commit details
    Browse the repository at this point in the history
  2. fix ordering of merge

    KyleAMathews committed Nov 12, 2020
    Configuration menu
    Copy the full SHA
    4bca292 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    36738e3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    84fb3b0 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    2cf3a66 View commit details
    Browse the repository at this point in the history
  6. Didn't need this

    KyleAMathews committed Nov 12, 2020
    Configuration menu
    Copy the full SHA
    c202cdf View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    6f55655 View commit details
    Browse the repository at this point in the history

Commits on Nov 13, 2020

  1. Fix tests

    KyleAMathews committed Nov 13, 2020
    Configuration menu
    Copy the full SHA
    eb88597 View commit details
    Browse the repository at this point in the history
  2. Remove logs

    KyleAMathews committed Nov 13, 2020
    Configuration menu
    Copy the full SHA
    68236bf View commit details
    Browse the repository at this point in the history

Commits on Nov 16, 2020

  1. Configuration menu
    Copy the full SHA
    acfbe67 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a5fcd13 View commit details
    Browse the repository at this point in the history

Commits on Nov 17, 2020

  1. Configuration menu
    Copy the full SHA
    53051e9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d140a1b View commit details
    Browse the repository at this point in the history
  3. Address @pieh feedback

    KyleAMathews committed Nov 17, 2020
    Configuration menu
    Copy the full SHA
    68efb11 View commit details
    Browse the repository at this point in the history
  4. Update packages/gatsby/src/utils/start-server.ts

    Co-authored-by: Michal Piechowiak <misiek.piechowiak@gmail.com>
    KyleAMathews and pieh authored Nov 17, 2020
    Configuration menu
    Copy the full SHA
    433918f View commit details
    Browse the repository at this point in the history
  5. Remove global middleware

    KyleAMathews committed Nov 17, 2020
    Configuration menu
    Copy the full SHA
    fbd17a9 View commit details
    Browse the repository at this point in the history
  6. This isn't true

    KyleAMathews committed Nov 17, 2020
    Configuration menu
    Copy the full SHA
    3113e12 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    78c0382 View commit details
    Browse the repository at this point in the history
  8. fix lint

    KyleAMathews committed Nov 17, 2020
    Configuration menu
    Copy the full SHA
    34151f9 View commit details
    Browse the repository at this point in the history