{"id":15980698,"url":"https://github.com/drwpow/terser-test","last_synced_at":"2025-04-04T18:44:51.020Z","repository":{"id":66331346,"uuid":"221811077","full_name":"drwpow/terser-test","owner":"drwpow","description":null,"archived":false,"fork":false,"pushed_at":"2019-11-15T01:03:56.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-10T04:17:36.659Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/drwpow.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2019-11-15T00:25:17.000Z","updated_at":"2019-11-15T01:03:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"75b687cd-c868-4af7-8cec-dac5a43d74c8","html_url":"https://github.com/drwpow/terser-test","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"e7dbc4e72545ec17e3404910949632fcadc51e5c"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drwpow%2Fterser-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drwpow%2Fterser-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drwpow%2Fterser-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drwpow%2Fterser-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drwpow","download_url":"https://codeload.github.com/drwpow/terser-test/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247234850,"owners_count":20905852,"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":[],"created_at":"2024-10-08T00:21:50.690Z","updated_at":"2025-04-04T18:44:50.997Z","avatar_url":"https://github.com/drwpow.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Terser test\n\nSimple recreation of bug in `rollup-plugin-terser`.\n\n```\nnpm i\nnpm run build\n```\n\n### Original file (`loader.mjs`)\n\n```\nimport { a as patchEsm, b as bootstrapLazy } from './core-6bb3a07e.js';\n\nconst defineCustomElements = (win, options) =\u003e {\n  return patchEsm().then(() =\u003e {\n    bootstrapLazy([[\"my-component\",[[1,\"my-component\",{\"first\":[1],\"middle\":[1],\"last\":[1]}]]]], options);\n  });\n};\n\nexport { defineCustomElements };\n```\n\n### terser CLI (`loader.terser.mjs`)\n\n```\nimport{a as patchEsm,b as bootstrapLazy}from\"./core-6bb3a07e.js\";const defineCustomElements=(t,e)=\u003e{return patchEsm().then(()=\u003e{bootstrapLazy([[\"my-component\",[[1,\"my-component\",{first:[1],middle:[1],last:[1]}]]]],e)})};export{defineCustomElements};\n```\n\n### rollup (`loader.rollup.mjs`)\n\n```\nconst a = new Promise();\n\nconst defineCustomElements = (win, options) =\u003e {\n  return a().then(() =\u003e {\n  });\n};\n\nexport { defineCustomElements };\n```\n\n### rollup-plugin-terser (`loader.rollup-plugin-terser.mjs`)\n\n```\nimport{a as o,b as a}from\"./core-6bb3a07e.js\";const e=(e,r)=\u003eo().then(()=\u003e{a([],r)});export{e as defineCustomElements};\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrwpow%2Fterser-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrwpow%2Fterser-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrwpow%2Fterser-test/lists"}