promise-exterminator
Remove Promise polyfill requires from your Javascript source code.
Usage
const promiseExterminator = require('promise-exterminator')
promiseExterminator([opts])
Returns a transform stream that replaces require
statements to Promise polyfills to native Promise. We're assuming the environment the transform source code will run in already has Promise support.
opts.feature
- Boolean - Use only if you are sure what you are doing. Include packages, with features in addition to native Promise capabilities, such as Q and Bluebird. This will only work out if the respective dependents of the packages don't use those additional features.
Browserify?
Sure.
License
MIT