Keanu Lee
d0ca9c9eb5
Clean up code/testing artifacts from #7014 ( #7211 )
2019-05-01 13:56:35 -05:00
Keanu Lee
d120f14d1c
Use modern syntax in Next client code (e.g. async await) ( #7014 )
...
* Use async/await in build output
* Run next client libraries through plugin-transform-modules-commonjs
* Fix missing includes
2019-05-01 19:16:52 +02:00
JJ Kasper
ceb60b650a
revert nccing webpack ( #7189 )
2019-04-28 15:35:40 -05:00
Connor Davis
f66546f950
Use ncc to bundle webpack ( #6347 )
2019-04-26 17:24:30 -05:00
Joe Haddad
3daa473e6d
Disable Terser Cache When Using Flying Shuttle ( #7168 )
2019-04-26 21:47:57 +09:00
Joe Haddad
0138ef090a
Remove old debugging logs ( #7139 )
2019-04-25 01:01:56 +09:00
Joe Haddad
8cd21a6368
Server file inclusive Flying Shuttle ( #7128 )
...
* Add Flying Shuttle plugin to server compilation
* Ignore build artifacts in flying shuttle manifest
* Add comments explaining what's going on
* Emit Shuttle manifest after both compilations
2019-04-24 11:04:36 +02:00
JJ Kasper
a320dc10f6
Add AMP label to AMP only pages in build tree ( #7123 )
2019-04-24 10:48:43 +02:00
Luis Fernando Alvarez D
254b23eb07
Add declaration files to /dist ( #7118 )
2019-04-23 16:12:33 -05:00
Joe Haddad
597138f359
Cache Babel and AutoDll plugin in dirDir/cache
( #7102 )
...
* Cache Babel and AutoDll plugin in `dirDir/cache`
* Extract code
2019-04-23 01:16:42 +09:00
JJ Kasper
80210bc31a
Update removing AMP pages to not require during build ( #7081 )
...
* Update to use babel plugin with webpack plugin to
remove AMP client bundles since they are not used
* Remove acorn dependency since it isn't used
2019-04-22 06:25:17 +09:00
Joe Haddad
f5be84e4ff
Upgrade Terser ( #6981 )
...
The new version of Terser seems to be significantly slower than the previous. I wanted to see what our stats PR says.
2019-04-22 06:03:57 +09:00
Joe Haddad
74cb4f4b7b
Switch to using .next/cache
for flying shuttle and terser ( #7013 )
2019-04-11 17:09:12 -04:00
JJ Kasper
e5111745b5
Replace .amp.js
with withAmp(Comp)
( #7009 )
...
* Add WithAmp to enable AMP support for
pages instead of .amp.js
* Update handling for exporting AMP
* Fix ampPath in export for / path and
revert isAmp logic to handle right
* Update amphtml test suite
* Add handling for noDirtyAmp during
export and update amp-export test suite
* Update serverless and export-default-map
test suites
* Update require-page tests
2019-04-11 13:59:26 -05:00
JJ Kasper
4b9b2fb3a5
Make async-to-promises babel plugin experimental ( #7006 )
...
* Make async-to-promises babel plugin experimental
* Move excludes for asyncToPromises behind flag too
* Move other configs behind flag
* Re-add original exclude item
2019-04-11 10:28:57 -04:00
JJ Kasper
9e6708d144
Set custom cacheIdentifier for babel-loader ( #6982 )
...
* Set custom cacheIdentifier for babel-
loader that we can increment
* Update to consider external babel config
for cacheIdentifier
* Update to follow babel loader's cacheIdentifier behavior
2019-04-10 23:50:07 -04:00
JJ Kasper
711d45b698
Use next.config env and packages to calculate hashes ( #7001 )
...
* Use next.config env and packages to calculate
hashes for chunk-graph
* Remove example from testing
* remove left over import
* Tweak behavior
2019-04-10 15:19:50 -04:00
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