Skip to content
This repository was archived by the owner on Nov 24, 2021. It is now read-only.

Commit 4499857

Browse files
committed
Fix faling test due to webpack upgrade
1 parent 14d325f commit 4499857

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.babelrc

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"presets": [
33
[
4-
"@babel/env",
4+
"@babel/preset-env",
55
{
66
"modules": false,
77
"forceAllTransforms": true,
@@ -14,13 +14,13 @@
1414
]
1515
],
1616
"plugins": [
17-
"@babel/transform-object-assign"
17+
"@babel/plugin-transform-object-assign"
1818
],
1919
"env": {
2020
"test": {
2121
"presets": [
2222
[
23-
"@babel/env",
23+
"@babel/preset-env",
2424
{
2525
"targets": {
2626
"node": "current"

webpack.config.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const webpack = require('webpack');
44
const path = require('path');
55
const CleanWebpackPlugin = require('clean-webpack-plugin');
66
const UnminifiedWebpackPlugin = require('unminified-webpack-plugin');
7-
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
7+
const TerserPlugin = require('terser-webpack-plugin');
88

99
module.exports = {
1010
context: __dirname,
@@ -48,9 +48,9 @@ module.exports = {
4848
},
4949
optimization: {
5050
minimizer: [
51-
new UglifyJsPlugin({
51+
new TerserPlugin({
5252
sourceMap: false,
53-
uglifyOptions: {
53+
terserOptions: {
5454
output: {
5555
beautify: false
5656
},

0 commit comments

Comments
 (0)