iview / iview-cli

Create an iView project in visual way
https://iviewui.com/cli
MIT License
727 stars 149 forks source link

babel-loader should exclude node_modules on testing iview*.js #36

Open 0xffff00 opened 6 years ago

0xffff00 commented 6 years ago

webpack.base.config.js中与iview*.js对应的babel-loader规则也许应该加上: exclude: /node_modules/

            {
                test: /iview\/.*?js$/,
                loader: 'babel-loader' 
                exclude: /node_modules/  <------少了这一行,this line should be added
            },
            {
                test: /\.js$/,
                loader: 'babel-loader',
                exclude: /node_modules/
            },

不加的话,执行webpack时,windows下没问题,在linux上会报[BABEL] Note: The code generator has deoptimised the styling of "..." as it exceeds the max of "500KB". 最终编译出来的静态文件会报错 具体请参见: