ecsyjs / ecsy

Entity Component System for javascript
https://ecsyjs.github.io/ecsy/
MIT License
1.11k stars 115 forks source link

Add .js extensions to imports #256

Closed crabmusket closed 4 years ago

crabmusket commented 4 years ago

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 commented 4 years ago

LGTM :+1:, thank you!