https://github.com/hiroppy/downpile-node-modules-webpack-loader
I really really dislike IEðŸ˜
https://github.com/hiroppy/downpile-node-modules-webpack-loader
Last synced: 10 months ago
JSON representation
I really really dislike IEðŸ˜
- Host: GitHub
- URL: https://github.com/hiroppy/downpile-node-modules-webpack-loader
- Owner: hiroppy
- License: mit
- Created: 2020-05-23T11:49:38.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-27T05:02:44.000Z (almost 6 years ago)
- Last Synced: 2025-04-05T14:11:06.631Z (about 1 year ago)
- Language: TypeScript
- Size: 35.2 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# downpile-node-modules-webpack-loader
[](https://www.npmjs.com/package/downpile-node-modules-webpack-loader)
[](https://codecov.io/gh/hiroppy/downpile-node-modules-webpack-loader)
**This plugin is experimental.**
We should avoid considering node_modules code anytime but some node_modules are over es2015 so we need to downpile these code if we support IE11. This plugin supports only downpile using Babel, and cache for performance.
## Install
```sh
$ npm i downpile-node-modules-webpack-loader -D
```
## Usage
```javascript
// webpack.config.js
module.exports = {
module: {
rules: [
{
test: /\.js$/,
enforce: 'pre',
use: {
loader: 'downpile-node-modules-webpack-loader',
options: {
ignoredLibraries: [],
polyfill: true,
ecmaVersion: 5,
},
},
include: /node_modules/,
},
],
},
};
```
## Development
```sh
$ npm i
$ make setup
$ npm test
```