{"id":15704957,"url":"https://github.com/aduth/resolve-entry-modules-webpack-plugin","last_synced_at":"2025-05-12T17:57:10.271Z","repository":{"id":66273621,"uuid":"87855276","full_name":"aduth/resolve-entry-modules-webpack-plugin","owner":"aduth","description":"Webpack plugin for considering each entry's enclosing directory as a resolve root","archived":false,"fork":false,"pushed_at":"2018-05-30T00:40:53.000Z","size":103,"stargazers_count":6,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-26T13:52:52.848Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aduth.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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":"2017-04-10T20:36:38.000Z","updated_at":"2019-12-30T12:34:37.000Z","dependencies_parsed_at":"2023-06-14T08:45:43.499Z","dependency_job_id":null,"html_url":"https://github.com/aduth/resolve-entry-modules-webpack-plugin","commit_stats":{"total_commits":14,"total_committers":2,"mean_commits":7.0,"dds":0.0714285714285714,"last_synced_commit":"548ea9935a4a25589748955f5e8ca2eb0fbcbda0"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aduth%2Fresolve-entry-modules-webpack-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aduth%2Fresolve-entry-modules-webpack-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aduth%2Fresolve-entry-modules-webpack-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aduth%2Fresolve-entry-modules-webpack-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aduth","download_url":"https://codeload.github.com/aduth/resolve-entry-modules-webpack-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243165525,"owners_count":20246721,"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-03T20:14:24.535Z","updated_at":"2025-03-12T05:31:04.023Z","avatar_url":"https://github.com/aduth.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Resolve Entry Modules Webpack Plugin\n\nWebpack plugin for considering each entry's enclosing directory as a resolve root for all imports within occurring in the dependency tree of that entry. It is effectively the same as defining a `resolve.modules` for each directory of your `entry` while ensuring that distinct entries cannot import from the others.\n\n## Usage\n\nImagine the following project structure:\n\n```text\nproject/\n├── entry-one/\n│   ├── index.js\n│   └── a.js\n└── entry-two/\n    ├── index.js\n    └── a.js\n```\n\nFor each entry point, we'd like to import `a.js` directly (without relative paths):\n\n```js\nvar a = require( 'a' );\n```\n\nTo enable this, we can simply include `ResolveEntryModulesPlugin` as a plugin in our Webpack configuration:\n\n```js\n// webpack.config.js\nconst ResolveEntryModulesPlugin = require( 'resolve-entry-modules-webpack-plugin' );\n\nmodule.exports = {\n\tentry: {\n\t\tone: './entry-one/index.js',\n\t\ttwo: './entry-two/index.js'\n\t},\n\tplugins: [\n\t\tnew ResolveEntryModulesPlugin()\n\t]\n};\n```\n\n## License\n\nCopyright 2018 Andrew Duthie\n\nReleased under the [MIT License](./LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faduth%2Fresolve-entry-modules-webpack-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faduth%2Fresolve-entry-modules-webpack-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faduth%2Fresolve-entry-modules-webpack-plugin/lists"}