{"_id":"@putout/plugin-webpack","_rev":"4155932","name":"@putout/plugin-webpack","description":"🐊Putout plugin helps with migration to latest webpack","dist-tags":{"latest":"4.0.0"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"time":{"modified":"2026-03-01T20:26:38.000Z","created":"2020-10-17T13:31:52.426Z","4.0.0":"2025-04-18T12:55:30.355Z","3.0.0":"2023-06-12T08:28:41.490Z","2.0.0":"2023-01-29T18:06:48.307Z","1.4.0":"2021-05-15T13:48:25.859Z","1.3.1":"2021-05-07T12:41:19.165Z","1.3.0":"2021-05-07T12:40:14.811Z","1.2.0":"2020-11-03T07:53:37.744Z","1.1.0":"2020-10-18T10:39:34.487Z","1.0.0":"2020-10-17T13:31:52.426Z"},"users":{},"author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"repository":{"type":"git","url":"git+https://github.com/coderaiser/putout.git"},"versions":{"4.0.0":{"name":"@putout/plugin-webpack","version":"4.0.0","type":"module","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin helps with migration to latest webpack","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-webpack#readme","main":"lib/index.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git+https://github.com/coderaiser/putout.git"},"scripts":{"test":"madrun test","watch:test":"madrun watch:test","lint":"madrun lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report"},"dependencies":{},"keywords":["putout","putout-plugin","plugin","webpack"],"devDependencies":{"@putout/eslint-flat":"^3.0.0","@putout/test":"^13.0.0","c8":"^10.0.0","eslint":"^9.0.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^26.0.0","madrun":"^11.0.0","nodemon":"^3.0.1"},"peerDependencies":{"putout":">=40"},"license":"MIT","engines":{"node":">=20"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-webpack@4.0.0","gitHead":"e0340cee82fc9cef631e53520bd2e294c2473a73","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"22.14.0","_npmVersion":"11.1.0","dist":{"shasum":"d68af3965c646ae642d6e4c697431b4b312e0775","size":3942,"noattachment":false,"key":"/@putout/plugin-webpack/-/@putout/plugin-webpack-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-webpack/download/@putout/plugin-webpack-4.0.0.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/plugin-webpack_4.0.0_1744980930138_0.6161170056278473"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-04-18T12:55:30.355Z","publish_time":1744980930355,"_source_registry_name":"default","_cnpm_publish_time":1744980930355},"3.0.0":{"name":"@putout/plugin-webpack","version":"3.0.0","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin helps with migration to latest webpack","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-webpack#readme","main":"lib/index.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"test":"madrun test","watch:test":"madrun watch:test","lint":"madrun lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report"},"dependencies":{},"keywords":["putout","putout-plugin","plugin","webpack"],"devDependencies":{"@putout/test":"^6.0.0","c8":"^7.5.0","eslint":"^8.0.1","eslint-plugin-n":"^16.0.0","eslint-plugin-putout":"^17.0.0","lerna":"^6.0.1","madrun":"^9.0.0","nodemon":"^2.0.1"},"peerDependencies":{"putout":">=29"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"9a7cca4bab6f9a51747ee5193d11de620e6039bd","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-webpack@3.0.0","_nodeVersion":"20.2.0","_npmVersion":"9.6.6","dist":{"shasum":"1fa7ceaab0b5520b410fdefe6ad348f1a87f74e6","size":3910,"noattachment":false,"key":"/@putout/plugin-webpack/-/@putout/plugin-webpack-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-webpack/download/@putout/plugin-webpack-3.0.0.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-webpack_3.0.0_1686558521333_0.4765863696613759"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-06-12T08:28:41.490Z","publish_time":1686558521490,"_source_registry_name":"default","_cnpm_publish_time":1686558521490},"2.0.0":{"name":"@putout/plugin-webpack","version":"2.0.0","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin helps with migration to latest webpack","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-webpack#readme","main":"lib/index.js","commitType":"colon","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"test":"madrun test","watch:test":"madrun watch:test","lint":"madrun lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report"},"dependencies":{},"keywords":["putout","putout-plugin","plugin","webpack"],"devDependencies":{"@putout/test":"^5.0.0","c8":"^7.5.0","eslint":"^8.0.1","eslint-plugin-n":"^15.2.4","eslint-plugin-putout":"^16.0.0","lerna":"^6.0.1","madrun":"^9.0.0","nodemon":"^2.0.1"},"peerDependencies":{"putout":">=28"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"de2e1e05756002966954964c33fc37014d13f1e4","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-webpack@2.0.0","_nodeVersion":"18.13.0","_npmVersion":"9.1.3","dist":{"shasum":"340bed5ed7755f4dd0dd54c1e5bf29decc445183","size":3914,"noattachment":false,"key":"/@putout/plugin-webpack/-/@putout/plugin-webpack-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-webpack/download/@putout/plugin-webpack-2.0.0.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-webpack_2.0.0_1675015608126_0.4483984793541387"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-01-29T18:06:48.307Z","publish_time":1675015608307,"_cnpm_publish_time":1675015608307},"1.4.0":{"name":"@putout/plugin-webpack","version":"1.4.0","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"putout plugin helps with migration to latest webpack","homepage":"http://github.com/coderaiser/putout","main":"lib/index.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"test":"madrun test","watch:test":"madrun watch:test","lint":"madrun lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report"},"dependencies":{},"keywords":["putout","putout-plugin","plugin","webpack"],"devDependencies":{"@putout/test":"^3.0.0","c8":"^7.5.0","eslint":"^7.6.0","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^7.0.0","lerna":"^4.0.0","madrun":"^8.0.1","nodemon":"^2.0.1"},"peerDependencies":{"putout":">=10"},"license":"MIT","engines":{"node":">=12"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-webpack@1.4.0","_nodeVersion":"14.15.4","_npmVersion":"6.14.10","dist":{"shasum":"eb7c3ac823a5018b0d1bb8323ff6ee38d100f190","size":3206,"noattachment":false,"key":"/@putout/plugin-webpack/-/@putout/plugin-webpack-1.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-webpack/download/@putout/plugin-webpack-1.4.0.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-webpack_1.4.0_1621086505695_0.7710364579164983"},"_hasShrinkwrap":false,"publish_time":1621086505859,"_cnpm_publish_time":1621086505859,"_cnpmcore_publish_time":"2021-12-16T21:06:13.898Z"},"1.3.1":{"name":"@putout/plugin-webpack","version":"1.3.1","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"putout plugin helps with migration to latest webpack","homepage":"http://github.com/coderaiser/putout","main":"lib/index.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"test":"madrun test","watch:test":"madrun watch:test","lint":"madrun lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report"},"dependencies":{},"keywords":["putout","putout-plugin","plugin","webpack"],"devDependencies":{"@putout/test":"^3.0.0","c8":"^7.5.0","eslint":"^7.6.0","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^7.0.0","lerna":"^4.0.0","madrun":"^8.0.1","nodemon":"^2.0.1"},"peerDependencies":{"putout":">=10"},"license":"MIT","engines":{"node":">=12"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-webpack@1.3.1","_nodeVersion":"16.0.0","_npmVersion":"7.10.0","dist":{"shasum":"ef5621bd362ad61b21e115e06bdd694fc4e187a9","size":3206,"noattachment":false,"key":"/@putout/plugin-webpack/-/@putout/plugin-webpack-1.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-webpack/download/@putout/plugin-webpack-1.3.1.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-webpack_1.3.1_1620391279016_0.028403328824525342"},"_hasShrinkwrap":false,"publish_time":1620391279165,"_cnpm_publish_time":1620391279165,"_cnpmcore_publish_time":"2021-12-16T21:06:14.082Z"},"1.3.0":{"name":"@putout/plugin-webpack","version":"1.3.0","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"putout plugin helps with migration to latest webpack","homepage":"http://github.com/coderaiser/putout","main":"lib/index.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"test":"madrun test","watch:test":"madrun watch:test","lint":"madrun lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report"},"dependencies":{},"keywords":["putout","putout-plugin","plugin","webpack"],"devDependencies":{"@putout/test":"^3.0.0","c8":"^7.5.0","eslint":"^7.6.0","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^7.0.0","lerna":"^4.0.0","madrun":"^8.0.1","nodemon":"^2.0.1"},"peerDependencies":{"putout":">=10"},"license":"MIT","engines":{"node":">=12"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-webpack@1.3.0","_nodeVersion":"16.0.0","_npmVersion":"7.10.0","dist":{"shasum":"bb7728be1a7d78773ea966720c5fa664279fb8af","size":3362,"noattachment":false,"key":"/@putout/plugin-webpack/-/@putout/plugin-webpack-1.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-webpack/download/@putout/plugin-webpack-1.3.0.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-webpack_1.3.0_1620391214613_0.39870451128002604"},"_hasShrinkwrap":false,"publish_time":1620391214811,"_cnpm_publish_time":1620391214811,"_cnpmcore_publish_time":"2021-12-16T21:06:14.283Z"},"1.2.0":{"name":"@putout/plugin-webpack","version":"1.2.0","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"putout plugin helps with migration to latest webpack","homepage":"http://github.com/coderaiser/putout","main":"lib/index.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"test":"madrun test","watch:test":"madrun watch:test","lint":"madrun lint","fix:lint":"madrun fix:lint","coverage":"madrun coverage"},"nyc":{"exclude":["*/**/*.spec.js","test"]},"dependencies":{},"keywords":["putout","putout-plugin","plugin","webpack"],"devDependencies":{"@putout/test":"^2.0.0","coveralls":"^3.0.0","eslint":"^7.6.0","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^6.0.0","lerna":"^3.8.5","madrun":"^7.0.0","nodemon":"^2.0.1","nyc":"^15.0.1"},"peerDependencies":{"putout":">=10"},"license":"MIT","engines":{"node":">=12"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-webpack@1.2.0","_nodeVersion":"15.0.1","_npmVersion":"6.14.7","dist":{"shasum":"7569f224f998383cfa8e509e80a6128ebbebe115","size":2807,"noattachment":false,"key":"/@putout/plugin-webpack/-/@putout/plugin-webpack-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-webpack/download/@putout/plugin-webpack-1.2.0.tgz"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-webpack_1.2.0_1604390017613_0.28893724434321855"},"_hasShrinkwrap":false,"publish_time":1604390017744,"_cnpm_publish_time":1604390017744,"_cnpmcore_publish_time":"2021-12-16T21:06:14.498Z"},"1.1.0":{"name":"@putout/plugin-webpack","version":"1.1.0","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"putout plugin helps with migration to latest webpack","homepage":"http://github.com/coderaiser/putout","main":"lib/index.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"test":"madrun test","watch:test":"madrun watch:test","lint":"madrun lint","fix:lint":"madrun fix:lint","coverage":"madrun coverage"},"nyc":{"exclude":["*/**/*.spec.js","test"]},"dependencies":{},"keywords":["putout","putout-plugin","plugin","webpack"],"devDependencies":{"@putout/test":"^2.0.0","coveralls":"^3.0.0","eslint":"^7.6.0","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^5.0.1","lerna":"^3.8.5","madrun":"^7.0.0","nodemon":"^2.0.1","nyc":"^15.0.1"},"peerDependencies":{"putout":">=10"},"license":"MIT","engines":{"node":">=12"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-webpack@1.1.0","_nodeVersion":"14.14.0","_npmVersion":"6.14.7","dist":{"shasum":"b94bba7d2aa29aa560c3c52c3890a65a9e57b523","size":2733,"noattachment":false,"key":"/@putout/plugin-webpack/-/@putout/plugin-webpack-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-webpack/download/@putout/plugin-webpack-1.1.0.tgz"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-webpack_1.1.0_1603017574322_0.7345225440111629"},"_hasShrinkwrap":false,"publish_time":1603017574487,"_cnpm_publish_time":1603017574487,"_cnpmcore_publish_time":"2021-12-16T21:06:14.717Z"},"1.0.0":{"name":"@putout/plugin-webpack","version":"1.0.0","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"putout plugin helps with migration to latest webpack","homepage":"http://github.com/coderaiser/putout","main":"lib/index.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"test":"madrun test","watch:test":"madrun watch:test","lint":"madrun lint","fix:lint":"madrun fix:lint","coverage":"madrun coverage"},"nyc":{"exclude":["*/**/*.spec.js","test"]},"dependencies":{},"keywords":["putout","putout-plugin","plugin","webpack"],"devDependencies":{"@putout/test":"^2.0.0","coveralls":"^3.0.0","eslint":"^7.6.0","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^5.0.1","lerna":"^3.8.5","madrun":"^7.0.0","nodemon":"^2.0.1","nyc":"^15.0.1"},"peerDependencies":{"putout":">=10"},"license":"MIT","engines":{"node":">=12"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-webpack@1.0.0","_nodeVersion":"14.14.0","_npmVersion":"6.14.7","dist":{"shasum":"8679ad41f32ca28f1ee184b6df3c620a228cd8a3","size":2259,"noattachment":false,"key":"/@putout/plugin-webpack/-/@putout/plugin-webpack-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-webpack/download/@putout/plugin-webpack-1.0.0.tgz"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-webpack_1.0.0_1602941512222_0.5832768840636682"},"_hasShrinkwrap":false,"publish_time":1602941512426,"_cnpm_publish_time":1602941512426,"_cnpmcore_publish_time":"2021-12-16T21:06:14.890Z"}},"readme":"# @putout/plugin-webpack [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-webpack.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-webpack\"npm\"\n\n> At its core, **webpack** is a static module bundler for modern **JavaScript** applications. When **webpack** processes your application, it internally builds a dependency graph from one or more entry points and then combines every module your project needs into one or more **bundles**, which are static assets to serve your content from.\n>\n> (c) [webpack.js.org](https://webpack.js.org/)\n\n????[**Putout**](https://github.com/coderaiser/putout) plugin helps to migrate to latest **webpack** version.\n\n## Install\n\n```\nnpm i @putout/plugin-webpack -D\n```\n\n## Rules\n\n```json\n{\n    \"rules\": {\n        \"webpack/apply-externals\": \"on\",\n        \"webpack/convert-loader-to-use\": \"on\",\n        \"webpack/convert-query-loader-to-use\": \"on\",\n        \"webpack/convert-node-to-resolve-fallback\": \"on\"\n    }\n}\n```\n\n## convert-loader-to-use\n\nFixes webpack comilation error: `Compiling RuleSet failed: Exclamation mark separated loader lists has been removed in favor of the 'use' property with arrays (at ruleSet[1].rules[1].loader: style-loader!css-loader!clean-css-loader)`\n\n### ❌ Example of incorrect code\n\n```js\nconst rules = [{\n    test: /\\.css$/,\n    loader: 'style-loader!css-loader!clean-css-loader',\n}];\n```\n\n### ✅ Example of correct code\n\n```js\nconst rules = [{\n    test: /\\.css$/,\n    use: [\n        'style-loader',\n        'css-loader',\n        'clean-css-loader',\n    ],\n}];\n```\n\n## convert-query-loader-to-use\n\nFixes webpack comilation error: `Compiling RuleSet failed: Query arguments on 'loader' has been removed in favor of the 'options' property`.\n\n### ❌ Example of incorrect code\n\n```js\nconst rules = [{\n    test: /\\.(png|gif|svg|woff|woff2|eot|ttf)$/,\n    loader: 'url-loader?limit=50000',\n}];\n```\n\n### ✅ Example of correct code\n\n```js\nconst rules = [{\n    test: /\\.(png|gif|svg|woff|woff2|eot|ttf)$/,\n    use: [{\n        loader: 'url-loader',\n        options: {\n            limit: 50_000,\n        },\n    }],\n}];\n```\n\n## convert-node-to-resolve-fallback\n\nFixes webpack comilation error:\n\n```\nModule not found: Error: Can't resolve 'path'`\n\nBREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.\nThis is no longer the case. Verify if you need this module and configure a polyfill for it.\n```\n\n### ❌ Example of incorrect code\n\n```js\nmodule.exports = {\n    node: {\n        path: 'empty',\n    },\n};\n```\n\n### ✅ Example of correct code\n\n```js\nmodule.exports = {\n    resolve: {\n        fallback: {\n            path: false,\n        },\n    },\n};\n```\n\n## convert-externals\n\nFixes webpack comilation error:\n\n```\n[DEP_WEBPACK_EXTERNALS_FUNCTION_PARAMETERS] DeprecationWarning: The externals-function should be defined like ({context, request}, cb) => { ... }\n```\n\nCheckout in ????[**Putout Editor**](https://putout.cloudcmd.io/#/gist/23655fb64dcffb452f4b3a9f25ef3efd/6d0bc56cb4f0a439e26e6698694399918dd51a13).\n\n### ❌ Example of incorrect code\n\n```js\nmodule.exports = {\n    externals: [externals],\n};\n\nfunction externals(context, request, callback) {}\n```\n\n### ✅ Example of correct code\n\n```js\nmodule.exports = {\n    externals: [externals],\n};\n\nfunction externals({context, request}, callback) {}\n```\n\n## License\n\nMIT\n","_attachments":{},"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-webpack#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"license":"MIT"}