{"id":21216656,"url":"https://github.com/jackhowa/esmodule-no-module-doing-something","last_synced_at":"2025-07-06T18:34:27.436Z","repository":{"id":42671743,"uuid":"327747699","full_name":"JackHowa/esmodule-no-module-doing-something","owner":"JackHowa","description":"do crazy something with nomodule/module ","archived":false,"fork":false,"pushed_at":"2023-03-05T18:57:16.000Z","size":515,"stargazers_count":3,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-15T00:42:01.859Z","etag":null,"topics":["esmodule","nomodule","regenerator-runtime"],"latest_commit_sha":null,"homepage":"https://nomodule-module-faceoff.netlify.app/","language":"JavaScript","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/JackHowa.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":"2021-01-07T23:23:10.000Z","updated_at":"2024-01-10T22:01:21.000Z","dependencies_parsed_at":"2024-11-20T21:54:39.927Z","dependency_job_id":"d8c0cc15-0b73-419a-a826-d8445ebd9007","html_url":"https://github.com/JackHowa/esmodule-no-module-doing-something","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/JackHowa/esmodule-no-module-doing-something","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JackHowa%2Fesmodule-no-module-doing-something","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JackHowa%2Fesmodule-no-module-doing-something/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JackHowa%2Fesmodule-no-module-doing-something/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JackHowa%2Fesmodule-no-module-doing-something/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JackHowa","download_url":"https://codeload.github.com/JackHowa/esmodule-no-module-doing-something/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JackHowa%2Fesmodule-no-module-doing-something/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263952113,"owners_count":23534855,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["esmodule","nomodule","regenerator-runtime"],"created_at":"2024-11-20T21:54:32.994Z","updated_at":"2025-07-06T18:34:27.359Z","avatar_url":"https://github.com/JackHowa.png","language":"JavaScript","readme":"# esmodule-no-module-doing-something\n\ndo crazy something with nomodule/module\n\n- [x] transpile two outputs\n- [x] use nomodule/module pattern found in https://jakearchibald.com/2017/es-modules-in-browsers/#nomodule-for-backwards-compatibility\n- [x] test somehow with ie 11 -\u003e used Parallels free trial\n- [x] transpile output successfully (getting require error with regenerator runtime not found)\n- [x] document webpack solution with regenerator runtime\n- [x] pass estimator.dev -\u003e nearly 6% left\n\ndebugging: https://github.com/babel/babel/discussions/12598\n\n## Reference\n\n- https://stackoverflow.com/questions/57492546/what-is-the-difference-between-js-and-mjs-files\n- https://jakearchibald.com/2017/es-modules-in-browsers/#nomodule-for-backwards-compatibility\n- https://html.spec.whatwg.org/multipage/scripting.html#script-nomodule-example\n- https://stackoverflow.com/questions/60895930/javascript-type-module-doesnt-execute\n\n### Babel\n\n- default broswerlistrc https://babeljs.io/docs/en/babel-preset-env#no-targets\n- module https://babeljs.io/docs/en/babel-preset-env#targetsesmodules\n- transform regenerator via error `SCRIPT5009: 'regeneratorRuntime' is undefined` https://stackoverflow.com/a/36821986/7491536\n- https://babeljs.io/docs/en/babel-plugin-transform-runtime\n- https://philipwalton.com/articles/deploying-es2015-code-in-production-today/\n- https://github.com/babel/preset-modules#babelpreset-modules\n- https://css-tricks.com/differential-serving/\n- jason miller preset modules https://babeljs.io/blog/2020/03/16/7.9.0\n- https://github.com/babel/babel-loader/issues/754\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjackhowa%2Fesmodule-no-module-doing-something","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjackhowa%2Fesmodule-no-module-doing-something","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjackhowa%2Fesmodule-no-module-doing-something/lists"}