Skip to content

fix: add missing dependencies#798

Closed
merceyz wants to merge 3 commits intoampproject:masterfrom
merceyz:missing-dependencies
Closed

fix: add missing dependencies#798
merceyz wants to merge 3 commits intoampproject:masterfrom
merceyz:missing-dependencies

Conversation

@merceyz
Copy link
Copy Markdown
Contributor

@merceyz merceyz commented May 27, 2020

What's the problem this PR addresses?

@ampproject/toolbox-core and @ampproject/toolbox-optimizer is using undeclared dependencies which breaks Yarn PnP support in Next.js (https://github.com/yarnpkg/berry/runs/711731982?check_suite_focus=true#step:5:51).

x-ref: vercel/next.js#13354

How did you fix it?

  • Added lru-cache to @ampproject/toolbox-core
  • Added cross-fetch, dom-serializer, postcss to @ampproject/toolbox-optimizer

@sebastianbenz
Copy link
Copy Markdown
Collaborator

Thanks for the fix! This required a bit more work as I needed to migrate to the new dom-serializer API. Closing this in favor of #799

@merceyz merceyz deleted the missing-dependencies branch May 27, 2020 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants