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

Export browser file for module resolution #2

Merged
merged 1 commit into from
Nov 22, 2024

Conversation

kapouer
Copy link
Contributor

@kapouer kapouer commented Nov 22, 2024

This ensures that depending on the package type,
require.resolve("view-transitions-polyfill")
import.meta.resolve("view-transitions-polyfill")
both return the correct file path.
"browser" is not a standard package.json field name.

This ensures that depending on the package type,
require.resolve("view-transitions-polyfill")
import.meta.resolve("view-transitions-polyfill")
both return the correct file path.
"browser" is not a standard package.json field name.
@demarketed demarketed merged commit 8e4d777 into demarketed:main Nov 22, 2024
1 of 2 checks passed
@demarketed
Copy link
Owner

@kapouer Thank you for your pull request!

@kapouer
Copy link
Contributor Author

kapouer commented Nov 22, 2024

And thank you for the quick fix.

BTW the last issue I opened doesn't need any answer.

@demarketed
Copy link
Owner

demarketed commented Nov 22, 2024

Version 1.0.3 includes the latest fixes (also on npm).

BTW the last issue I opened doesn't need any answer.

Whoops, I hadn't read it yet

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.

2 participants