`module.loaders` is now `module.rules`
See original GitHub issueHi guys,
I keep getting [1] "loaders" is required
and [2] "rules" is not allowed
in my webpack 2 config.
Can I use webpack-validator with latest webpack 2 release ?
Issue Analytics
- State:
- Created 7 years ago
- Reactions:7
- Comments:5
Top Results From Across the Web
Module | webpack - JS.ORG
An array of Rules which are matched to requests when modules are created. These rules can modify how the module is created. They...
Read more >Difference between module.loaders and module.rules in ...
I am looking to use a typescript loader with Babel, I see this: https://github.com/TypeStrong/ts-loader module.exports = { module: { rules: ...
Read more >Loader Definitions - SurviveJS
A loader definition consists of conditions based on which to match and actions that should be performed when a match happens.
Read more >doc on custom webpack - module.rules should be used ...
rules instead of module.loaders. Should I update the docs to point this out? Also, would it be nice to add some warnings (or...
Read more >webpack and the power of loaders - Codesmith
There are currently two competing standards for writing JavaScript modules - CommonJS, which is a syntax used in Node.js on the server-side, ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The changes will need to happen in here (both tests and source). We definitely want to support Webpack 2 and 1 I think. If there’s a way to detect which version the user is using that’d be awesome. It’s likely you’ll have to get a basic understanding of Joi, the validation library we use.
Good luck! And thank you!
@kentcdodds I love to contribute, but I haven’t worked with your codebase before and don’t know how
webpack-validator
actually works. If time is not an issue, I will start working on this.