
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
retry-ensure-webpack-plugin
Advanced tools
Webpack plugin for retrying async chunk loading.
Retries internal __webpack__require__.e /* nsure */
function call on promise rejections.
Compatible with Webpack 4 and 5.
const RetryEnsureWebpackPlugin = require('retry-ensure-webpack-plugin').RetryEnsureWebpackPlugin;
/* ... */
plugins.push(new RetryEnsureWebpackPlugin(options));
An optional parameter, object with properties.
max
(number
)The max amount of retries. After that, Promise rejection is not handled by this plugin.
Note: This option is "max retries", not "max requests". In the worst case there would be 1 + max
requests total.
If max
equals 0
, this plugin is turned off entirely.
Infinity
is a valid value, if you want to retry until the end of time.
Default: 3
.
delay
(number | string
)number
: Amount of milliseconds between retries, constant value.
string
: Expression that returns a numeric value. A variable retriedTimes
can be used for exponential (or whatever you like) backoff. retriedTimes
equals 0
at the first retry attempt.
Note that this expression is not validated in any way. It's just plugged into your generated code.
Default: 'retriedTimes * retriedTimes * 1000'
FAQs
Webpack plugin for retrying async chunk loading
The npm package retry-ensure-webpack-plugin receives a total of 900 weekly downloads. As such, retry-ensure-webpack-plugin popularity was classified as not popular.
We found that retry-ensure-webpack-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.