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

V2 esm CDN? #304

Open
dkipp opened this issue Jul 11, 2023 · 1 comment
Open

V2 esm CDN? #304

dkipp opened this issue Jul 11, 2023 · 1 comment

Comments

@dkipp
Copy link

dkipp commented Jul 11, 2023

I tried to figure out how to use the example at:
https://v2.baklava.tech/browser-build.html
But as ECMAScript modules (esm) and failed. Has anyone got it working?

I tried every option jsdelivery provided me. e.g.:

<script type="module">import baklavajs from 'https://cdn.jsdelivr.net/npm/[email protected]/+esm'</script>
<script type="module">import * as baklavajs from 'https://cdn.jsdelivr.net/npm/[email protected]/+esm'</script>
...

@dkipp
Copy link
Author

dkipp commented Jul 12, 2023

this one works:
import { Core, Engine, InterfaceTypes, RendererVue, createBaklava } from 'https://cdn.jsdelivr.net/npm/[email protected]/dist/esm/bundle.js/+esm';

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

1 participant