Skip to content

Commit

Permalink
Check vendored @ampproject/toolbox-optimizer into version control
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Aug 4, 2024
1 parent f2d8713 commit 15945d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.

Large diffs are not rendered by default.

6 changes: 2 additions & 4 deletions packages/next/taskfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -1009,7 +1009,7 @@ export async function ncc_amp_optimizer(task, opts) {
precompiled: false,
packageName: '@ampproject/toolbox-optimizer',
})
.target('dist/compiled/@ampproject/toolbox-optimizer')
.target('src/compiled/@ampproject/toolbox-optimizer')
}
// eslint-disable-next-line camelcase
externals['async-retry'] = 'next/dist/compiled/async-retry'
Expand Down Expand Up @@ -2182,6 +2182,7 @@ export async function ncc(task, opts) {
.clear('src/compiled')
.parallel(
[
'ncc_amp_optimizer',
'ncc_node_html_parser',
'ncc_napirs_triples',
'ncc_p_limit',
Expand Down Expand Up @@ -2349,9 +2350,6 @@ export async function next_compile(task, opts) {
'shared_re_exported_esm',
'server_wasm',
'experimental_testmode',
// we compile this each time so that fresh runtime data is pulled
// before each publish
'ncc_amp_optimizer',
],
opts
)
Expand Down

0 comments on commit 15945d9

Please sign in to comment.