Commit d7684408 authored by Guy Bedford's avatar Guy Bedford Committed by Joe Haddad

react-error-overlay

parent c16f6006
...@@ -27,7 +27,7 @@ SOFTWARE. ...@@ -27,7 +27,7 @@ SOFTWARE.
import { getEventSourceWrapper } from './eventsource' import { getEventSourceWrapper } from './eventsource'
import formatWebpackMessages from './format-webpack-messages' 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 stripAnsi from 'next/dist/compiled/strip-ansi'
import { rewriteStacktrace } from './source-map-support' import { rewriteStacktrace } from './source-map-support'
import fetch from 'next/dist/build/polyfills/unfetch' import fetch from 'next/dist/build/polyfills/unfetch'
......
...@@ -76,7 +76,6 @@ ...@@ -76,7 +76,6 @@
"postcss-preset-env": "6.7.0", "postcss-preset-env": "6.7.0",
"prop-types": "15.7.2", "prop-types": "15.7.2",
"prop-types-exact": "1.2.0", "prop-types-exact": "1.2.0",
"react-error-overlay": "5.1.6",
"react-is": "16.8.6", "react-is": "16.8.6",
"resolve-url-loader": "3.1.1", "resolve-url-loader": "3.1.1",
"sass-loader": "8.0.2", "sass-loader": "8.0.2",
...@@ -188,6 +187,7 @@ ...@@ -188,6 +187,7 @@
"ora": "3.4.0", "ora": "3.4.0",
"path-to-regexp": "6.1.0", "path-to-regexp": "6.1.0",
"raw-body": "2.4.0", "raw-body": "2.4.0",
"react-error-overlay": "5.1.6",
"recast": "0.18.5", "recast": "0.18.5",
"resolve": "1.11.0", "resolve": "1.11.0",
"send": "0.17.1", "send": "0.17.1",
......
...@@ -588,6 +588,14 @@ export async function path_to_regexp(task, opts) { ...@@ -588,6 +588,14 @@ export async function path_to_regexp(task, opts) {
.target('dist/compiled/path-to-regexp') .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) { export async function precompile(task) {
await task.parallel([ await task.parallel([
'browser_polyfills', 'browser_polyfills',
...@@ -653,6 +661,7 @@ export async function precompile(task) { ...@@ -653,6 +661,7 @@ export async function precompile(task) {
'ncc_text_table', 'ncc_text_table',
'ncc_unistore', 'ncc_unistore',
'path_to_regexp', 'path_to_regexp',
'react_error_overlay',
]) ])
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment