{"id":46688483,"url":"https://github.com/oxc-project/oxc-webpack-loader","last_synced_at":"2026-06-17T10:01:50.826Z","repository":{"id":340484595,"uuid":"1166243600","full_name":"oxc-project/oxc-webpack-loader","owner":"oxc-project","description":null,"archived":false,"fork":false,"pushed_at":"2026-06-14T21:57:21.000Z","size":340,"stargazers_count":17,"open_issues_count":2,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-14T23:22:39.197Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://npmx.dev/package/oxc-webpack-loader","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/oxc-project.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null},"funding":{"github":["Boshen"],"open_collective":"oxc","thanks_dev":"u/gh/oxc-project"}},"created_at":"2026-02-25T02:46:50.000Z","updated_at":"2026-06-14T21:56:30.000Z","dependencies_parsed_at":"2026-06-07T19:01:25.715Z","dependency_job_id":null,"html_url":"https://github.com/oxc-project/oxc-webpack-loader","commit_stats":null,"previous_names":["oxc-project/oxc-webpack-loader"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/oxc-project/oxc-webpack-loader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oxc-project%2Foxc-webpack-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oxc-project%2Foxc-webpack-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oxc-project%2Foxc-webpack-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oxc-project%2Foxc-webpack-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oxc-project","download_url":"https://codeload.github.com/oxc-project/oxc-webpack-loader/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oxc-project%2Foxc-webpack-loader/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34426745,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-16T02:00:06.860Z","response_time":126,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2026-03-09T03:00:34.149Z","updated_at":"2026-06-17T10:01:50.820Z","avatar_url":"https://github.com/oxc-project.png","language":"JavaScript","funding_links":["https://github.com/sponsors/Boshen","https://opencollective.com/oxc","https://thanks.dev/u/gh/oxc-project"],"categories":["Plugins"],"sub_categories":["Rspack Loaders"],"readme":"\u003cp align=\"center\"\u003e\n  \u003cbr\u003e\n  \u003cbr\u003e\n  \u003ca href=\"https://oxc.rs\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\n    \u003cpicture\u003e\n      \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://oxc.rs/oxc-light.svg\"\u003e\n      \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"https://oxc.rs/oxc-dark.svg\"\u003e\n      \u003cimg alt=\"Oxc logo\" src=\"https://oxc.rs/oxc-dark.svg\" height=\"60\"\u003e\n    \u003c/picture\u003e\n  \u003c/a\u003e\n  \u003cbr\u003e\n  \u003cbr\u003e\n  \u003cbr\u003e\n\u003c/p\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n[![MIT licensed][license-badge]][license-url]\n[![Build Status][ci-badge]][ci-url]\n[![npm][npm-badge]][npm-url]\n\n[![Discord chat][discord-badge]][discord-url]\n[![Website][website-badge]][website-url]\n\n\u003c/div\u003e\n\n## oxc-loader\n\nWebpack loader for [oxc-transform](https://oxc.rs/docs/guide/usage/transformer.html#features). A drop-in replacement for `swc-loader` and `babel-loader` that uses Oxc for fast JavaScript and TypeScript transformation.\n\n## Install\n\n```bash\nnpm install -D oxc-webpack-loader oxc-transform\n```\n\n## Usage\n\n**webpack.config.js**\n\n```js\nmodule.exports = {\n  module: {\n    rules: [\n      {\n        test: /\\.[jt]sx?$/,\n        exclude: /node_modules/,\n        use: {\n          loader: \"oxc-webpack-loader\",\n          options: {\n            // oxc-transform options\n            // https://oxc.rs/docs/guide/usage/transformer.html#features\n          },\n        },\n      },\n    ],\n  },\n};\n```\n\n### JSX\n\n```js\n{\n  loader: \"oxc-webpack-loader\",\n  options: {\n    jsx: {\n      runtime: \"automatic\", // or \"classic\"\n    },\n  },\n}\n```\n\n### TypeScript\n\nTypeScript is supported out of the box. No additional configuration is needed - just include `.ts` and `.tsx` in the `test` pattern.\n\n### Target\n\n```js\n{\n  loader: \"oxc-webpack-loader\",\n  options: {\n    target: \"es2015\",\n  },\n}\n```\n\n### Source Maps\n\n```js\n{\n  loader: \"oxc-webpack-loader\",\n  options: {\n    sourcemap: true,\n  },\n}\n```\n\nSource maps are also automatically enabled when webpack's `devtool` option is set.\n\n### Sync Mode\n\n```js\n{\n  loader: \"oxc-webpack-loader\",\n  options: {\n    sync: true,\n  },\n}\n```\n\n## Options\n\nAll [oxc-transform `TransformOptions`](https://oxc.rs/docs/guide/usage/transformer.html#features) are supported, plus:\n\n| Option | Type      | Default | Description                                                                                                                                                                                           |\n| ------ | --------- | ------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `sync` | `boolean` | `false` | Use `transformSync` instead of `transform`. The async `transform` spawns a thread per call, which can be slower due to overhead. Sync mode runs on the main thread and may be faster for small files. |\n\n## License\n\nOxc is free and open-source software licensed under the [MIT License](./LICENSE).\n\n[license-badge]: https://img.shields.io/badge/license-MIT-blue.svg\n[license-url]: https://github.com/oxc-project/oxc-webpack-loader/blob/main/LICENSE\n[ci-badge]: https://github.com/oxc-project/oxc-webpack-loader/actions/workflows/ci.yml/badge.svg?event=push\u0026branch=main\n[ci-url]: https://github.com/oxc-project/oxc-webpack-loader/actions/workflows/ci.yml?query=event%3Apush+branch%3Amain\n[npm-badge]: https://img.shields.io/npm/v/oxc-loader\n[npm-url]: https://npmx.dev/package/oxc-webpack-loader\n[discord-badge]: https://img.shields.io/discord/1079625926024900739?logo=discord\u0026label=Discord\n[discord-url]: https://discord.gg/9uXCAwqQZW\n[website-badge]: https://img.shields.io/badge/Website-blue\n[website-url]: https://oxc.rs\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foxc-project%2Foxc-webpack-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foxc-project%2Foxc-webpack-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foxc-project%2Foxc-webpack-loader/lists"}