Skip to content
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): add support for plugins #13028

Merged
merged 2 commits into from
Sep 13, 2021
Merged

core(fr): add support for plugins #13028

merged 2 commits into from
Sep 13, 2021

Conversation

patrickhulce
Copy link
Collaborator

Summary
Adds plugin support to Fraggle Rock along with a pubads smoketest to validate that legacy, FR, and bundled modes of Lighthouse can at least process and run plugin audits (even if it does not exercise their correctness which requires a pubads integration).

Related Issues/PRs
ref #11313

@patrickhulce patrickhulce requested a review from a team as a code owner September 9, 2021 16:14
@patrickhulce patrickhulce requested review from connorjclark and removed request for a team September 9, 2021 16:14
@google-cla google-cla bot added the cla: yes label Sep 9, 2021
try {
// Not foolproof, but `lighthouse-logger` is a dependency of lighthouse that should always be resolvable.
// `require.resolve` will only throw in atypical/bundled environments.
require.resolve('lighthouse-logger');
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i cri in esm evry time

( I don't have an alternative suggestion )

Copy link
Collaborator

@connorjclark connorjclark Sep 9, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

except for: making build-bundle inject a globalThis.isBundled = true...

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should be able to use createRequire/import.meta.require/require.resolve combo based on environment, though detection will be annoying :)

@patrickhulce patrickhulce merged commit 298ec1a into master Sep 13, 2021
@patrickhulce patrickhulce deleted the fr_plugins branch September 13, 2021 14:53
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