I have often heard that Webpack 2 (unlike Webpack 1.x ), natively understands ES6 . What does this mean and what follows from this?

Naturally, after receiving answers to this question, the next question will arise about how to change the settings of Babel. At the moment I am using a webpack 2x with the following settings:

package.json

  // ... "babel": { "presets": [ "es2015" ] }, "devDependencies": { "babel-core": "6.22.0", "babel-loader": "6.2.10", "babel-preset-es2015": "6.22.0", // ... "webpack": "^2.4.1" } 

webpack.config.js

 // ... module: { rules: [ { test: [ /\.jsx?$/ ], exclude: /node_modules/, use: [ 'babel-loader' ] } ] }, // ... 

Which of the above settings is no longer necessary thanks to the so-called "native understanding" of the ES6 Webpack tool?

0