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
2e668e6b
Unverified
Commit
2e668e6b
authored
Jan 20, 2020
by
Joe Haddad
Committed by
GitHub
Jan 20, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove `native-url` (#10176)
* Remove `native-url` * Increase sizes
parent
ec658fc9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
11 deletions
+3
-11
webpack-config.ts
packages/next/build/webpack-config.ts
+1
-1
package.json
packages/next/package.json
+0
-1
index.test.js
test/integration/size-limit/test/index.test.js
+2
-2
yarn.lock
yarn.lock
+0
-7
No files found.
packages/next/build/webpack-config.ts
View file @
2e668e6b
...
@@ -87,7 +87,7 @@ function getOptimizedAliases(isServer: boolean): { [pkg: string]: string } {
...
@@ -87,7 +87,7 @@ function getOptimizedAliases(isServer: boolean): { [pkg: string]: string } {
'object.assign/shim'
:
path
.
join
(
shimAssign
,
'shim.js'
),
'object.assign/shim'
:
path
.
join
(
shimAssign
,
'shim.js'
),
// Replace: full URL polyfill with platform-based polyfill
// Replace: full URL polyfill with platform-based polyfill
url
:
require
.
resolve
(
'native-url'
),
//
url: require.resolve('native-url'),
}
}
}
}
...
...
packages/next/package.json
View file @
2e668e6b
...
@@ -109,7 +109,6 @@
...
@@ -109,7 +109,6 @@
"lru-cache"
:
"5.1.1"
,
"lru-cache"
:
"5.1.1"
,
"mini-css-extract-plugin"
:
"0.8.0"
,
"mini-css-extract-plugin"
:
"0.8.0"
,
"mkdirp"
:
"0.5.1"
,
"mkdirp"
:
"0.5.1"
,
"native-url"
:
"0.2.4"
,
"node-fetch"
:
"2.6.0"
,
"node-fetch"
:
"2.6.0"
,
"object-assign"
:
"4.1.1"
,
"object-assign"
:
"4.1.1"
,
"ora"
:
"3.4.0"
,
"ora"
:
"3.4.0"
,
...
...
test/integration/size-limit/test/index.test.js
View file @
2e668e6b
...
@@ -81,7 +81,7 @@ describe('Production response size', () => {
...
@@ -81,7 +81,7 @@ describe('Production response size', () => {
)
)
// These numbers are without gzip compression!
// These numbers are without gzip compression!
const
delta
=
responseSizeKilobytes
-
2
28
const
delta
=
responseSizeKilobytes
-
2
34
expect
(
delta
).
toBeLessThanOrEqual
(
0
)
// don't increase size
expect
(
delta
).
toBeLessThanOrEqual
(
0
)
// don't increase size
expect
(
delta
).
toBeGreaterThanOrEqual
(
-
1
)
// don't decrease size without updating target
expect
(
delta
).
toBeGreaterThanOrEqual
(
-
1
)
// don't decrease size without updating target
})
})
...
@@ -101,7 +101,7 @@ describe('Production response size', () => {
...
@@ -101,7 +101,7 @@ describe('Production response size', () => {
)
)
// These numbers are without gzip compression!
// These numbers are without gzip compression!
const
delta
=
responseSizeKilobytes
-
196
const
delta
=
responseSizeKilobytes
-
203
expect
(
delta
).
toBeLessThanOrEqual
(
0
)
// don't increase size
expect
(
delta
).
toBeLessThanOrEqual
(
0
)
// don't increase size
expect
(
delta
).
toBeGreaterThanOrEqual
(
-
1
)
// don't decrease size without updating target
expect
(
delta
).
toBeGreaterThanOrEqual
(
-
1
)
// don't decrease size without updating target
})
})
...
...
yarn.lock
View file @
2e668e6b
...
@@ -10079,13 +10079,6 @@ native-or-bluebird@^1.2.0:
...
@@ -10079,13 +10079,6 @@ native-or-bluebird@^1.2.0:
resolved "https://registry.yarnpkg.com/native-or-bluebird/-/native-or-bluebird-1.2.0.tgz#39c47bfd7825d1fb9ffad32210ae25daadf101c9"
resolved "https://registry.yarnpkg.com/native-or-bluebird/-/native-or-bluebird-1.2.0.tgz#39c47bfd7825d1fb9ffad32210ae25daadf101c9"
integrity sha1-OcR7/Xgl0fuf+tMiEK4l2q3xAck=
integrity sha1-OcR7/Xgl0fuf+tMiEK4l2q3xAck=
native-url@0.2.4:
version "0.2.4"
resolved "https://registry.yarnpkg.com/native-url/-/native-url-0.2.4.tgz#37623b3db2c7bb6670e50e379634248ba5ca9d90"
integrity sha512-McE+8BrgMw2ANypdYX9s1L+aUkbWDCEtsBGIbs8TfKBfQrFcZ2jMXX9LxGjOIOtoRXkwLTSlz38XHm8J3U6hgQ==
dependencies:
querystring "^0.2.0"
natural-compare@^1.4.0:
natural-compare@^1.4.0:
version "1.4.0"
version "1.4.0"
resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7"
resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7"
...
...
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