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

Consider adding .mjs export #370

Open
DamianGlowala opened this issue Sep 18, 2024 · 1 comment
Open

Consider adding .mjs export #370

DamianGlowala opened this issue Sep 18, 2024 · 1 comment

Comments

@DamianGlowala
Copy link

DamianGlowala commented Sep 18, 2024

Instead of having to import JSON file with import type assertion (which unexpectedly breaks stuff):

import crawlers from 'crawler-user-agents' with { type: 'json' }

... could we have an .mjs entry point for JavaScript/TypeScript users?

@DamianGlowala DamianGlowala changed the title Consider generating an export with named/default variable holding content from JSON Consider adding .mjs export Sep 18, 2024
@monperrus
Copy link
Owner

monperrus commented Sep 19, 2024 via email

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

No branches or pull requests

2 participants