Joe Haddad
a44788fb26
Disable flying shuttle when building for now dev
( #6998 )
2019-04-10 12:37:13 -04:00
Joe Haddad
0e68d3c2d9
Adjust all modules identified plugin output ( #6995 )
...
This output clashed with the new output style. This output is more inline with existing behavior.
2019-04-10 12:21:14 -04:00
Joe Haddad
c2c634caa6
Use chunkGroup
request over rawRequest
for loadable manifest ( #6993 )
2019-04-10 12:06:16 -04:00
Joe Haddad
a863a720ef
Fix Chunk Graph Plugin hashes type ( #6994 )
2019-04-10 11:59:46 -04:00
Joe Haddad
ca565fc6e4
Adjust flying shuttle minify ( #6980 )
...
* Disable Terser plugin when using flying shuttle
* Add a new minify loader
* Downgrade terser
* Turn on minify loader
* Only compress source / mangle output
2019-04-09 15:13:25 -04:00
Luis Fernando Alvarez D
ae5eeb39f4
Brought escape-string-regexp source to next ( #6979 )
...
* Brought escape-string-regexp source to next
* Added Copyright comment
2019-04-09 15:06:55 -04:00
Luis Fernando Alvarez D
f89bd8237b
Replace imurmurhash with string-hash ( #6964 )
...
Closes #6939
2019-04-09 12:49:30 +02:00
Tim Neutkens
4b7dd25328
Simplify options assignment ( #6949 )
2019-04-08 14:54:28 +02:00
Joe Haddad
444be1cba6
Fix nesting level of client page scripts ( #6925 )
2019-04-06 23:33:31 -04:00
Joe Haddad
c56e962918
Add lambda version of shared chunks ( #6924 )
...
* Add lambda version of shared chunks
* Fix test on Windows
2019-04-06 22:25:38 -04:00
Joe Haddad
33d32eab5a
Make chunk graph more accurate ( #6923 )
...
* Make chunk graph more accurate
* Include shared files in every page
2019-04-06 21:07:32 -04:00
Joe Haddad
bbfc0f8207
Add more chunk graph data ( #6911 )
...
* Fix nested position
* Drop front commit
* Emit new page chunks key with all involved files for a page
2019-04-05 16:25:24 -04:00
Joe Haddad
e7ca6aa45e
Correctly compute unknown module ids ( #6898 )
2019-04-04 20:41:07 -04:00
Joe Haddad
30fe5fc16d
Compute Chunk Graph file hashes on emit ( #6897 )
...
* Compute hashes of files during emit
* Fix tests
* Remove test from old location
* Correct the target
2019-04-04 18:00:04 -04:00
Joe Haddad
19c635175b
Make Client request BUILD_ID from the Server ( #6891 )
...
* Generate two versions of pages
* Add code VSCode deleted
* Add dynamicBuildId option to __NEXT_DATA__
* Reduce amount of diff
* Make getPageFile code easier to read
* Minimize diff
* minimize diff
* Fix default value for dynamicBuildId
* Fix weird bug
* Fetch the head build id on client
* Move __selectivePageBuilding
* Add tests
* Remove _this
* Add console warning
2019-04-04 17:54:01 -04:00
JJ Kasper
8e51c78ed5
Add test for AMP in serverless mode ( #6894 )
...
* Add amp request header and check for amp
query in serverless mode
* Add serverless test for an AMP page
* Update to handle querystring weirdness
* Update serverless test config
2019-04-04 14:55:47 -05:00
JJ Kasper
7f096d0f46
Add check for data in serverless-loader ( #6893 )
2019-04-04 12:48:05 -05:00
JJ Kasper
a361a6a4a2
Fix serverless options ( #6884 )
2019-04-03 16:42:12 -05:00
Joe Haddad
4201fb957d
Emit manifest of all page files ( #6853 )
...
* Get all modules included in build
* Add tests
* Get all modules contained per entry chunk
* Sort files
* Add specialized page entry to manifest
* Split manifest into pages and chunks key
* Update test
* Use relative paths to build directory
* Update test
2019-04-02 15:48:05 -04:00
Tim Neutkens
b1fdffec75
amp-bind data injection ( #6840 )
2019-04-02 16:09:34 +02:00
Joe Haddad
0249b331c2
Use a shared module cache ( #6791 )
...
* [WIP] Use a shared module cache
* ID modules in development
* Revert "ID modules in development"
This reverts commit 0613d92fa2c8c7fa11a5ff5b7770d784af1cec63.
* Remove context replacement
* Only enable shared runtime in prod
* Sort settings
* Add shared runtime experimental setting
* only enable shared runtime in serverless
2019-03-26 12:30:31 -04:00
Joe Haddad
8c175e5daa
Replace buildId
well known string during output ( #6782 )
...
* Replace buildId well known string during output
* Fix linting
2019-03-25 17:06:00 +01:00
Connor Davis
a79c004de0
Remove magic-string ( #6772 )
...
* Remove magic-string
* Add back input
* change if statement back
* Fix typo
* remomve useless import
2019-03-24 23:50:58 -04:00
Tim Neutkens
6716bcbf87
Remove error-debug.js checks as the chunk is removed ( #6761 )
...
This code is obsolete as the chunk was removed.
2019-03-23 16:55:44 +01:00
Tim Neutkens
d24af62140
Make pages-manifest-plugin compatible with webpack 5 ( #6760 )
...
Apparently `entries` is removed in webpack 5, using `chunks` instead which holds the same result.
2019-03-23 15:33:13 +01:00
Tim Neutkens
6104a71afb
Make react-loadable-manifest only have modules that are part of dynamic chunks ( #6622 )
...
* Make react-loadable-manifest only have modules that are part of dynamic chunks
* Add manifest sorting
2019-03-17 14:19:26 -04:00
Joe Haddad
d7ab018f31
Hash module IDs to save on bundle size ( #6660 )
2019-03-15 00:08:22 -04:00
Joe Haddad
6902afbd3f
Stabilize Chunk ID generation ( #6663 )
...
* Add a new field to webpack types
* Revert "Add a new field to webpack types"
This reverts commit d35fa02207fbfd0085da0fc56aac42c4ff7c34c9.
* Add HashedChunkIdsPlugin to make consistent chunk ids
* Revert "Revert "Add a new field to webpack types""
This reverts commit 338219049e1432038f90c91928b010bbb1267999.
* Make it optional
* Remove record ids
* Revert "Remove record ids"
This reverts commit 15c22dbcda72466c382397c91d02295620f62326.
2019-03-14 21:38:57 -04:00
Connor Davis
b73abc0a4b
Delete using realpath in HMR cache ( #6635 )
...
This will allow symlinked assets to be removed from the cache as well
Fixes : #5620
2019-03-15 00:22:57 +01:00
Joe Haddad
1fb1b75216
Ensure all modules are identified ( #6656 )
...
* Ensure all modules are identified
* Extend a webpack Plugin
Co-Authored-By: Timer <timer150@gmail.com>
2019-03-14 11:04:08 -04: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
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
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
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
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
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
Tim Neutkens
9b62f208bb
Remove cacheKeys option and improve filtering ( #6559 )
...
More cleanup of terser-plugin.
2019-03-07 14:28:32 +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
Connor Davis
b146eb5200
Replace del
with rimraf
package ( #6411 )
2019-02-22 13:49:30 -06:00
Tim Neutkens
bfb5224ce4
Remove schema-utils dependency ( #6413 )
2019-02-22 20:05:34 +01:00
Connor Davis
fcf1167cd4
Upgrade standard and fix files ( #6358 )
...
Upgrades `standard` to major version 12
2019-02-19 22:45:07 +01:00
Tim Neutkens
45f5663558
Bring in terser-webpack-plugin ( #6231 )
...
* Bring in terser-webpack-plugin
* Ignore terser from linting
2019-02-10 04:55:09 +01:00
Tim Neutkens
243cd65c1d
Drop assetSizePlugin ( #6122 )
...
Fixes #6121
2019-01-24 23:04:20 +01:00