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: bundle types #172

Merged
merged 1 commit into from
Jun 8, 2022
Merged

feat: bundle types #172

merged 1 commit into from
Jun 8, 2022

Conversation

jrandolf
Copy link
Contributor

@jrandolf jrandolf commented Jun 7, 2022

This PR adds rollup as the predominant build system for this repo. In particular, the migration to rollup allows us to bundle types.

@OrKoN
Copy link
Collaborator

OrKoN commented Jun 7, 2022

I think this would prevent using Puppeteer as a peer dependency as there will be two (possibly different) copies of Puppeteer types in the project? It'd require rolling the lib together with Puppeteer even if the public API didn't change.

@jrandolf
Copy link
Contributor Author

jrandolf commented Jun 7, 2022

I think this would prevent using Puppeteer as a peer dependency as there will be two (possibly different) copies of Puppeteer types in the project? It'd require rolling the lib together with Puppeteer even if the public API didn't change.

In some sense yes, but only the types that are exposed. In particular, only the Browser and ElementHandle types are used, so only these types are resolved completely.

package.json Outdated Show resolved Hide resolved
Copy link
Collaborator

@OrKoN OrKoN left a comment

Choose a reason for hiding this comment

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

LGTM % let's maybe test in our build before releasing

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.

None yet

2 participants