{"id":16811282,"url":"https://github.com/raananw/babylonjs-esm-in-browser","last_synced_at":"2026-02-12T15:03:28.472Z","repository":{"id":145453731,"uuid":"585547746","full_name":"RaananW/babylonjs-esm-in-browser","owner":"RaananW","description":"A simple example of how to use Babylon.js es6 packages directly in your browser.","archived":false,"fork":false,"pushed_at":"2023-01-09T11:34:22.000Z","size":6967,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-08-22T02:03:41.274Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RaananW.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-05T13:01:15.000Z","updated_at":"2024-10-22T16:31:00.000Z","dependencies_parsed_at":"2023-04-21T18:31:33.920Z","dependency_job_id":null,"html_url":"https://github.com/RaananW/babylonjs-esm-in-browser","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/RaananW/babylonjs-esm-in-browser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RaananW%2Fbabylonjs-esm-in-browser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RaananW%2Fbabylonjs-esm-in-browser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RaananW%2Fbabylonjs-esm-in-browser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RaananW%2Fbabylonjs-esm-in-browser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RaananW","download_url":"https://codeload.github.com/RaananW/babylonjs-esm-in-browser/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RaananW%2Fbabylonjs-esm-in-browser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29369389,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T08:51:36.827Z","status":"ssl_error","status_checked_at":"2026-02-12T08:51:26.849Z","response_time":55,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T10:18:18.372Z","updated_at":"2026-02-12T15:03:28.443Z","avatar_url":"https://github.com/RaananW.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Babylon.js in-browser es modules support\n\n**EXPERIMENTAL**\n\nThis project is an example of how to use babylon in a modules-script in-browser.\n\nIt is using the import-map feature, which sadly is not available in all browsers (I am looking at you, Apple. AGAIN.).\n\nTo check in which browser(s) it does work, see [caniuse import-maps](https://caniuse.com/import-maps).\n\n## How to use\n\nTo get started you need to serve the @babylonjs/core (and /loaders) folders, along with your own code. The `npm run build` command will do that for you.\n\nAfterwards you can either open a web-server in the dist folder, or run `npm run watch` to start a web-server and watch for changes.\n\n## TL;dr\n\n```bash\nnpm install\nnpm run build\nnpm run watch # or serve the dist folder on your own\n```\n\nAll files you need are now in the dist folder.\n\n## Why rollup\n\nRollup is NOT needed in this project. I only use rollup's plugin system to run the copy plugin. Otherwise, you can use pure typescript to compile your file(s).\nYou can technically ignore the rollup unresolved import warning - it is quite expected.\n\n## It doesn't work\n\n[Yes it does...](https://raananw.github.io//babylonjs-esm-in-browser/)\n If it doesn't, you are probably using a browser that doesn't support import-maps or es modules. Note that IE11 is already retired. And Apple browsers are always behind.\n\n## Adding other babylon packages\n\nGo right ahead. Just make sure to run `npm run build` afterwards.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraananw%2Fbabylonjs-esm-in-browser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraananw%2Fbabylonjs-esm-in-browser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraananw%2Fbabylonjs-esm-in-browser/lists"}