{"id":15599729,"url":"https://github.com/hypercubed/jspm-union-poc","last_synced_at":"2025-03-29T12:16:10.307Z","repository":{"id":66193299,"uuid":"56678631","full_name":"Hypercubed/jspm-union-poc","owner":"Hypercubed","description":null,"archived":false,"fork":false,"pushed_at":"2016-04-25T13:38:32.000Z","size":49,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-04T13:19:49.665Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Hypercubed.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":"2016-04-20T10:40:41.000Z","updated_at":"2016-04-20T10:43:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"31914053-f259-4fe1-9e35-bdffeb640537","html_url":"https://github.com/Hypercubed/jspm-union-poc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hypercubed%2Fjspm-union-poc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hypercubed%2Fjspm-union-poc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hypercubed%2Fjspm-union-poc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hypercubed%2Fjspm-union-poc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hypercubed","download_url":"https://codeload.github.com/Hypercubed/jspm-union-poc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246180922,"owners_count":20736460,"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":[],"created_at":"2024-10-03T02:00:45.290Z","updated_at":"2025-03-29T12:16:10.286Z","avatar_url":"https://github.com/Hypercubed.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SystemJS Builder Base Url Union - Proof of Concept\n\n## Problem\n\nDuring development using a development server (for example BrowserSync) it is convenient to serve files from multiple paths (see [server.js](server.js)).  With this configuration files in `./appOverrideB` override `./appOverride` which override `./app`, etc.\n\nSystemJS in the browser has no trouble loading modules this way (in fact it is not even aware).  However, when building, using JSPM/SystemJS builder, this obviously does not work.  SystemJS is building from the filesystem not the server and SystemJS builder can only have one baseUrl.\n\n## Proof of Concept\n\nBy adding a fetch override to the SystemJS builder I am able to return the first resource that matches the resource address along a series of paths (see [build.js](build.js)).  It is a dirty hack at this point.  This is a feature I'd really like to see in a future version of SystemJS builder.\n\n## Related\n\n* [rollup-plugin-includepaths](https://github.com/dot-build/rollup-plugin-includepaths)\n* [webpack - resolve fallback](https://github.com/webpack/docs/wiki/configuration#resolvefallback)\n* [BrowserSync multiple base directories](https://www.browsersync.io/docs/options/#option-server)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhypercubed%2Fjspm-union-poc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhypercubed%2Fjspm-union-poc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhypercubed%2Fjspm-union-poc/lists"}