{"id":19024656,"url":"https://github.com/yukihirop/my-module-bundler","last_synced_at":"2026-06-19T08:03:00.981Z","repository":{"id":56451912,"uuid":"271841992","full_name":"yukihirop/my-module-bundler","owner":"yukihirop","description":"minipack based hoby module bundler","archived":false,"fork":false,"pushed_at":"2023-12-15T14:55:37.000Z","size":661,"stargazers_count":1,"open_issues_count":13,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-02T01:42:50.738Z","etag":null,"topics":["example","hobby","lerna","module-bundler"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/yukihirop.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":"2020-06-12T16:22:26.000Z","updated_at":"2022-06-14T11:53:45.000Z","dependencies_parsed_at":"2024-11-08T20:42:26.241Z","dependency_job_id":"01ebc027-20d8-49a6-9bfa-5f5b4896bd98","html_url":"https://github.com/yukihirop/my-module-bundler","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yukihirop%2Fmy-module-bundler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yukihirop%2Fmy-module-bundler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yukihirop%2Fmy-module-bundler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yukihirop%2Fmy-module-bundler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yukihirop","download_url":"https://codeload.github.com/yukihirop/my-module-bundler/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240072132,"owners_count":19743526,"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":["example","hobby","lerna","module-bundler"],"created_at":"2024-11-08T20:37:52.049Z","updated_at":"2026-04-29T22:30:17.207Z","avatar_url":"https://github.com/yukihirop.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## My module bundler\n\nIt it a module bundler with the following transform plugins.  \nThe module bundler is based on [minipack](https://github.com/ronami/minipack).\n\n#### plugins\n\n- @yukihirop/plugin-transform-arrow-functions\n- @yukihirop/plugin-transform-destructuring (coverage 60%)\n- @yukihirop/plugin-transform-modules-commonjs\n- @yukihirop/plugin-transform-typeof-symbol\n\n#### presets\n\n- @yukihirop/preset-my\n  - @yukihirop/plugin-transform-arrow-functions\n  - @yukihirop/plugin-transform-destructuring (coverage 60%)\n  - @yukihirop/plugin-transform-modules-commonjs\n  - @yukihirop/plugin-transform-typeof-symbol\n\nSince only `destructuring` is complicated to implement, the coverage (type that can be converted) is low.\n\n## Development\n\n```bash\nyarn\nlerna bootstrap\n```\n\nTips for operating the library for each package\n\nhttps://github.com/yukihirop/my-module-bundler/issues/1\n\n## Example\n\n```bash\nyarn bundler:dev ./example/destructuring/call-expression-array-basic/entry.js ./dist/destructuring/call-expression-array-basic.js\n```\n\n## Test\n\n```bash\nyarn test\n```\n\n```\n$ yarn test\nyarn run v1.19.0\n$ yarn build \u0026\u0026 jest --verbose\n$ yarn clean \u0026\u0026 tsc -b packages/bundler packages/plugin-transform-arrow-functions packages/plugin-transform-modules-commonjs packages/plugin-transform-typeof-symbol packages/plugin-transform-destructuring packages/preset-my\n$ rimraf packages/**/lib\n PASS  packages/plugin-transform-arrow-functions/__tests__/plugin-transform-arrow-functions.test.ts\n  arrow-functions\n    ✓ basic (91 ms)\n    ✓ default-parameters (18 ms)\n    ✓ expression (10 ms)\n    ✓ nested (14 ms)\n    ✓ paran-insertion (9 ms)\n    ✓ spec-naming (9 ms)\n\n PASS  packages/plugin-transform-typeof-symbol/__tests__/plugin-transform-typeof-symbol.test.ts\n  typeof-symbol\n    ✓ basic (97 ms)\n    ✓ builtin-global (204 ms)\n    ✓ builtin-global-string (74 ms)\n    ✓ typeof-typeof (15 ms)\n    ✓ non-typeof (7 ms)\n    ✓ typeof-function-declaration (16 ms)\n    ✓ typeof-function-expression-var (17 ms)\n    ✓ typeof-function-expression-func (16 ms)\n\n PASS  packages/plugin-transform-destructuring/__tests__/plugin-transform-destructuring.test.ts\n  destructuring\n    ✓ array-basic (66 ms)\n    ✓ array-rest-basic (19 ms)\n    ✓ array-rest-nested (19 ms)\n    ✓ array-overflow (17 ms)\n    ✓ array-self-reference (13 ms)\n    ✓ array-assignment-function-block (12 ms)\n    ✓ object-basic (23 ms)\n    ✓ object-rest-basic (67 ms)\n    ✓ object-rest-nested (58 ms)\n    ✓ object-overflow (26 ms)\n    ✓ object-assignment-function-block (10 ms)\n    ✓ call-expression-array-basic (53 ms)\n    ✓ call-expression-array-helper-rename (40 ms)\n    ✓ call-expression-array-self-reference (27 ms)\n  destructuring(err)\n    ✓ call-expression-array-init-mix (31 ms)\n\n PASS  packages/plugin-transform-modules-commonjs/__tests__/plugin-transform-modules-commonjs.test.ts\n  modules-commonjs\n    interop\n      ✓ export-default-literal (71 ms)\n      ✓ export-default-oe (18 ms)\n      ✓ export-default-ae (23 ms)\n      ✓ export-default-fd (13 ms)\n      ✓ export-default-fd-id-name (13 ms)\n      ✓ export-default-ce (16 ms)\n      ✓ export-default-ne (16 ms)\n      ✓ export-from-all (24 ms)\n      ✓ export-from-named (18 ms)\n      ✓ export-from-named-multi (15 ms)\n      ✓ export-from-as (11 ms)\n      ✓ export-from-as-default (15 ms)\n      ✓ export-from-as-mix (27 ms)\n      ✓ export-from-default-as (35 ms)\n      ✓ export-named (11 ms)\n      ✓ export-named-multi (11 ms)\n      ✓ export-named-as (12 ms)\n      ✓ export-named-as-default (11 ms)\n      ✓ export-named-as-mix (15 ms)\n      ✓ export-named-remap (10 ms)\n      ✓ export-variables (49 ms)\n      ✓ import-default-literal (20 ms)\n      ✓ import-default-as (17 ms)\n      ✓ import-wildcard-as (53 ms)\n      ✓ import-as-mix (27 ms)\n      ✓ import-named (12 ms)\n      ✓ import-named-multi (13 ms)\n      ✓ import-named-as-mix (9 ms)\n      ✓ import-basic (9 ms)\n      ✓ import-hoist (17 ms)\n      ✓ import-global-variable-unbind (12 ms)\n      ✓ import-wildcard-as-hoist (27 ms)\n      ✓ export-hoist-function-success (13 ms)\n      ✓ export-rename-hoist (21 ms)\n      ✓ export-rename-not-hoist (19 ms)\n      ✓ export-illegal (4 ms)\n      ✓ export-hoist-function-failure (16 ms)\n    misc(throw error)\n      ✓ import-global-variable-throw-bs (20 ms)\n      ✓ import-global-variable-throw-ae (9 ms)\n      ✓ import-global-variable-throw-id (11 ms)\n      ✓ import-global-variable-throw-bs-ls (15 ms)\n      ✓ undefined-this-computed-class-method (7 ms)\n      ✓ undefined-this-root-call (5 ms)\n    misc\n      ✓ this-computed-class-method-wrap-func (7 ms)\n      ✓ undefined-this-root-declaration (5 ms)\n      ✓ undefined-this-root-reference (5 ms)\n    noInterop\n      ✓ import-default (8 ms)\n      ✓ import-wildcard (9 ms)\n      ✓ export-named-from (12 ms)\n    loose\n      ✓ export-default (11 ms)\n    strictMode\n      ✓ false (6 ms)\n\nTest Suites: 4 passed, 4 total\nTests:       80 passed, 80 total\nSnapshots:   79 passed, 79 total\nTime:        3.046 s\nRan all test suites.\n✨  Done in 14.97s.\n```\n\n## .mmbrc\n\nSame as `.babelrc`.  \nWrite with nodejs.\n\n```js\nconst path = require('path');\n\nmodule.exports = {\n  presets: [path.resolve(__dirname, 'packages/preset-my')],\n};\n```\n\nor\n\n```js\nconst path = require('path');\n\nmodule.exports = {\n  \"plugins: [\n    path.resolve(__dirname, \"packages/plugin-transform-arrow-functions\"),\n    path.resolve(__dirname, \"packages/plugin-transform-destructuring\"),\n    path.resolve(__dirname, \"packages/plugin-transform-modules-commonjs\"),\n    path.resolve(__dirname, \"packages/plugin-transform-typeof-symbol\")\n  ]\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyukihirop%2Fmy-module-bundler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyukihirop%2Fmy-module-bundler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyukihirop%2Fmy-module-bundler/lists"}