JJ Kasper
a38c6cb3d9
Add err.sh link for threw undefined ( #6649 )
...
* Add err.sh link for threw undefined
* Update wording
Co-Authored-By: ijjk <22380829+ijjk@users.noreply.github.com>
2019-03-13 15:08:06 -05:00
JJ Kasper
1e4372c627
Show a better error when someone throws undefined ( #6646 )
...
* Show a better error when someone throws undefined
* Update error wording
Co-Authored-By: ijjk <22380829+ijjk@users.noreply.github.com>
* Update error wording in test
Co-Authored-By: ijjk <22380829+ijjk@users.noreply.github.com>
* Update test and add check for statusCode
before updating error
2019-03-13 13:39:05 -05:00
JJ Kasper
38ad8d870c
Fix export with folders that contain dot ( #6538 )
2019-03-12 18:30:03 -05:00
Joe Haddad
e5636dcdb0
Inject the build ID after webpack runs ( #6618 )
...
* Inject the build ID after webpack runs
* add webpack sources types
* use webpack plugin instead
* reset file
* Skip source maps if none were provided
Co-Authored-By: Timer <timer150@gmail.com>
2019-03-12 16:39:44 -04:00
Tim Neutkens
8cf6ef58f0
Remove unused dev option from babel-loader ( #6624 )
2019-03-12 15:19:08 +01:00
JJ Kasper
58cbd0aa4e
Fix HMR failing when rendering with /index
( #6541 )
...
Fixes : #6497
2019-03-12 12:40:49 +01:00
JJ Kasper
b6dfb44a8f
v8.0.4-canary.10
2019-03-12 01:27:01 -05:00
Joe Haddad
2e32aa8630
Ensure correct key order ( #6616 )
...
* Ensure correct key order
* Fix bug
* Format this document while we're at it
2019-03-12 00:01:50 -04:00
JJ Kasper
179d09e8e0
Remove cacheKeys in favor of simply a cacheKey ( #6613 )
2019-03-11 22:32:26 -05:00
Joe Haddad
f6b7503e55
Sort pages between bundles ( #6612 )
2019-03-11 17:34:41 -04:00
JJ Kasper
995460d7dd
Replace md4 hashing with murmurhash ( #6611 )
2019-03-11 16:23:04 -05:00
JJ Kasper
eb0e83cea3
Remove cacache ( #6610 )
2019-03-11 16:24:07 -04:00
JJ Kasper
988047f0cd
Update/webpack docs example ( #6609 )
...
* Show example of using webpack in config
2019-03-11 15:10:45 -05:00
JJ Kasper
553fbf75e0
Add note about passing webpack to config ( #6606 )
2019-03-11 19:32:26 +01:00
Tim Neutkens
b32e65a830
Add experimental profiling flag ( #6594 )
...
* Add experimental profiling flag
* Update config.js
2019-03-11 13:53:24 -04:00
JJ Kasper
852a62bf56
Add experimental cpus config and use CircleCI env var ( #6604 )
...
* Add using CircleCI env var for max workers
and expose webpack to config
* Expose experimental cpu config
* Fix typo
* Remove log
2019-03-11 17:33:30 +01:00
Joe Haddad
041be6f4aa
Disable webpack minifier ( #6603 )
...
When the webpack `mode` is set to `production`, `minimizer: undefined` means "use the default webpack minifier."
We need to explicitly disable the webpack minifier via `minimize: false`. This should speed up non-serverless builds. 😄
This doesn't affect dev, but I added the toggle there for consistency.
2019-03-11 15:51:23 +01:00
Tim Neutkens
557fc95910
Don't use webpack multiCompiler for single configuration ( #6598 )
...
When compiling the serverless target there is no need for having an array of configs.
2019-03-10 15:46:50 +01:00
Tim Neutkens
8ffcb3f3e7
Don’t load dev plugins for production bootup ( #6589 )
...
* Don’t load autodll-webpack-plugin for production bootup
* Only require autodll when client-side compilation is ran
* Try to fix build
2019-03-09 23:27:33 -05:00
Tim Neutkens
e8095c0e2e
Remove cjs file ( #6590 )
2019-03-09 22:34:27 -05:00
Tim Neutkens
dd60199cec
Remove case-sensitive-paths-plugin ( #6587 )
...
While this is a nice feature it does filesystem operations to check if the resolved file matches the filesystem.
2019-03-10 01:44:51 +01:00
Connor Davis
f8be040c79
Next minifier cache ( #6582 )
...
Changes the name of the cache folder so we can predictably cache on Now
2019-03-09 09:09:44 +01:00
Tim Neutkens
d3e92cceec
Remove more terser-webpack-plugin code ( #6575 )
2019-03-08 16:26:20 +01:00
JJ Kasper
ff7299d184
Update react-error-overlay and use reportRuntimeError ( #6577 )
...
Fixes : #5481
2019-03-08 16:24:15 +01:00
HelloRusk
1930d7364d
fix unnatural spaces in README ( #6572 )
...
should use 2 spaces instead of 4
2019-03-08 16:06:13 +01:00
Tim Neutkens
654860e7b5
v8.0.4-canary.9
2019-03-07 19:57:48 +01:00
Tim Neutkens
3f9a44996a
Remove more terser code ( #6564 )
...
* Remove chunkfilter and extractcomments options as they’re unused
* Remove unused variable
* Remove cacheKeys option, improve filter
* Remove more terser code
* Remove unused variable
2019-03-07 19:45:49 +01:00
k-kawakami
d9060f5abd
Remove trailing spaces ( #6547 )
...
### changes
#### remove trailing spaces
When I was using example I noticed trailing spaces.
So, this PR removes the trailing spaces of json file, README, and others.
`examples/with-jest-typescript/src/modules/cars/Overview.tsx` also has it, but this time it did not change as tslint error occurs at commit.
2019-03-07 17:40:08 +01:00
Tim Neutkens
9b62f208bb
Remove cacheKeys option and improve filtering ( #6559 )
...
More cleanup of terser-plugin.
2019-03-07 14:28:32 +01:00
Roman Ernst
cf0552a395
Fix wrong env key in build time configuration docs ( #6561 )
...
Env-Key definition should be constantly either `customEnv` or `customKey` - I went for `customKey`.
2019-03-07 12:51:08 +01:00
Santhosh Sundar
1e8017989d
fixed typo in code comment ( #6555 )
...
This PR fixes a typo in one of the comments in the "Customizing renderPage" code example.
2019-03-07 11:45:08 +01:00
Tim Neutkens
abad29b413
Remove chunkfilter and extractcomments options as they’re unused ( #6549 )
...
Remove some obsolete code paths.
2019-03-06 21:28:42 +01:00
Ryan Hinchey
5dbbf79abc
changing an url to a url in the readme ( #6540 )
...
Thanks so much for putting this amazing framework together!
I was reading through the docs and noticed how `an URL` was a little awkward to read. This is an incredibly small update to the readme to change the wording to `a URL`.
2019-03-06 13:16:34 +01:00
Tim Neutkens
f177ce4291
v8.0.4-canary.8
2019-03-06 13:10:21 +01:00
Tim Neutkens
0088083f52
Check if esmodules is supported before enabling useESModules ( #6534 )
...
* Check if esmodules is supported before enabling useESModules
* Remove console.log
2019-03-05 16:57:07 +01:00
Tim Neutkens
e10096cd0c
Add preload notice ( #6532 )
...
Fixes #6517
2019-03-05 14:55:05 +01:00
Connor Davis
861edad459
Implement Recursive Delete ( #6489 )
...
Removes `rimraf` for a smaller custom lib
Benchmarks (in ms):
```
rimraf 1
518.536376
rimraf 2
416.112451
rimraf 3
451.905842
rimraf 4
525.117395
rimraf 5
434.230384
---- Average: 469.18ms
-----------
recursive delete 1
121.493979
recursive delete 2
130.335272
recursive delete 3
149.798316
recursive delete 4
182.184688
recursive delete 5
130.346207
--- Average: 142.83ms
```
`recursiveDelete` finishes in ~30% of the time it takes `rimraf` (3.3 times faster)
2019-03-05 14:01:42 +01:00
JJ Kasper
491f9a2c49
Move next-mdx from zeit/next-plugins to zeit/next.js ( #6443 )
...
At request of @timneutkens I moved the `next-mdx` plugin from the next-plugins repo into Next.js. Also fixed small typo in README under setup.
2019-03-04 18:02:45 +01:00
Tim Neutkens
8f25bc6871
v8.0.4-canary.7
2019-03-03 20:47:05 +01:00
JJ Kasper
c3b1f31ed5
Fix /index/index.js route not emitting the right route in production ( #6516 )
...
Also added integration test in production for this
Fixes : #6285
2019-03-03 19:36:32 +01:00
JJ Kasper
4c35b7e704
Add warning on stalled page load possibly from too many tabs open ( #6514 )
...
* Add warning on stalled page load possibly from too many tabs open
* Add test for stalled warning
* Update onDemand pinging to close on routeChangeStart and added
warning when onDemand handler detects multiple tabs from the same
browser
2019-03-02 16:51:14 -06:00
JJ Kasper
5034e4e1de
Updated entries to not output _app and _document in serverless ( #6512 )
...
* Updated entries to not output _app and _document in serverless
* Add test
2019-03-02 13:53:13 -06:00
Joe Haddad
494889acd8
Format a few documents ( #6505 )
2019-03-01 14:51:13 -05:00
JJ Kasper
a9c398854a
Add console.error before exit on uncaughtException ( #6504 )
2019-03-01 13:18:33 -06:00
Tim Neutkens
a169017c87
Add docs for named exports using dynamic ( #6502 )
2019-03-01 17:28:29 +01:00
Anton Egorov
5db0bef98e
update webpack-dev-middleware to fix querystring in file names ( #6498 )
...
Fixes #6481
2019-03-01 17:28:09 +01:00
Tim Neutkens
8eb813a640
await config ( #6488 )
...
* await config
* update config-promise-error test
* Actually update test
2019-03-01 01:09:07 +01:00
Joe Haddad
330bedacc7
Add Babel plugin that fixes className for Amp elements ( #6486 )
...
This is a simple Babel plugin that overwrites certain attributes for `amp-` elements.
2019-02-28 23:04:29 +01:00
Joe Haddad
a8d7a6ce42
v8.0.4-canary.6
2019-02-28 15:38:12 -05:00
Joe Haddad
68123d8b8d
v8.0.4-canary.5
2019-02-28 14:35:21 -05:00