@ -7,6 +7,7 @@ const PostCSSPresetEnv = require('postcss-preset-env');
const PostCSSSafeParser = require ( 'postcss-safe-parser' ) ;
const PostCSSSafeParser = require ( 'postcss-safe-parser' ) ;
const TerserPlugin = require ( 'terser-webpack-plugin' ) ;
const TerserPlugin = require ( 'terser-webpack-plugin' ) ;
const VueLoaderPlugin = require ( 'vue-loader/lib/plugin' ) ;
const VueLoaderPlugin = require ( 'vue-loader/lib/plugin' ) ;
const { statSync } = require ( 'fs' ) ;
const { resolve , parse } = require ( 'path' ) ;
const { resolve , parse } = require ( 'path' ) ;
const { SourceMapDevToolPlugin } = require ( 'webpack' ) ;
const { SourceMapDevToolPlugin } = require ( 'webpack' ) ;
@ -84,6 +85,13 @@ module.exports = {
{
{
loader : 'babel-loader' ,
loader : 'babel-loader' ,
options : {
options : {
cacheDirectory : true ,
cacheCompression : false ,
cacheIdentifier : [
resolve ( _ _dirname , 'package.json' ) ,
resolve ( _ _dirname , 'package-lock.json' ) ,
resolve ( _ _dirname , 'webpack.config.js' ) ,
] . map ( ( path ) => statSync ( path ) . mtime . getTime ( ) ) . join ( ':' ) ,
presets : [
presets : [
[
[
'@babel/preset-env' ,
'@babel/preset-env' ,