"use strict";exports.__esModule=!0;var path=require("path"),HappyPack=require("happypack"),VueLoaderPlugin=require("vue-loader/lib/plugin"),paths=require("../../utils/paths");function default_1(e,s){return{stats:"errors-only",module:{rules:[{test:/\.vue$/,loader:"vue-loader"},{test:/\.(js|mjs|jsx|ts|tsx)$/,exclude:/node_modules/,use:"HappyPack/loader?id=js",resolve:{extensions:[".ts",".tsx",".js",".jsx",".json"]}},{test:/\.css$/,oneOf:[{test:/\.(M|m)odule\.css$/,use:[{loader:"style-loader"},{loader:"css-loader",options:{modules:{localIdentName:"production"===e?"[name]_[local]_[hash:base64:5]":"[path][name]__[local]"}}}]},{use:["style-loader","css-loader"]}]},{test:/\.less$/,use:[{loader:"style-loader"},{loader:"css-loader"},{loader:"less-loader"}]},{test:/\.scss$/,use:[{loader:"style-loader"},{loader:"css-loader"},{loader:"sass-loader"}]}]},resolve:{mainFiles:["index"],extensions:[".js",".jsx"],modules:["node_modules",paths.cliNodeModulesPath]},plugins:[new VueLoaderPlugin,new HappyPack({id:"js",threads:6,use:[{loader:require.resolve("babel-loader"),options:{compact:!1,customize:require.resolve("babel-preset-react-app/webpack-overrides"),presets:[[require.resolve("babel-preset-react-app")]],plugins:[[require.resolve("babel-plugin-named-asset-import"),{loaderMap:{svg:{ReactComponent:"@svgr/webpack?-svgo,+titleProp,+ref![path]"}}}],[require.resolve("react-hot-loader/babel"),{safetyNet:!1}]],cacheDirectory:!0,cacheCompression:!1}}]})]}}exports.default=default_1;