{"id":15408131,"url":"https://github.com/benmerckx/esload","last_synced_at":"2025-04-18T15:15:32.955Z","repository":{"id":150757587,"uuid":"309734071","full_name":"benmerckx/esload","owner":"benmerckx","description":"Use webpack loaders as esbuild plugins","archived":false,"fork":false,"pushed_at":"2020-11-16T11:20:38.000Z","size":129,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-29T06:22:59.771Z","etag":null,"topics":["esbuild","webpack"],"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/benmerckx.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-11-03T15:47:34.000Z","updated_at":"2022-08-23T23:32:31.000Z","dependencies_parsed_at":"2023-08-30T22:46:19.744Z","dependency_job_id":null,"html_url":"https://github.com/benmerckx/esload","commit_stats":{"total_commits":12,"total_committers":1,"mean_commits":12.0,"dds":0.0,"last_synced_commit":"ebb6b389bf48150c001139fdce2d9e13383d1c67"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benmerckx%2Fesload","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benmerckx%2Fesload/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benmerckx%2Fesload/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benmerckx%2Fesload/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/benmerckx","download_url":"https://codeload.github.com/benmerckx/esload/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249509174,"owners_count":21283542,"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":["esbuild","webpack"],"created_at":"2024-10-01T16:31:53.826Z","updated_at":"2025-04-18T15:15:32.822Z","avatar_url":"https://github.com/benmerckx.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# esload\n\nUse webpack loaders as esbuild plugins\n\n```js\nimport {esload} from 'esload'\nimport {build} from 'esbuild'\n\nconst plugin = esload({\n  name: 'my-plugin-name',\n  // webpack loaders may emit files to this folder\n  outdir: 'dist',\n  // use these as you would use webpack module.rules\n  rules: [\n    {test: /\\.txt$/, use: ['raw-loader']},\n    {\n      test: /\\.scss$/,\n      use: [\n        'style-loader',\n        {\n          loader: 'css-loader',\n          options: {modules: {auto: true}}\n        },\n        'sass-loader'\n      ]\n    },\n    {test: /\\.jpg$/, use: ['file-loader']}\n    // ...\n  ]\n})\n\n// build with esbuild\nbuild({\n  entryPoints: ['src/index.ts'],\n  bundle: true,\n  platform: 'node',\n  outfile: 'dist/index.js',\n  plugins: [plugin],\n  define: {\n    // some constants might have to be defined here\n    __webpack_public_path__: '\"/\"'\n  }\n}).catch(() =\u003e process.exit(1))\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenmerckx%2Fesload","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenmerckx%2Fesload","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenmerckx%2Fesload/lists"}