{"id":15535349,"url":"https://github.com/stefanpenner/broccoli-swc","last_synced_at":"2025-04-23T14:38:19.313Z","repository":{"id":65996192,"uuid":"170064493","full_name":"stefanpenner/broccoli-swc","owner":"stefanpenner","description":"Experimental SWC compiler for broccoli.","archived":false,"fork":false,"pushed_at":"2021-10-21T01:56:19.000Z","size":79,"stargazers_count":14,"open_issues_count":6,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-30T00:31:43.097Z","etag":null,"topics":["broccoli","broccoli-plugin","ember","ember-cli"],"latest_commit_sha":null,"homepage":"","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/stefanpenner.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-02-11T03:54:54.000Z","updated_at":"2024-05-30T03:05:53.000Z","dependencies_parsed_at":"2023-07-06T12:01:31.128Z","dependency_job_id":null,"html_url":"https://github.com/stefanpenner/broccoli-swc","commit_stats":{"total_commits":45,"total_committers":2,"mean_commits":22.5,"dds":0.0444444444444444,"last_synced_commit":"2e334bc143c5718d9b19ceeb812d11fbd1c00989"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefanpenner%2Fbroccoli-swc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefanpenner%2Fbroccoli-swc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefanpenner%2Fbroccoli-swc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefanpenner%2Fbroccoli-swc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stefanpenner","download_url":"https://codeload.github.com/stefanpenner/broccoli-swc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250454298,"owners_count":21433325,"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":["broccoli","broccoli-plugin","ember","ember-cli"],"created_at":"2024-10-02T11:46:05.976Z","updated_at":"2025-04-23T14:38:19.303Z","avatar_url":"https://github.com/stefanpenner.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# broccoli-swc\n[![Build Status](https://travis-ci.org/stefanpenner/broccoli-swc.svg?branch=master)](https://travis-ci.org/stefanpenner/broccoli-swc)\n\nExperimental SWC compiler for broccoli (mostly using this to explore SWC, and see what it still needs to be an option for us).\n\n\u003e Super-fast javascript to javascript compiler written in rust\n\nTL;DR SWC is a alternative to babel / buble for the JS ecosystem.\n\n* SWC Repo: https://github.com/swc-project/swc\n* SWC Site: https://swc-project.github.io/\n\nThis module aims to experiment using SWC in the broccoli and ember-cli ecosystems.\n\n\n## usage\n\n### Basic via Brocfile.js or Broccoli pipeline\n\n```js\n// Brocfile.js\nconst swc = require('broccoli-swc');\nmodule.exports = swc(__dirname + '/src', {\n  swc: {\n    module: {\n      type: 'commonjs' | 'amd'\n      moduleId: // optional or true, if true it will infer the module name from the file path.\n    }\n  }\n}); // where src/**/*.js contains ecmascript\n```\n\n### Extension / Subclassing\n\n```js\n// Brocfile.js\nconst swc = require('broccoli-swc');\n\nmodule.exports = class CustomSWC extends swc.Plugin {\n  // custom behavior\n}\n```\n\n## SWC Issues:\n\nhttps://github.com/stefanpenner/broccoli-swc/issues/9\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefanpenner%2Fbroccoli-swc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstefanpenner%2Fbroccoli-swc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefanpenner%2Fbroccoli-swc/lists"}