Jerónimo Carrizo
3bc415d8b5
canary - just updating to the latest stable version of webpack ( #5623 )
...
In order to trying to resolve the bug [#5480 ](https://github.com/zeit/next.js/issues/5480 ), I create this PR which update the webpack version.
2018-11-09 14:09:12 +01:00
Tim Neutkens
a0137d4fd8
Rename class to NextJsRequireCacheHotReloader
2018-11-07 18:56:53 +01:00
Tim Neutkens
5ffbb34841
v7.0.2-canary.21
2018-11-07 18:46:35 +01:00
Tim Neutkens
d6284f171b
Don’t fail build on webpack warning ( #5622 )
2018-11-07 18:38:37 +01:00
Tim Neutkens
b46d7e8f6f
v7.0.2-canary.20
2018-11-07 15:39:23 +01:00
Tim Neutkens
2e14b4491b
Bundle @babel/runtime into server bundle ( #5619 )
2018-11-07 15:38:35 +01:00
Tim Neutkens
a82a2d8d1b
v7.0.2-canary.19
2018-11-07 14:42:00 +01:00
Tim Neutkens
88f2c1716a
Clean up dependencies between next and next-server ( #5615 )
2018-11-07 14:41:00 +01:00
Pieter De Decker
a09ca535c3
Fix typos ( #5599 )
2018-11-05 22:14:17 +01:00
Tim Neutkens
43dc610196
v7.0.2-canary.18
2018-11-05 17:53:12 +01:00
Tim Neutkens
f01457e8fc
Take full advantage of caching between builds ( #5597 )
...
Takes advantage of caching between builds for Terser, also makes writing caches for babel-loader faster by disabling compression.
Results for zeit.co (350 pages):
Without cache:
[4:16:22 PM] Compiled server in 1m
[4:16:57 PM] Compiled client in 2m
✨ Done in 125.83s.
With cache:
[4:19:38 PM] Compiled client in 17s
[4:19:50 PM] Compiled server in 29s
✨ Done in 31.79s.
Note: these results are from my multi-core Macbook Pro 2017, exact specs:
MacBook Pro (13-inch, 2017, Four Thunderbolt 3 Ports)
- 3,3 GHz Intel Core i5
- 16 GB 2133 MHz LPDDR3
- Intel Iris Plus Graphics 650 1536 MB
The `without cache` build runs uglify in parallel, so without cache is likely to take longer on environments where you have only 1 core available.
The `with cache` build however runs in a single thread, so the results should be similar.
2018-11-05 17:51:56 +01:00
Tim Neutkens
3c1c972b33
v7.0.2-canary.17
2018-11-05 01:49:35 +01:00
Tim Neutkens
1aaa288759
Remove console.log
2018-11-05 01:49:12 +01:00
Tim Neutkens
ed56d69155
v7.0.2-canary.16
2018-11-05 00:03:16 +01:00
Tim Neutkens
4945740ac7
Add dir and distDir to resolve log
2018-11-05 00:02:21 +01:00
Tim Neutkens
7876406723
v7.0.2-canary.15
2018-11-04 23:44:14 +01:00
Tim Neutkens
1388c6897e
Add resolve_config log
2018-11-04 23:42:46 +01:00
Tim Neutkens
0136db7a00
v7.0.2-canary.14
2018-11-04 23:05:54 +01:00
Tim Neutkens
d5caafb86e
Log original error
2018-11-04 23:04:54 +01:00
Tim Neutkens
a97c15d399
v7.0.2-canary.13
2018-11-04 22:17:07 +01:00
Tim Neutkens
771e494a88
Log out stats.errors and err object when build fails
2018-11-04 22:16:24 +01:00
Tim Neutkens
cb6fc6b8a8
v7.0.2-canary.12
2018-11-04 03:33:08 +01:00
Tim Neutkens
b04923775b
Add string-hash to compilation for styled-jsx
2018-11-04 03:26:52 +01:00
Tim Neutkens
ef2995d1fa
v7.0.2-canary.11
2018-11-04 01:23:14 +01:00
Tim Neutkens
54b9df535d
Handle decoding errors correctly ( #5589 )
...
Fixes #4887
Fixes #3612
Also removes http-errors dependency from next-server, leaving a smaller install size
2018-11-04 01:22:33 +01:00
Tim Neutkens
15854f515b
Transpile styled-jsx into server bundle ( #5588 )
...
Drops an additional 6MB from the next-server node_modules size as there's no lodash
2018-11-04 01:11:40 +01:00
Tim Neutkens
745b2da006
v7.0.2-canary.10
2018-11-03 19:52:45 +01:00
Tim Neutkens
b65c464d60
Move __NEXT_DATA__ into an application/json script tag ( #5584 )
...
* Move __NEXT_DATA__ into a application/json script tag
As outlined by @dav-is here https://github.com/zeit/next.js/pull/4943
* Set __NEXT_DATA__ for backwards compatability
2018-11-03 19:49:09 +01:00
Tim Neutkens
a2553bb46e
Remove registration code from initial markup ( #5583 )
...
Clears the way a bit for #4943 , also makes _document.js less complex, and will allow us to move `__NEXT_DATA__` to a `application/json` script tag.
Also this causes a slightly smaller bundle size 😌
2018-11-03 01:59:54 +01:00
Tim Neutkens
a1bdbad2cf
Move ensurePage to DevServer ( #5582 )
...
It's no longer needed inside the `render()` function since we have a separate devServer
2018-11-03 01:24:43 +01:00
Corentin.Andre
1496ad6299
fix: update correct path to use when exporting 404 page ( #5470 )
...
When exporting error page, next defaults it to 404/index.html which is not recognized as a default 404 page.
This should fix https://github.com/zeit/next.js/issues/5035
2018-11-03 01:19:41 +01:00
Robert Sköld
123b46634a
Moved nanoid use from next-server to next/build ( #5441 )
2018-11-02 23:19:48 +01:00
Henrik Wenz
b33f5e8ad2
Add Azure build status badge ( #5399 )
2018-11-02 19:49:00 +01:00
Radovan Šmitala
bf157015fb
Remove WriteFilePlugin ( #5541 )
...
It is native by webpack-dev-middleware 3.1.0 up
2018-11-02 19:47:56 +01:00
Homer Chen
ad84d23a02
Add a space on README ( #5574 )
...
Hi
Just add a space on README. That line should be same as [here](https://github.com/zeit/next.js/blob/canary/examples/using-with-router/components/ActiveLink.js#L10 )
2018-11-02 12:21:34 +01:00
Giuseppe
c95abc209b
Add with style-sheet example ( #5572 )
...
* Remove pathname (#5428 )
Same as #5424
* fix typo (#5451 )
* Add with style-sheet example
* Fix readme
* Fix typo
2018-11-01 14:05:39 +01:00
Kosuke Yoshimura
2728dbe633
Edit custom error hundling readme ( #5571 )
...
* add description of importing _error.js
* fix description of importing _error.js
* delete .idea folder
2018-11-01 11:39:50 +01:00
Patrick Smith
98568046a3
Add PropType validation for next/head children ( #5504 )
...
Give `Head` a more detailed error messages in dev mode by validating the children prop's PropTypes.
2018-10-28 23:04:35 +01:00
Max Fierro
2c343baeba
Fix issue with HMR not working ( #5544 )
...
Change the ignore patterns to ignore `.git/` folder.
Add Windows pattern matching for `.next/` and `.git/` folders.
Fixes #5429
2018-10-28 23:01:45 +01:00
Dmitriy
e382be655c
Fix readme ( #5513 )
...
* Fix readme
* Fix spelling mistake
Co-Authored-By: dipiash <dmitriytemn@gmail.com>
2018-10-26 13:42:23 -07:00
Ben James
1770efad63
Fix typo in router error message ( #5515 )
...
Tiny typo fix 🙂
2018-10-26 19:28:10 +02:00
Olivier Tassinari
e02c0d000a
Make IE 11 happy ( #5499 )
...
https://sentry.io/share/issue/3bc66ffadcad46a9aae703d5eba1e342/
![capture d ecran 2018-10-22 a 12 04 16](https://user-images.githubusercontent.com/3165635/47287491-b1683a80-d5f2-11e8-8c3f-e409340b880f.png )
2018-10-22 22:31:50 +02:00
Timmy Willison
1b8f56556b
Output warnings and errors from webpack individually ( #5442 )
...
- Shows warnings even when resolving, to facilitate hints set to 'warning'
- Fixes #876 : Set performance.hints to 'warning' or 'error' in next.config.js
2018-10-20 17:02:20 +02:00
Henrik Wenz
18488f47b0
Fix linter ( #5350 )
...
* Fix linter
* Add test env
* Fix lint errors
2018-10-20 17:00:01 +02:00
Vasyl Berezovyy
9a09de2feb
Remove ignore plugin from webpack build flow ( #5394 )
2018-10-20 16:59:43 +02:00
Alexandre Cisneiros
398dcd4281
Fix typo on README.md ( #5484 )
...
Just a quick typo fix on Multi Zones documentation :)
2018-10-20 16:56:59 +02:00
Tim Neutkens
384fbdc3aa
v7.0.2-canary.9
2018-10-11 11:42:53 +02:00
Tim Neutkens
965f50beb2
Remove pathname ( #5424 )
2018-10-10 21:58:15 +02:00
Adam Stankiewicz
299cc65d21
Show that <Head /> is needed for custom document ( #5376 )
...
* Show that <Head /> is needed for custom document
* Add comment explaining required Document fields
* Update README.md
2018-10-10 12:00:02 +02:00
Shu Ding
409cf71a4d
Move styled-jsx to external modules ( #5403 )
2018-10-08 16:26:05 +02:00
Henrik Wenz
8ac4561745
Remove AppVeyor artefacts ( #5398 )
2018-10-08 14:06:09 +02:00
Luc
c178481611
Remove @babel/runtime devDependencies in next-server ( #5360 )
...
* Move @babel/runtime to dependencies
* Remove @babel/runtime, keep @babel/runtime-corejs2
2018-10-07 21:22:47 +02:00
Henrik Wenz
ef01f13e5d
Improve test setup ( #5388 )
...
* Update jest
* Let jest start chromedriver
This makes sure chromedriver always ends even if the test was canceled by the user.
* Properly close browser in production-config test
* Properly close browser in production/security test
* Properly close browser in export test
* Properly close browser in app-aspath test
* Remove taskr from project root
This isn’t needed anymore
* Readd taskr to project root (temporary)
* Improve global setup/teardown
* Properly close browser in basic/client-navigation test
Clicking an target=_blank link will open a second browser window. We can only close this by using broser.quit()
2018-10-07 15:04:43 +02:00
Tim Neutkens
14fad91084
Use correct link to contributing.md
2018-10-06 07:35:27 +02:00
Tim Neutkens
4e73c12341
Move contributing.md to the top level
2018-10-06 07:34:09 +02:00
Tim Neutkens
51577eac1a
Update contributing.md with the new way of running build
2018-10-06 07:32:50 +02:00
Tim Neutkens
ae4c1bc5d0
Link image to nextjs.org
2018-10-06 06:18:50 +02:00
Tim Neutkens
ee696683ca
v7.0.2-canary.8
2018-10-05 23:41:38 +02:00
Tim Neutkens
0f6cff88bc
Add next-to-next-server
2018-10-05 23:40:36 +02:00
Tim Neutkens
93586573e8
v7.0.2-canary.7
2018-10-03 02:38:07 +02:00
Tim Neutkens
42c0af99ad
Add index.js to files key
2018-10-03 02:37:36 +02:00
Tim Neutkens
85c3ac94b8
v7.0.2-canary.6
2018-10-03 00:10:59 +02:00
Tim Neutkens
785377d3c3
Add missing dependencies to server ( #5369 )
...
- compile default pages correctly into `.next`
- add missing runtime dependencies
2018-10-03 00:08:57 +02:00
Tim Neutkens
de6d394d73
Use correct server path since main was changed
2018-10-02 23:11:01 +02:00
Tim Neutkens
d2cbabbae4
Make next-server expose the same handler function as next
2018-10-02 19:08:30 +02:00
Tim Neutkens
e3ef917077
v7.0.2-canary.5
2018-10-02 17:11:00 +02:00
Tim Neutkens
3246c32f63
v7.0.2-canary.4
2018-10-02 16:55:08 +02:00
Tim Neutkens
b1d8d775ee
v7.0.2-canary.3
2018-10-02 16:16:22 +02:00
Tim Neutkens
85b1c1a6b6
v7.0.2-canary.2
2018-10-02 16:02:57 +02:00
Tim Neutkens
41a570f59a
v7.0.2-canary.1
2018-10-02 15:38:22 +02:00
Tim Neutkens
2e01b3d34a
Add files key to next-server
2018-10-02 15:24:46 +02:00
Tim Neutkens
1643165e9d
v7.0.2-canary.0
2018-10-02 14:27:19 +02:00
Andy
b041fa4782
Support for wasm ( #5316 )
...
* Set a default path for wasm modules
* Added the mimetype "application/wasm" for wasm files
* Upgrade write-file-webpack-plugin to 4.4.1
* Made dynamic(import()) in test to dynamic(() => import())
2018-10-02 13:10:07 +02:00
Tim Neutkens
82d56e063a
next-server ( #5357 )
2018-10-02 00:55:31 +02:00
Martin Beierling-Mutz
532351ebcf
Replace all relative links with absolute links in README ( #5356 )
...
fixes #5355
2018-10-02 00:41:35 +02:00
Tim Neutkens
3d94ae0a7d
Drop prepare requirement from production server ( #5351 )
...
As prepare is only needed to boot up the hot reloader + exportPathMap routes in development, it's not longer a requirement in the production server.
2018-10-01 16:31:47 +02:00
Tim Neutkens
b9461824ec
Remove unused prefetch.js ( #5344 )
2018-10-01 11:15:52 +02:00
Evil Rabbit
9c287f3c32
Update repo banner
2018-09-30 23:32:43 -03:00
Tim Neutkens
b18840b0ea
Update homepage ( #5345 )
2018-10-01 01:34:54 +02:00
Tim Neutkens
b1c4f3aec4
Monorepo ( #5341 )
...
- Implements Lerna
- Moves all source code into `packages/next`
- Keeps integration tests in the root directory
2018-10-01 01:02:10 +02:00