1. 03 Sep, 2018 7 commits
    • Tim Neutkens's avatar
      7.0.0-canary.11 · 52a4dfc8
      Tim Neutkens authored
      52a4dfc8
    • Tim Neutkens's avatar
      Use terser for minification (#5083) · 1cdc25ff
      Tim Neutkens authored
      Fixes #5021
      1cdc25ff
    • Don Alvarez's avatar
      Add with-sitemap-and-robots-express-server-typescript example (#5076) · 14c7b25f
      Don Alvarez authored
      Pulling out a few core points from the readme...
      
      This example builds from /src into /dist, managing the different expectations of express.js (es5, commonjs) and next.js (es6) by using a pair of tsconfig.json files, both of which are run by `npm run build-ts` or any of the other npm targets.
      
      Hot module reloading is largely but not completely wired up (nodemon is watching /dist but tsc isn't set up to watch /src and transpile changes in /src to /dist automatically (that's mainly because I wasn't sure how to start both nodemon and a pair of tsc watchers and be confident all would get shut down when the user killed dev mode). The readme suggests running `npm run build-ts` manually in another window to push changes from /src into /dev and on into the browser. 
      
      tslint is also wired up via `npm run tslint`
      14c7b25f
    • Tim Neutkens's avatar
      Use preset-react's development option + enable modules transform in test env (#5081) · b97fc82a
      Tim Neutkens authored
      ## Minor changes
      
      When `NODE_ENV=test` is used we'll now apply the `'auto'` configuration for modules transformation. Which causes Babel to check if the current environment needs to be transformed or not. In practice this means that the following `.babelrc` is not needed anymore:
      
      **OLD**:
      
      ```json
      {
        "env": {
          "development": {
            "presets": ["next/babel"]
          },
          "production": {
            "presets": ["next/babel"]
          },
          "test": {
            "presets": [["next/babel", { "preset-env": { "modules": "commonjs" } }]]
          }
        }
      }
      ```
      
      **NEW**:
      
      ```
      {
        "presets": ["next/babel"]
      }
      ```
      
      ## Patches
      
      `@babel/preset-react` has a `development` option that automatically applies a development-time plugin we manually applied before (`@babel/plugin-transform-react-jsx-source`). It also adds another development-time plugin that is said to make debugging/errors clearer: `@babel/plugin-transform-react-jsx-self` which we didn't apply before. Overall this means we can take advantage of preset-react to provide these plugins.
      b97fc82a
    • George Pantazis's avatar
      Use `as` instead of `url` to determine URL newness (#4153) · 56ad5121
      George Pantazis authored
      Currently, using `as` will cause the router to think the URL is not changing in the case where you're re-rendering the same page with a different route. This would most likely be an issue for custom servers
      which are using shallow routing.
      
      This should be an invisible change for non-custom-server users, since `as` is defaulted to `url` if not set.
      
      This should resolve #3065.
      56ad5121
    • Tim Neutkens's avatar
      400a04f4
    • Tim Neutkens's avatar
      7.0.0-canary.10 · 6b9b7d44
      Tim Neutkens authored
      6b9b7d44
  2. 02 Sep, 2018 10 commits
  3. 01 Sep, 2018 1 commit
  4. 31 Aug, 2018 3 commits
  5. 30 Aug, 2018 8 commits
  6. 29 Aug, 2018 1 commit
  7. 28 Aug, 2018 4 commits
  8. 27 Aug, 2018 2 commits
  9. 25 Aug, 2018 4 commits