{"library":"webpack-require-http","type":"library","category":null,"description":"webpack-require-http is a webpack plugin designed to enable the direct `require()` of HTTP and HTTPS resources within JavaScript code. This functionality is achieved by configuring it within webpack's `externals` option, where it transforms remote URL imports into asynchronous operations that fetch and inject the external scripts or stylesheets into the browser environment. The `require()` call then returns a `Promise` which resolves upon successful loading of the resource. The package, currently at version 0.4.3, was last updated in 2017, indicating it is no longer actively maintained. A key differentiator is its ability to accept custom rules (using regular expressions or functions) to rewrite or re-map requested URLs, offering flexibility in handling external resource paths. While it addressed a specific need for loading remote assets directly via `require` in earlier webpack versions, modern webpack (v5+) provides more robust and integrated solutions for handling external dependencies and remote modules, making this package largely superseded.","language":"javascript","status":"abandoned","version":"0.4.3","tags":["javascript","webpack","http","load","require","plugin","loader"],"last_verified":"Wed May 27","install":[{"cmd":"npm install webpack-require-http","imports":["const webpackRequireHttp = require('webpack-require-http');","const customHttpResolver = require('webpack-require-http').custom;"]},{"cmd":"yarn add webpack-require-http","imports":[]},{"cmd":"pnpm add webpack-require-http","imports":[]}],"homepage":null,"github":"https://github.com/darkty2009/webpack-require-http","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/webpack-require-http","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/webpack-require-http/compatibility"}}