{"id":18435865,"url":"https://github.com/darekf77/isomorphic-region-loader","last_synced_at":"2026-04-30T07:44:20.489Z","repository":{"id":47347872,"uuid":"115828713","full_name":"darekf77/isomorphic-region-loader","owner":"darekf77","description":"Strip off code inside #regions from your bundle and be happy with your isomorphic javascript/typescipt apps.","archived":false,"fork":false,"pushed_at":"2026-04-05T23:52:47.000Z","size":6323,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-04-06T01:29:22.084Z","etag":null,"topics":["isomorphic","isomorphic-javascript","javascript","typescript","webpack-loader"],"latest_commit_sha":null,"homepage":null,"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/darekf77.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2017-12-30T22:34:35.000Z","updated_at":"2026-04-05T23:52:52.000Z","dependencies_parsed_at":"2023-02-10T15:01:42.778Z","dependency_job_id":"70c8d7c7-c4f0-4c9b-91d2-1314b86babfb","html_url":"https://github.com/darekf77/isomorphic-region-loader","commit_stats":null,"previous_names":[],"tags_count":172,"template":false,"template_full_name":null,"purl":"pkg:github/darekf77/isomorphic-region-loader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darekf77%2Fisomorphic-region-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darekf77%2Fisomorphic-region-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darekf77%2Fisomorphic-region-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darekf77%2Fisomorphic-region-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/darekf77","download_url":"https://codeload.github.com/darekf77/isomorphic-region-loader/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darekf77%2Fisomorphic-region-loader/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32458237,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"online","status_checked_at":"2026-04-30T02:00:05.929Z","response_time":57,"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":["isomorphic","isomorphic-javascript","javascript","typescript","webpack-loader"],"created_at":"2024-11-06T06:09:31.996Z","updated_at":"2026-04-30T07:44:20.474Z","avatar_url":"https://github.com/darekf77.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\r\n  \u003ch1\u003eIsomorphic #region Loader\u003c/h1\u003e\r\n  \u003cp\u003eA loader for webpack that lets you strip #regions code from bundle.\u003c/p\u003e\r\n\u003c/div\u003e\r\n\r\n\u003ch2 align=\"center\"\u003eInstall\u003c/h2\u003e\r\n\r\n```bash\r\nnpm install --save-dev isomorphic-region-loader\r\n```\r\n\r\n\u003ch2 align=\"center\"\u003eUsage\u003c/h2\u003e\r\n\r\nThis load is very helpfull if you wanna write isomorphic applications \r\nin javascript or typescript. Just specify **region** and this loader will\r\ncut it from bundle. Example:\r\n\r\n```ts\r\nimport * as jquery from 'jquery'\r\n//#region nodejs\r\nimport * as fs from 'fs'\r\n//#endregion\r\n\r\nclass ExampleIsomorphicClass {\r\n  ...\r\n}\r\n\r\n```\r\n\r\nWith webpack configuraiton below:\r\n\r\n```js\r\nmodule.exports = {\r\n  module: {\r\n    rules: [\r\n      {\r\n        test: /\\.ts$/,\r\n        use: 'isomorphic-region-loader',\r\n        options: { platform: 'browser' }  // 'borwser' default platform, also there is 'nodejs'\r\n      }\r\n    ]\r\n  }\r\n}\r\n```\r\nYou will get:\r\n```ts\r\nimport * as jquery from 'jquery'\r\n\r\nclass ExampleIsomorphicClass {\r\n  ...\r\n}\r\n\r\n```\r\nAs result, code inside **#region nodejs** has been stripped.\r\nAlso you can do similar things to your nodejs code and strip off\r\nbrowser things.\r\n\r\n### Inline\r\n\r\n**In your application**\r\n```js\r\nimport {  ExampleIsomorphicClass } from '!isomorphic-region-loader!./isomorphic-class.ts';\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarekf77%2Fisomorphic-region-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdarekf77%2Fisomorphic-region-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarekf77%2Fisomorphic-region-loader/lists"}