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
40217b75
Unverified
Commit
40217b75
authored
Feb 21, 2020
by
Joe Haddad
Committed by
GitHub
Feb 21, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Re-Enable Native `url` Module (#10530)" (#10623)
This reverts commit
b329f6a2
.
parent
f5cb1a69
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
18 deletions
+6
-18
webpack-config.ts
packages/next/build/webpack-config.ts
+3
-2
package.json
packages/next/package.json
+1
-2
index.test.js
test/integration/size-limit/test/index.test.js
+2
-2
yarn.lock
yarn.lock
+0
-12
No files found.
packages/next/build/webpack-config.ts
View file @
40217b75
...
...
@@ -88,8 +88,9 @@ function getOptimizedAliases(isServer: boolean): { [pkg: string]: string } {
'object.assign/polyfill'
:
path
.
join
(
shimAssign
,
'polyfill.js'
),
'object.assign/shim'
:
path
.
join
(
shimAssign
,
'shim.js'
),
// Replace: full URL polyfill with platform-based polyfill
url
:
require
.
resolve
(
'native-url'
),
// TODO: re-enable when `native-url` supports Safari 10
// // Replace: full URL polyfill with platform-based polyfill
// url: require.resolve('native-url'),
}
)
}
...
...
packages/next/package.json
View file @
40217b75
...
...
@@ -115,7 +115,6 @@
"lru-cache"
:
"5.1.1"
,
"mini-css-extract-plugin"
:
"0.8.0"
,
"mkdirp"
:
"0.5.1"
,
"native-url"
:
"0.2.6"
,
"node-fetch"
:
"2.6.0"
,
"ora"
:
"3.4.0"
,
"path-to-regexp"
:
"6.1.0"
,
...
...
@@ -141,7 +140,7 @@
"thread-loader"
:
"2.1.3"
,
"unfetch"
:
"4.1.0"
,
"url"
:
"0.11.0"
,
"url-polyfill"
:
"1.1.
8
"
,
"url-polyfill"
:
"1.1.
7
"
,
"use-subscription"
:
"1.1.1"
,
"watchpack"
:
"2.0.0-beta.13"
,
"webpack"
:
"4.41.2"
,
...
...
test/integration/size-limit/test/index.test.js
View file @
40217b75
...
...
@@ -80,7 +80,7 @@ describe('Production response size', () => {
)
// These numbers are without gzip compression!
const
delta
=
responseSizesBytes
-
23
0
*
1024
const
delta
=
responseSizesBytes
-
23
8
*
1024
expect
(
delta
).
toBeLessThanOrEqual
(
1024
)
// don't increase size more than 1kb
expect
(
delta
).
toBeGreaterThanOrEqual
(
-
1024
)
// don't decrease size more than 1kb without updating target
})
...
...
@@ -100,7 +100,7 @@ describe('Production response size', () => {
)
// These numbers are without gzip compression!
const
delta
=
responseSizesBytes
-
1
63
*
1024
const
delta
=
responseSizesBytes
-
1
71
*
1024
expect
(
delta
).
toBeLessThanOrEqual
(
1024
)
// don't increase size more than 1kb
expect
(
delta
).
toBeGreaterThanOrEqual
(
-
1024
)
// don't decrease size more than 1kb without updating target
})
...
...
yarn.lock
View file @
40217b75
...
...
@@ -10953,13 +10953,6 @@ native-or-bluebird@^1.2.0:
resolved "https://registry.yarnpkg.com/native-or-bluebird/-/native-or-bluebird-1.2.0.tgz#39c47bfd7825d1fb9ffad32210ae25daadf101c9"
integrity sha1-OcR7/Xgl0fuf+tMiEK4l2q3xAck=
native-url@0.2.6:
version "0.2.6"
resolved "https://registry.yarnpkg.com/native-url/-/native-url-0.2.6.tgz#ca1258f5ace169c716ff44eccbddb674e10399ae"
integrity sha512-k4bDC87WtgrdD362gZz6zoiXQrl40kYlBmpfmSjwRO1VU0V5ccwJTlxuE72F6m3V0vc1xOf6n3UCP9QyerRqmA==
dependencies:
querystring "^0.2.0"
natural-compare@^1.4.0:
version "1.4.0"
resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7"
...
...
@@ -16564,11 +16557,6 @@ url-polyfill@1.1.7:
resolved "https://registry.yarnpkg.com/url-polyfill/-/url-polyfill-1.1.7.tgz#402ee84360eb549bbeb585f4c7971e79a31de9e3"
integrity sha512-ZrAxYWCREjmMtL8gSbSiKKLZZticgihCvVBtrFbUVpyoETt8GQJeG2okMWA8XryDAaHMjJfhnc+rnhXRbI4DXA==
url-polyfill@1.1.8:
version "1.1.8"
resolved "https://registry.yarnpkg.com/url-polyfill/-/url-polyfill-1.1.8.tgz#21eb58ad61192f52b77dcac8ab5293ae7bc67060"
integrity sha512-Ey61F4FEqhcu1vHSOMmjl0Vd/RPRLEjMj402qszD/dhMBrVfoUsnIj8KSZo2yj+eIlxJGKFdnm6ES+7UzMgZ3Q==
url-template@^2.0.8:
version "2.0.8"
resolved "https://registry.yarnpkg.com/url-template/-/url-template-2.0.8.tgz#fc565a3cccbff7730c775f5641f9555791439f21"
...
...
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