Skip to content
This repository has been archived by the owner on Jun 1, 2022. It is now read-only.

Add .js extensions to imports #256

Merged
merged 1 commit into from
Sep 10, 2020
Merged

Conversation

crabmusket
Copy link
Contributor

When loading the library from unpkg, this isn't a problem because it knows how to serve the files even without extensions. But when importing from a local file tree, most file servers will respond with a 404.

.d.ts files need not be fixed because TypeScript imports work differently. I also haven't fixed any files in the test folder as I assume these are intended to run in node and not be imported in the browser.

@robertlong robertlong merged commit 121ad7d into ecsyjs:dev Sep 10, 2020
@robertlong
Copy link
Member

LGTM 👍, thank you!

@crabmusket crabmusket deleted the fix_esm_imports branch September 10, 2020 07:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants