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
b88addfc
Unverified
Commit
b88addfc
authored
Feb 22, 2019
by
Tim Neutkens
Committed by
GitHub
Feb 22, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove event-source-polyfill dependency (#6407)
parent
a99323cb
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
854 additions
and
2 deletions
+854
-2
utils.js
packages/next-server/lib/utils.js
+1
-1
event-source-polyfill.js
packages/next/client/event-source-polyfill.js
+846
-0
next-dev.js
packages/next/client/next-dev.js
+6
-0
webpack-hot-middleware-client.js
packages/next/client/webpack-hot-middleware-client.js
+1
-1
No files found.
packages/next-server/lib/utils.js
View file @
b88addfc
...
@@ -63,7 +63,7 @@ export function formatWithValidation (url, options) {
...
@@ -63,7 +63,7 @@ export function formatWithValidation (url, options) {
if
(
process
.
env
.
NODE_ENV
===
'development'
)
{
if
(
process
.
env
.
NODE_ENV
===
'development'
)
{
if
(
url
!==
null
&&
typeof
url
===
'object'
)
{
if
(
url
!==
null
&&
typeof
url
===
'object'
)
{
Object
.
keys
(
url
).
forEach
((
key
)
=>
{
Object
.
keys
(
url
).
forEach
((
key
)
=>
{
if
(
!
urlObjectKeys
.
includes
(
key
)
)
{
if
(
urlObjectKeys
.
indexOf
(
key
)
===
-
1
)
{
console
.
warn
(
`Unknown key passed via urlObject into url.format:
${
key
}
`
)
console
.
warn
(
`Unknown key passed via urlObject into url.format:
${
key
}
`
)
}
}
})
})
...
...
packages/next/client/event-source-polyfill.js
0 → 100644
View file @
b88addfc
This diff is collapsed.
Click to expand it.
packages/next/client/next-dev.js
View file @
b88addfc
import
initNext
,
*
as
next
from
'./'
import
initNext
,
*
as
next
from
'./'
import
EventSourcePolyfill
from
'./event-source-polyfill'
import
initOnDemandEntries
from
'./on-demand-entries-client'
import
initOnDemandEntries
from
'./on-demand-entries-client'
import
initWebpackHMR
from
'./webpack-hot-middleware-client'
import
initWebpackHMR
from
'./webpack-hot-middleware-client'
...
@@ -8,6 +9,11 @@ import initWebpackHMR from './webpack-hot-middleware-client'
...
@@ -8,6 +9,11 @@ import initWebpackHMR from './webpack-hot-middleware-client'
// The runtimeChunk can't hot reload itself currently to correct it when adding pages using on-demand-entries
// The runtimeChunk can't hot reload itself currently to correct it when adding pages using on-demand-entries
// REPLACE_NOOP_IMPORT
// REPLACE_NOOP_IMPORT
// Support EventSource on Internet Explorer 11
if
(
!
window
.
EventSource
)
{
window
.
EventSource
=
EventSourcePolyfill
}
const
{
const
{
__NEXT_DATA__
:
{
__NEXT_DATA__
:
{
assetPrefix
assetPrefix
...
...
packages/next/client/webpack-hot-middleware-client.js
View file @
b88addfc
import
'event-source-polyfill'
import
connect
from
'./dev-error-overlay/hot-dev-client'
import
connect
from
'./dev-error-overlay/hot-dev-client'
export
default
({
assetPrefix
})
=>
{
export
default
({
assetPrefix
})
=>
{
const
options
=
{
const
options
=
{
path
:
`
${
assetPrefix
}
/_next/webpack-hmr`
path
:
`
${
assetPrefix
}
/_next/webpack-hmr`
...
...
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