Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
91a50d36
Unverified
Commit
91a50d36
authored
Sep 01, 2020
by
JJ Kasper
Committed by
GitHub
Sep 01, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "fix: Promise.prototype.finally is object (#16620)" (#16753)
This reverts commit
6926ab7b
.
parent
f921b4f4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
index.tsx
packages/next/client/index.tsx
+4
-2
package.json
packages/next/package.json
+1
-1
No files found.
packages/next/client/index.tsx
View file @
91a50d36
...
@@ -21,8 +21,6 @@ import PageLoader, { looseToArray, StyleSheetTuple } from './page-loader'
...
@@ -21,8 +21,6 @@ import PageLoader, { looseToArray, StyleSheetTuple } from './page-loader'
import
measureWebVitals
from
'./performance-relayer'
import
measureWebVitals
from
'./performance-relayer'
import
{
createRouter
,
makePublicRouterInstance
}
from
'./router'
import
{
createRouter
,
makePublicRouterInstance
}
from
'./router'
require
(
'next/dist/build/polyfills/finally-polyfill.min'
)
/// <reference types="react-dom/experimental" />
/// <reference types="react-dom/experimental" />
declare
let
__webpack_public_path__
:
string
declare
let
__webpack_public_path__
:
string
...
@@ -43,6 +41,10 @@ declare global {
...
@@ -43,6 +41,10 @@ declare global {
type
RenderRouteInfo
=
PrivateRouteInfo
&
{
App
:
AppComponent
}
type
RenderRouteInfo
=
PrivateRouteInfo
&
{
App
:
AppComponent
}
type
RenderErrorProps
=
Omit
<
RenderRouteInfo
,
'Component'
|
'styleSheets'
>
type
RenderErrorProps
=
Omit
<
RenderRouteInfo
,
'Component'
|
'styleSheets'
>
if
(
!
(
'finally'
in
Promise
.
prototype
))
{
;(
Promise
.
prototype
as
PromiseConstructor
[
'prototype'
]).
finally
=
require
(
'next/dist/build/polyfills/finally-polyfill.min'
)
}
const
data
:
typeof
window
[
'__NEXT_DATA__'
]
=
JSON
.
parse
(
const
data
:
typeof
window
[
'__NEXT_DATA__'
]
=
JSON
.
parse
(
document
.
getElementById
(
'__NEXT_DATA__'
)
!
.
textContent
!
document
.
getElementById
(
'__NEXT_DATA__'
)
!
.
textContent
!
)
)
...
...
packages/next/package.json
View file @
91a50d36
...
@@ -181,7 +181,7 @@
...
@@ -181,7 +181,7 @@
"escape-string-regexp"
:
"2.0.0"
,
"escape-string-regexp"
:
"2.0.0"
,
"etag"
:
"1.8.1"
,
"etag"
:
"1.8.1"
,
"file-loader"
:
"6.0.0"
,
"file-loader"
:
"6.0.0"
,
"finally-polyfill"
:
"0.
2
.0"
,
"finally-polyfill"
:
"0.
1
.0"
,
"find-up"
:
"4.1.0"
,
"find-up"
:
"4.1.0"
,
"fresh"
:
"0.5.2"
,
"fresh"
:
"0.5.2"
,
"gzip-size"
:
"5.1.1"
,
"gzip-size"
:
"5.1.1"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment