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
d7684408
Commit
d7684408
authored
Mar 29, 2020
by
Guy Bedford
Committed by
Joe Haddad
Mar 30, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
react-error-overlay
parent
c16f6006
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
2 deletions
+11
-2
hot-dev-client.js
packages/next/client/dev/error-overlay/hot-dev-client.js
+1
-1
package.json
packages/next/package.json
+1
-1
taskfile.js
packages/next/taskfile.js
+9
-0
No files found.
packages/next/client/dev/error-overlay/hot-dev-client.js
View file @
d7684408
...
...
@@ -27,7 +27,7 @@ SOFTWARE.
import
{
getEventSourceWrapper
}
from
'./eventsource'
import
formatWebpackMessages
from
'./format-webpack-messages'
import
*
as
ErrorOverlay
from
'react-error-overlay'
import
*
as
ErrorOverlay
from
'
next/dist/compiled/
react-error-overlay'
import
stripAnsi
from
'next/dist/compiled/strip-ansi'
import
{
rewriteStacktrace
}
from
'./source-map-support'
import
fetch
from
'next/dist/build/polyfills/unfetch'
...
...
packages/next/package.json
View file @
d7684408
...
...
@@ -76,7 +76,6 @@
"postcss-preset-env"
:
"6.7.0"
,
"prop-types"
:
"15.7.2"
,
"prop-types-exact"
:
"1.2.0"
,
"react-error-overlay"
:
"5.1.6"
,
"react-is"
:
"16.8.6"
,
"resolve-url-loader"
:
"3.1.1"
,
"sass-loader"
:
"8.0.2"
,
...
...
@@ -188,6 +187,7 @@
"ora"
:
"3.4.0"
,
"path-to-regexp"
:
"6.1.0"
,
"raw-body"
:
"2.4.0"
,
"react-error-overlay"
:
"5.1.6"
,
"recast"
:
"0.18.5"
,
"resolve"
:
"1.11.0"
,
"send"
:
"0.17.1"
,
...
...
packages/next/taskfile.js
View file @
d7684408
...
...
@@ -588,6 +588,14 @@ export async function path_to_regexp(task, opts) {
.
target
(
'dist/compiled/path-to-regexp'
)
}
export
async
function
react_error_overlay
(
task
,
opts
)
{
await
task
.
source
(
opts
.
src
||
relative
(
__dirname
,
require
.
resolve
(
'react-error-overlay'
))
)
.
target
(
'dist/compiled/react-error-overlay'
)
}
export
async
function
precompile
(
task
)
{
await
task
.
parallel
([
'browser_polyfills'
,
...
...
@@ -653,6 +661,7 @@ export async function precompile(task) {
'ncc_text_table'
,
'ncc_unistore'
,
'path_to_regexp'
,
'react_error_overlay'
,
])
}
...
...
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