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

[Feature requested] It is very necessary to add NPM package to create links on jsDelivr, unpkg or Skypack #86

Open
8Observer8 opened this issue Jul 8, 2023 · 0 comments

Comments

@8Observer8
Copy link

8Observer8 commented Jul 8, 2023

It is very necessary to add NPM package to create links on jsDelivr, unpkg or Skypack.

It should support ES-module (ESM) like it was made for @box2d/core: https://www.npmjs.com/package/@box2d/core

    <!-- Since import maps are not yet supported by all browsers, its is
        necessary to add the polyfill es-module-shims.js -->
    <script async src="https://unpkg.com/[email protected]/dist/es-module-shims.js"></script>

    <script type="importmap">
        {
            "imports": {
                "@box2d/core": "https://cdn.skypack.dev/@box2d/[email protected]",
                "gl-matrix": "https://cdn.jsdelivr.net/npm/[email protected]/+esm"
            }
        }
    </script>

    <script type="module">
        import { b2Vec2 } from "@box2d/core";

        const vec = new b2Vec2(1, 2);
        console.log("vec =", vec);
    </script>
@8Observer8 8Observer8 changed the title [Feature requested] It is very necessary NPM package to create links on jsDelivr, unpkg or skypack [Feature requested] It is very necessary to create NPM package to create links on jsDelivr, unpkg or skypack Jul 8, 2023
@8Observer8 8Observer8 changed the title [Feature requested] It is very necessary to create NPM package to create links on jsDelivr, unpkg or skypack [Feature requested] It is very necessary to create NPM package to create links on jsDelivr, unpkg or Skypack Jul 8, 2023
@8Observer8 8Observer8 changed the title [Feature requested] It is very necessary to create NPM package to create links on jsDelivr, unpkg or Skypack [Feature requested] It is very necessary to add NPM package to create links on jsDelivr, unpkg or Skypack Jul 8, 2023
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