-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
core(fr): make FR navigations the default in node #13783
Conversation
build/build-bundle.js
Outdated
@@ -91,6 +91,7 @@ async function build(entryPath, distPath, opts = {minify: true}) { | |||
const shimsObj = {}; | |||
|
|||
const modulesToIgnore = [ | |||
'puppeteer', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Puppeteer isn't needed if the environment provides a puppeteer page as a dependency. We don't need puppeteer bloating our bundle.
package.json
Outdated
@@ -199,6 +198,7 @@ | |||
"metaviewport-parser": "0.2.0", | |||
"open": "^8.4.0", | |||
"parse-cache-control": "1.0.1", | |||
"puppeteer": "^10.2.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we do not need puppeteer's bundled chromium (we use chrome-launcher), we should use puppeteer-core
instead.
https://github.com/puppeteer/puppeteer/blob/main/docs/api.md#puppeteer-vs-puppeteer-core
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In fact, it might be worth first doing a PR that changes our devDep from pup to pup-core.
There's also #13657 to consider.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In that case, we can keep puppeteer
as a dev dep because we use it in a few scripts, and then just have pup-core as the package dep.
…se into fr-as-default-node
if (flags.fraggleRock) { | ||
flags.channel = 'fraggle-rock-cli'; | ||
} else { | ||
flags.channel = 'cli'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we emit a console.warning stating that this is deprecated?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah but I think it makes more sense in the next PR, once we switch --fraggle-rock
to --legacy-navigation
. Right now the default behavior would be to emit the deprecation warning.
Doc
This PR makes FR navigations the default for the node API. One important requirement for this change is making
puppeteer-core
a package dependency.