Skip to content

ESM bundle is not usable in browser #7029

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

Closed
muratcorlu opened this issue Jul 26, 2022 · 1 comment
Closed

ESM bundle is not usable in browser #7029

muratcorlu opened this issue Jul 26, 2022 · 1 comment

Comments

@muratcorlu
Copy link

muratcorlu commented Jul 26, 2022

Describe the bug

ESM bundle files uses imports without file extentions. Check https://cdn.jsdelivr.net/npm/[email protected]/dist/esm/index.js

As a result of this it's not possible to use ESM bundle directly in the browser. They all respond 404 Not Found.

Expected behavior

File imports in ESM bundles should include .js file extentions.

Reproduction code

<script type="module">
import { Observable } from "https://cdn.jsdelivr.net/npm/[email protected]/dist/esm/index.js";

console.log(Observable);
</script>

Then you will see many network errors.

Reproduction URL

https://jsfiddle.net/bh4y70fs/

Version

7.5.6

Environment

No response

Additional context

No response

@kwonoj
Copy link
Member

kwonoj commented Jul 26, 2022

Dupe: #4416

@kwonoj kwonoj closed this as completed Jul 26, 2022
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