0.1.1 • Published 4 years ago
@rock-kit/ui-polyfill-loader v0.1.1
category: packages
babel-polyfill-loader
A webpack loader that generates a customized polyfill
Installation
yarn add --dev @rock-kit/ui-polyfill-loader
Usage
Add a .polyfillrc (in JSON or YAML format) or a polyfill.config.js file to your project:
{
[
"es6.object.assign",
"es6.array.find",
"es6.array.find-index",
"es6.array.from",
"es6.string.starts-with",
"es7.array.includes",
"es6.symbol"
]
}
See the core-js README for more options.
Add an entry to your webpack config:
entry: {
polyfill: '@rock-kit/ui-polyfill-loader!'
}
Or require the loader in your project:
require('@rock-kit/ui-polyfill-loader!')