DllAvailabilityTracker
DllAvailabilityTracker is a Webpack
plugin that adds code to your webpack bundle that will catch errors related to unavailable DLL dependencies and then track them to Rollbar.
Table of Contents
- Prerequisites
- Setup
- Options
Prerequisites
- Options
In order to use DllAvailabilityTracker you need the following Prerequisites:
webpack
version5
or highernode.js
version8.12.0
or highernpm
version6.4.1
or higher
Setup
In order to start using DllAvailabilityTracker you can import the plugin into your webpack configuration file like so:
const DllAvailabilityTracker = require('@studyportals/dll-availability-tracker');
After that you can instantiate and add the plugin to your build like so:
new DllAvailabilityTracker({
dependencies: [
'modal',
'multiselect',
'data_storage'
]
})
Options
The following options can be passed to the DllAvailabilityTracker
instance:
Option | Description | Required |
---|---|---|
dependencies string[] |
The names of the Dll dependencies that need to be tracked. | no (default: [] ) |