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

feat: support cjs config file extension #650

Merged
merged 2 commits into from
Jul 8, 2021

Conversation

remcohaszing
Copy link
Contributor

This allows users to use Lighthouse CI in a project which has "type": "module" in their package.json file.

I also looked into supporting ESM configuration files, but since import() is asynchronous, this is a lot more work than just supporting .cjs files in a code base I’m not very familiar with.

This allows users to use Lighthouse CI in a project which has `"type": "module"`
in their `package.json` file.
Copy link
Collaborator

@patrickhulce patrickhulce left a comment

Choose a reason for hiding this comment

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

thanks for filing @remcohaszing! could we add a test case for this or is it prohibitively difficult to setup?

@remcohaszing
Copy link
Contributor Author

thanks for filing @remcohaszing! could we add a test case for this or is it prohibitively difficult to setup?

Done. That was actually pretty straight forward. :)

Copy link
Collaborator

@patrickhulce patrickhulce left a comment

Choose a reason for hiding this comment

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

thanks @remcohaszing!

@fsmaia
Copy link

fsmaia commented Feb 27, 2023

Amazing!!
It just is missing an update at docs/getting-started.md.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants