- 25 Sep, 2018 2 commits
-
-
Tim Neutkens authored
-
Tim Neutkens authored
* Add failing tests * Upgrade wd module * Pass dynamic import webpack ids to the client side * Pass through webpack ids to initalializer and only use those * Compile dynamic(import()) to dynamic(() => import()) * Default dynamicIds * Use forked hard-source-plugin * Possibly fix test * Make tests fail less intermittently * Temporarily disable hard-source in production * Make sure dynamic import chunks are unique * Disable hard-source * Log html if error is thrown * Fix test
-
- 24 Sep, 2018 1 commit
-
-
Zack Tanner authored
This fixes https://github.com/zeit/next.js/issues/5260 by making sure that `index.js` has `getInitialProps` defined on the page exported component, not the child component. When fixing that, I uncovered an issue where the server side rendered HTML did not match the clientside HTML, so I reworked _app.js to use the `i18nextprovider` component which has props to hydrate the initial data (for SSR), and makes sure the correct i18n instance is passed to all child components through context. Before: ```html <!DOCTYPE html> <html> <head> <meta charSet="utf-8" class="next-head"/> <link rel="preload" href="/_next/static/development/pages/index.js" as="script"/> <link rel="preload" href="/_next/static/development/pages/_app.js" as="script"/> <link rel="preload" href="/_next/static/development/pages/_error.js" as="script"/> <link rel="preload" href="/_next/static/runtime/webpack.js" as="script"/> <link rel="preload" href="/_next/static/runtime/main.js" as="script"/> </head> <body> <div id="__next"></div> <script src="/_next/static/development/dll/dll_4a2ab6ce0cb456fbfead.js"></script><script>__NEXT_DATA__ = {"props":{"pageProps":{}},"page":"/","pathname":"/","query":{},"buildId":"development"};__NEXT_LOADED_PAGES__=[];__NEXT_REGISTER_PAGE=function(r,f){__NEXT_LOADED_PAGES__.push([r, f])}</script><script async="" id="__NEXT_PAGE__/" src="/_next/static/development/pages/index.js"></script><script async="" id="__NEXT_PAGE__/_app" src="/_next/static/development/pages/_app.js"></script><script async="" id="__NEXT_PAGE__/_error" src="/_next/static/development/pages/_error.js"></script><script src="/_next/static/runtime/webpack.js" async=""></script><script src="/_next/static/runtime/main.js" async=""></script> </body> </html> ``` After: ```html <!DOCTYPE html> <html> <head> <meta charSet="utf-8" class="next-head"/> <link rel="preload" href="/_next/static/development/pages/index.js" as="script"/> <link rel="preload" href="/_next/static/development/pages/_app.js" as="script"/> <link rel="preload" href="/_next/static/development/pages/_error.js" as="script"/> <link rel="preload" href="/_next/static/runtime/webpack.js" as="script"/> <link rel="preload" href="/_next/static/runtime/main.js" as="script"/> </head> <body> <div id="__next"> <h1>This example integrates react-i18next for simple internationalization.</h1> <div> <h1>welcome to next.js</h1> <p>This example integrates react-i18next for simple internationalization.</p> <p>test words for en</p> <div><button>fire in the wind for en</button></div> <p>You can either pass t function to child components.</p> <p>Or wrap your component using the translate hoc provided by react-i18next.</p> <p>Alternatively, you can use <code>Trans</code> component.</p> <a href="/page2">Go to page 2</a><br/><a href="/page3">Go to page 3 (no hoc)</a> </div> </div> <script src="/_next/static/development/dll/dll_4a2ab6ce0cb456fbfead.js"></script><script>__NEXT_DATA__ = {"props":{"pageProps":{"i18n":null,"initialI18nStore":{"en":{"home":{"welcome":"welcome to next.js","sample_test":"test words for en","sample_button":"fire in the wind for en","link":{"gotoPage2":"Go to page 2","gotoPage3":"Go to page 3 (no hoc)"}},"common":{"integrates_react-i18next":"This example integrates react-i18next for simple internationalization.","pureComponent":"You can either pass t function to child components.","extendedComponent":"Or wrap your component using the translate hoc provided by react-i18next.","transComponent":"Alternatively, you can use \u003c1\u003eTrans\u003c/1\u003e component."}}},"initialLanguage":"en-US"}},"page":"/","pathname":"/","query":{},"buildId":"development"};__NEXT_LOADED_PAGES__=[];__NEXT_REGISTER_PAGE=function(r,f){__NEXT_LOADED_PAGES__.push([r, f])}</script><script async="" id="__NEXT_PAGE__/" src="/_next/static/development/pages/index.js"></script><script async="" id="__NEXT_PAGE__/_app" src="/_next/static/development/pages/_app.js"></script><script async="" id="__NEXT_PAGE__/_error" src="/_next/static/development/pages/_error.js"></script><script src="/_next/static/runtime/webpack.js" async=""></script><script src="/_next/static/runtime/main.js" async=""></script> </body> </html> ```
-
- 23 Sep, 2018 6 commits
-
-
John Leon authored
* Update .babelrc babel-plugin-transform-decorators-legacy does not exist in babel 7 in replace use @babel/plugin-proposal-decorators * Update package.json Acording the last commit please, test this example , will be work .
-
Adam Lane authored
Trivial note to remind anyone doing sentry that they should consider doing server side logging too.
-
Adam Lane authored
Noting per https://github.com/zeit/next.js/issues/5050 for new users of Apollo that they should not be concerned about multiple renders.
-
Henrik Wenz authored
* Allow deadCodeElemination when using process.browser * Add process.browser test
-
Henrik Wenz authored
Follow up on: https://github.com/zeit/next.js/pull/4639
-
Henrik Wenz authored
- updates transform-decorators-legacy - updates with-next-redux-wrapper
-
- 22 Sep, 2018 5 commits
-
-
Henrik Wenz authored
-
Henrik Wenz authored
Wonder how that one got through
🤔 -
Arek Mytych authored
-
Muhaimin CS authored
-
Iago Bruno authored
I think it looks better for new people in JavaScript/React (and for my perfectionism
😄 ).
-
- 21 Sep, 2018 1 commit
-
-
Arek Mytych authored
Fixes the example with next.js@7 Fixes #5238
-
- 20 Sep, 2018 7 commits
-
-
Alessandro authored
FIX https://github.com/zeit/next.js/issues/5234 It simply needed to update dependencies
-
Tim Neutkens authored
-
Eugene authored
Update to new @babel/plugin-proposal-decorators, @babel/plugin-proposal-class-properties plugins version.
-
Yuri Yakovlev authored
-
Damian Stasik authored
Since `__next-error` is no longer necessary, there is no need to wrap the `__next` div in `Fragment`.
-
Ian Mitchell authored
-
Julien Bouquillon authored
-
- 19 Sep, 2018 3 commits
-
-
Tim Neutkens authored
Fixes #5210
-
Tim Neutkens authored
-
Tim Neutkens authored
# Conflicts: # package.json
-
- 18 Sep, 2018 1 commit
-
-
Henrik Wenz authored
This way the warnings will work in test mode. (`process.env.NODE_ENV === „test“`)
-
- 17 Sep, 2018 5 commits
-
-
Tim Neutkens authored
-
Tim Neutkens authored
-
Tim Neutkens authored
Fixes an edge case where some library imports react-dom by itself, like react-spring.
-
Tim Neutkens authored
-
Tim Neutkens authored
-
- 16 Sep, 2018 8 commits
-
-
Stephen Sauceda authored
Adding an example of testing with Mocha #4767
-
Tim Neutkens authored
-
Tim Neutkens authored
-
Tim Neutkens authored
-
Tim Neutkens authored
-
Tim Neutkens authored
Follow-up of #5176 Closes #5173 as it led to inconsistencies in DX.
-
Tim Neutkens authored
First wave of changes. Just landing this first so that there is a base to build on.
-
René Keller authored
./css.js has been removed with [e093441b](https://github.com/zeit/next.js/commit/e093441bad588e98765a05df90f76f75283eda07#diff-b9cfc7f2cdf78a7f4b91a753d10865a2)
-
- 14 Sep, 2018 1 commit
-
-
Tim Neutkens authored
-