{"id":29487783,"url":"https://github.com/deltacircuit/hot-module-accept","last_synced_at":"2026-05-19T02:02:57.111Z","repository":{"id":57266797,"uuid":"78615248","full_name":"DeltaCircuit/hot-module-accept","owner":"DeltaCircuit","description":"A dumb yet useful loader. This will append the module.accept() to the bottom of the entry script of your project. So you don't have to worry about having a module statement in the production build.","archived":false,"fork":false,"pushed_at":"2018-02-07T17:08:47.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-02-03T05:05:35.861Z","etag":null,"topics":["hmr","hmr-enabler","loader","webpack"],"latest_commit_sha":null,"homepage":"","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/DeltaCircuit.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-01-11T07:48:18.000Z","updated_at":"2024-02-03T05:05:35.862Z","dependencies_parsed_at":"2022-08-25T03:41:10.844Z","dependency_job_id":null,"html_url":"https://github.com/DeltaCircuit/hot-module-accept","commit_stats":null,"previous_names":["giridharangm/hot-module-accept","deltacircuit/hot-module-accept"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DeltaCircuit/hot-module-accept","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeltaCircuit%2Fhot-module-accept","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeltaCircuit%2Fhot-module-accept/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeltaCircuit%2Fhot-module-accept/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeltaCircuit%2Fhot-module-accept/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DeltaCircuit","download_url":"https://codeload.github.com/DeltaCircuit/hot-module-accept/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeltaCircuit%2Fhot-module-accept/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265424746,"owners_count":23762883,"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":["hmr","hmr-enabler","loader","webpack"],"created_at":"2025-07-15T09:15:37.204Z","updated_at":"2026-05-19T02:02:57.031Z","avatar_url":"https://github.com/DeltaCircuit.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hot-module-accept  \n\n[![Build Status](https://travis-ci.org/giridharangm/hot-module-accept.svg?branch=master)](https://travis-ci.org/giridharangm/hot-module-accept)\n\nThis is a simple loader which will append the `module.accept()` to the bottom of the entry script of your project. So you don't have to worry about having a `module` statement in the production build.  \n\nWorks best with `webpack-dev-server`\n\n## Getting Started\n1. Install the package  \n   `npm i hot-module-accept`\n2. Modify your `webpack` config file  \n    ```javascript  \n    var config = {  \n        // Also add 'hot-module-accept' to your existing JS/JSX loaders. \n        //For Example:\n        loaders: [\n            {\n                test: /\\.(js|jsx)$/,  \n                loaders: [  \n                    'babel' //Not necessary for this loader\n                    'hot-module-accept'\n                ]  \n            }\n        ]\n    }  \n   ```  \n   The loader will automatically process the `entry` in your webpack config.\n    * If it's a string, then that alone will be your entry file.  \n    * If it's an array of files, then the last item in that array will be your entry file.  \n    * If it's a named entry and the value is a string, then it'll be the entry file.  \n    * If it's an named entry and the value is an array, then the last item in that array will be your entry file.  \n     \n    Optionally, you can add an `entryPoint` field to your webpack config also. The loader will treat it as the entry point. It should be a valid string\n\n* Start hacking!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeltacircuit%2Fhot-module-accept","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeltacircuit%2Fhot-module-accept","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeltacircuit%2Fhot-module-accept/lists"}