Why do I configure babel-loader, on webpackp but report an error when I use the extension operator? Or how can the extension operator be rewritten to look like es5?

this is the configuration in webpack:

{

            test: /\.jsx$/,
            exclude: /(node_modules)/,
            use: {
                loader: "babel-loader",
                options: {
                    presets: ["env", "react"]
                }
            }
        },

The

extension operator can be replaced with apply .

should work without being compiled by babel , because modern browsers already support ES6.

is this a mistake reported by the editor, that is, grammar checking?


configure .babelrc

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b2bd60-40053.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b2bd60-40053.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?