demarketed / view-transitions-polyfill

Polyfill for the View Transitions API
https://demarketed.github.io/view-transitions-polyfill/
ISC License
9 stars 1 forks source link

Export browser file for module resolution #2

Closed kapouer closed 5 days ago

kapouer commented 5 days ago

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 commented 5 days ago

@kapouer Thank you for your pull request!

kapouer commented 5 days ago

And thank you for the quick fix.

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

demarketed commented 5 days ago

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