1. 23 4月, 2019 8 次提交
  2. 22 4月, 2019 8 次提交
    • J
      Make styles compatible in AMP mode (#7060) · bc1e088b
      JJ Kasper 提交于
      * Make styles compatible in AMP mode
      
      * bump
      
      * Update to parse styles from fragment for
      backwards compat in AMP mode
      
      * Add test for AMP styles fragment support
      bc1e088b
    • J
      Update removing AMP pages to not require during build (#7081) · 80210bc3
      JJ Kasper 提交于
      * Update to use babel plugin with webpack plugin to
      remove AMP client bundles since they are not used
      
      * Remove acorn dependency since it isn't used
      80210bc3
    • T
      v8.1.1-canary.0 · bcf6918b
      Tim Neutkens 提交于
      bcf6918b
    • J
      Upgrade Terser (#6981) · f5be84e4
      Joe Haddad 提交于
      The new version of Terser seems to be significantly slower than the previous.  I wanted to see what our stats PR says.
      f5be84e4
    • J
      Update to share HMR and ondemand SSE connection (#7084) · a27c2352
      JJ Kasper 提交于
      We also close the connection when the window is in the background and re-connect when it is brought to the foreground. This prevents us from using up too many connections. 
      a27c2352
    • L
      Remove dynamic-import-node from the preset (#7096) · 08937807
      Luis Fernando Alvarez D 提交于
      Related to [this spectrum post](https://spectrum.chat/next-js/general/next-8-minor-update-breaks-dynamic-import-in-jest-tests~1e7b58e7-e301-4ef9-9de4-eef6ed3639d4).
      
      I'm not removing the `babel-plugin-dynamic-import-node` package as it's going to be used by #7016
      08937807
    • F
      Export 404 even if undefined in exportPathMap (#6912) · 54e45eb7
      Fredrik Höglund 提交于
      This PR adds the `_error`-page as an `404.html`-export, even when it is not explicitly defined in a custom `exportPathMap`.
      
      It also fixes two false negative tests related to this. Previously the tests were matching the fallback 404-page from the test-server, rather than the `404.html`-page from next, which was actually not being generated. The test server is also not set up to serve `/404.html` as `/404` which the tests now reflect.
      
      **Caveat**
      
      In its current state, this PR removes `/404.html` from the `defaultPathMap` passed to the custom `exportPathMap`-functions, since it instead adds it after that function is run. While it is possible that someone is relying on this to exist, it is to my knowledge undocumented and also unlikely to be used for anything but merging it into the custom pathMap.
      
      Since this would now merge `undefined` which would result in it being added later on anyway, I deemed it safe, but would be happy to undo that part of the PR if necessary as it was only cleanup.
      
      **Examples**
      
      As a way to demonstrate what this PR does, this is how examples changed:
      
      * `basic-export` - Behaviour is unchanged, still has a `404.html`
      * `with-static-export` - Now has a `404.html`
      54e45eb7
    • J
      Move react-ssr-prepass import inside of (#7095) · d9a6f1ca
      JJ Kasper 提交于
      ampBindInitData check
      d9a6f1ca
  3. 20 4月, 2019 5 次提交
  4. 19 4月, 2019 1 次提交
  5. 18 4月, 2019 4 次提交
  6. 17 4月, 2019 7 次提交
  7. 16 4月, 2019 5 次提交
    • J
      AMP fix escaped rel (#7045) · 75a2c45f
      JJ Kasper 提交于
      if `&amp=1` is used to point to the `amphtml` version of a page it get's escaped causing it to become `&amp=1` this fixes it to stay as `&amp=1`
      
      Closes: #7038 
      75a2c45f
    • J
      Remove client bundles for AMP only pages (#7034) · 59b328b5
      JJ Kasper 提交于
      * Remove client bundles for AMP pages
      after build since they are not used
      
      * Remove trailing white space
      
      * Use async-sema to limit removing AMP client bundles
      
      * Bring AMP client bundle removing
      semaphore concurrency down to 20
      
      * Don't check blocked pages when
      deleting AMP client bundles
      
      * Update client bundle removing for AMP pages
      
      * Add error handling for removing client AMP pages
      
      * rethrow error unless ENOENT during
      deleting AMP client pages
      
      * Handle error during removing AMP client
      pages the same during dev
      
      * Fix throwing instead of rejecting
      
      * Make sure next/config is set before requiring page
      
      * Update error check
      
      * return on reject
      
      * Fix next/config
      59b328b5
    • T
      Remove experimental flag (#7048) · 5054e943
      Tim Neutkens 提交于
      5054e943
    • J
      Remove experimental amp config (#7046) · 6f9c3aa8
      JJ Kasper 提交于
      This just removes the need for setting the experimental amp option
      6f9c3aa8
    • L
      Move next/router to Typescript (#7019) · c48340cd
      Luis Fernando Alvarez D 提交于
      Added types to next/router
      c48340cd
  8. 15 4月, 2019 2 次提交