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
3621a5d5
Commit
3621a5d5
authored
Mar 29, 2020
by
Guy Bedford
Committed by
Joe Haddad
Mar 30, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "@ampproject/toolbox-optimizer"
This reverts commit 4a7afb72b8c328057bd50b86de92c1abb8d8afc3.
parent
278fd54e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
13 deletions
+2
-13
optimize-amp.ts
packages/next/next-server/server/optimize-amp.ts
+1
-1
package.json
packages/next/package.json
+1
-1
taskfile.js
packages/next/taskfile.js
+0
-11
No files found.
packages/next/next-server/server/optimize-amp.ts
View file @
3621a5d5
...
@@ -4,7 +4,7 @@ export default async function optimize(
...
@@ -4,7 +4,7 @@ export default async function optimize(
):
Promise
<
string
>
{
):
Promise
<
string
>
{
let
AmpOptimizer
let
AmpOptimizer
try
{
try
{
AmpOptimizer
=
require
(
'
next/dist/compiled/ampproject--
toolbox-optimizer'
)
AmpOptimizer
=
require
(
'
@ampproject/
toolbox-optimizer'
)
}
catch
(
_
)
{
}
catch
(
_
)
{
return
html
return
html
}
}
...
...
packages/next/package.json
View file @
3621a5d5
...
@@ -57,6 +57,7 @@
...
@@ -57,6 +57,7 @@
]
]
},
},
"dependencies"
:
{
"dependencies"
:
{
"@ampproject/toolbox-optimizer"
:
"2.0.1"
,
"@babel/core"
:
"7.7.2"
,
"@babel/core"
:
"7.7.2"
,
"@babel/plugin-proposal-class-properties"
:
"7.7.0"
,
"@babel/plugin-proposal-class-properties"
:
"7.7.0"
,
"@babel/plugin-proposal-nullish-coalescing-operator"
:
"7.7.4"
,
"@babel/plugin-proposal-nullish-coalescing-operator"
:
"7.7.4"
,
...
@@ -115,7 +116,6 @@
...
@@ -115,7 +116,6 @@
"react-dom"
:
"^16.6.0"
"react-dom"
:
"^16.6.0"
},
},
"devDependencies"
:
{
"devDependencies"
:
{
"@ampproject/toolbox-optimizer"
:
"2.0.1"
,
"@next/polyfill-nomodule"
:
"9.3.4-canary.0"
,
"@next/polyfill-nomodule"
:
"9.3.4-canary.0"
,
"@taskr/clear"
:
"1.1.0"
,
"@taskr/clear"
:
"1.1.0"
,
"@taskr/esnext"
:
"1.1.0"
,
"@taskr/esnext"
:
"1.1.0"
,
...
...
packages/next/taskfile.js
View file @
3621a5d5
...
@@ -48,16 +48,6 @@ export async function ncc_amphtml_validator(task, opts) {
...
@@ -48,16 +48,6 @@ export async function ncc_amphtml_validator(task, opts) {
.
target
(
'dist/compiled/amphtml-validator'
)
.
target
(
'dist/compiled/amphtml-validator'
)
}
}
// eslint-disable-next-line camelcase
// eslint-disable-next-line camelcase
export
async
function
ncc_ampproject__toolbox_optimizer
(
task
,
opts
)
{
await
task
.
source
(
opts
.
src
||
relative
(
__dirname
,
require
.
resolve
(
'@ampproject/toolbox-optimizer'
))
)
.
ncc
({
packageName
:
'@ampproject/toolbox-optimizer'
,
externals
})
.
target
(
'dist/compiled/ampproject--toolbox-optimizer'
)
}
// eslint-disable-next-line camelcase
export
async
function
ncc_arg
(
task
,
opts
)
{
export
async
function
ncc_arg
(
task
,
opts
)
{
await
task
await
task
.
source
(
opts
.
src
||
relative
(
__dirname
,
require
.
resolve
(
'arg'
)))
.
source
(
opts
.
src
||
relative
(
__dirname
,
require
.
resolve
(
'arg'
)))
...
@@ -353,7 +343,6 @@ export async function precompile(task) {
...
@@ -353,7 +343,6 @@ export async function precompile(task) {
await
task
.
parallel
([
await
task
.
parallel
([
'browser_polyfills'
,
'browser_polyfills'
,
'ncc_amphtml_validator'
,
'ncc_amphtml_validator'
,
'ncc_ampproject__toolbox_optimizer'
,
'ncc_arg'
,
'ncc_arg'
,
'ncc_async_retry'
,
'ncc_async_retry'
,
'ncc_async_sema'
,
'ncc_async_sema'
,
...
...
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