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

Provide a browser version that doesn't require ES modules #480

Closed
nt1m opened this issue Jun 10, 2023 · 1 comment
Closed

Provide a browser version that doesn't require ES modules #480

nt1m opened this issue Jun 10, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@nt1m
Copy link

nt1m commented Jun 10, 2023

Right now I can do:

import YAML from "https://unpkg.com/[email protected]/browser/index.js";

but that requires me to change existing scripts to be modules.

I'd like to be able to use YAML by just doing:

<script src="..."></script>
@nt1m nt1m added the enhancement New feature or request label Jun 10, 2023
@eemeli
Copy link
Owner

eemeli commented Jun 12, 2023

As this is a source repository that does not package the code for production, what you're asking for is a bit beyond its scope.

You're probably best off by packaging yaml yourself in a shape that suits your use case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants