{"id":19345541,"url":"https://github.com/future-team/webpack-auto-trycatch-loader","last_synced_at":"2026-05-20T14:34:51.886Z","repository":{"id":57187396,"uuid":"84915782","full_name":"future-team/webpack-auto-trycatch-loader","owner":"future-team","description":"gfs-auto-trycatch for webpack","archived":false,"fork":false,"pushed_at":"2017-08-21T05:46:06.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-08T13:14:40.804Z","etag":null,"topics":["auto-trycatch","webpack"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/future-team.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}},"created_at":"2017-03-14T06:53:33.000Z","updated_at":"2017-04-18T07:45:19.000Z","dependencies_parsed_at":"2022-08-28T13:00:22.294Z","dependency_job_id":null,"html_url":"https://github.com/future-team/webpack-auto-trycatch-loader","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/future-team/webpack-auto-trycatch-loader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/future-team%2Fwebpack-auto-trycatch-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/future-team%2Fwebpack-auto-trycatch-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/future-team%2Fwebpack-auto-trycatch-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/future-team%2Fwebpack-auto-trycatch-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/future-team","download_url":"https://codeload.github.com/future-team/webpack-auto-trycatch-loader/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/future-team%2Fwebpack-auto-trycatch-loader/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264446720,"owners_count":23609633,"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":["auto-trycatch","webpack"],"created_at":"2024-11-10T04:06:56.251Z","updated_at":"2026-05-20T14:34:46.844Z","avatar_url":"https://github.com/future-team.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# webpack-auto-trycatch-loader\nA tool design for auto add `try catch` handler for javascript code when build project.  \n\nDeveloper can hack global error handler to deal errors, such as send it to monitor system.\n\nThis repo is `webpack` loader for `gfs-auto-trycatch`\n\n## Options\n`errorHandleFuncName`: how to deal error, the default value is `GFS_TRY_CATCH_ERROR_HANDLE`,\nyou can use it like this:\n```javascript\nwindow.GFS_TRY_CATCH_ERROR_HANDLE = function(ERROR_VARIABLE_NAME, FILENAME, FUNCTION_NAME, LINE, COLUMN){\n    // do your staff\n    console.error('get log msg', ERROR_VARIABLE_NAME, FILENAME, FUNCTION_NAME, LINE, COLUMN)\n}\n```\nif you want to use defined it, you need to config in webpack loaders:\n```javascript\n{\n    test: /\\.(jsx|es6)$/,\n    loaders: ['auto-trycatch-loader?errorHandleFuncName=defined_error_handle_name', 'babel'],\n    exclude: /node_modules/\n},\n```\nthen defined a global function `window.defined_error_handle_name = function(ERROR_VARIABLE_NAME, FILENAME, FUNCTION_NAME, LINE, COLUMN){/**do your staff**/}`\n\n## Usage\n```bash\n$ npm install auto-trycatch-loader --save-dev\n```\n\n```javascript\n{\n    test: /\\.(jsx|es6)$/,\n    loaders: ['auto-trycatch-loader', 'babel'],\n    exclude: /node_modules/\n}\n```\n`NOTE`: auto-trycatch-loader must before babel loader\n\n## Note\nCurrently only test in  `jsx` and `es6` syntax.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuture-team%2Fwebpack-auto-trycatch-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffuture-team%2Fwebpack-auto-trycatch-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuture-team%2Fwebpack-auto-trycatch-loader/lists"}