JJ Kasper
b274fe39d3
Update method for attaching GS(S)P identifier to page ( #10859 )
...
* Update to use separate export instead of attaching to Component to identify GS(S)P pages
* Handle initialProps being undefined
2020-03-05 23:15:10 -05:00
JJ Kasper
c9d9f1131c
Remove unstable_
prefix from new methods ( #10723 )
...
* Rename getServerProps to getServerSideProps
* Remove unstable_ prefix from new methods
* Add error when legacy methods are detected
* Add legacy methods for babel transform
* Add unstable_getServerSideProps also
* Apply suggestions from code review
Co-Authored-By: Joe Haddad <joe.haddad@zeit.co>
* Update types import
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-02-27 11:57:39 -06:00
Joe Haddad
5e12e5f56a
Emit ES5 Friendly Code in Program#exit Visitor ( #10591 )
...
* Emit ES5 Friendly Code in Program#exit Visitor
* Document reasoning
* updt
* Update next-ssg-transform.ts
2020-02-19 11:29:30 -05:00
Joe Haddad
2d76c4a9bb
Replace __NEXT_SPR with __N_SSG Identifier ( #10090 )
2020-01-14 14:40:20 -05:00
JJ Kasper
963d598dc1
Add tests for optional chaining and nullish coalescing ( #9665 )
...
* Add tests for optional chaining and nullish coalescing
* Add integration tests
2019-12-08 12:38:22 -06:00
Joe Haddad
bbc62a07be
Only Remove Server-Side Imports ( #9653 )
...
* Only Remove Server-Side Imports
* Cleanup imports
2019-12-06 22:57:14 -05:00
Joe Haddad
10b2eb5b31
Fix Import Shaking for Namespaces ( #9650 )
2019-12-06 11:46:00 -05:00
Joe Haddad
30ff9a339f
Remove Extraneous Imports in Pages ( #9627 )
...
* Remove Extraneous Imports in Pages
* Add test
* bump cache key
2019-12-05 11:04:00 -06:00
Joe Haddad
21e1db7bc1
Aggressively Replace Constants ( #9610 )
...
* Aggressively Replace Constants
* Test both windows
* add other switch
2019-12-03 16:08:49 -05:00