Skip to content

Conversation

@SwinX
Copy link
Collaborator

@SwinX SwinX commented Nov 25, 2025

Added conditional exports as modern approach
Restrited interface to index files only for each lib part Removed config examples as non-relevant content
Ported patch for collectPageActivity action from playwright-utils

Added conditional exports as modern approach
Restrited interface to index files only for each lib part
Removed config examples as non-relevant content
Ported patch for collectPageActivity action from playwright-utils
"./actions": {
"types": "./actions/index.d.ts",
"import": "./actions/index.js",
"require": "./actions/index.js"
Copy link

Choose a reason for hiding this comment

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

Maybe we can just use default here, instead of import+require with the same target?

"default" - the generic fallback that always matches. Can be a CommonJS or ES module file. This condition should always come last.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Hmm, lets keep it as is. If sometime later we will need to separate commonjs and module APIs, we will need to go back to this place.

Some verbosity here is ok IMO

@SwinX SwinX merged commit 978c475 into main Nov 26, 2025
4 checks passed
@gravity-ui gravity-ui bot mentioned this pull request Nov 26, 2025
@SwinX SwinX deleted the fix/exports branch November 26, 2025 13:10
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