[med-svn] [Git][med-team/q2-taxa][master] 2 commits: Switch to terser-webpack-plugin (uglifyjs-webpack-plugin is deprecated)

Andreas Tille (@tille) gitlab at salsa.debian.org
Tue May 24 12:47:02 BST 2022



Andreas Tille pushed to branch master at Debian Med / q2-taxa


Commits:
440f100d by Pirate Praveen at 2022-05-24T16:15:55+05:30
Switch to terser-webpack-plugin (uglifyjs-webpack-plugin is deprecated)

- - - - -
0aae441a by Andreas Tille at 2022-05-24T11:46:56+00:00
Merge branch 'webpack5' into 'master'

Switch to terser-webpack-plugin (uglifyjs-webpack-plugin is deprecated)

See merge request med-team/q2-taxa!1
- - - - -


3 changed files:

- debian/control
- debian/patches/0001-make-compatible-with-webpack4.patch → debian/patches/0001-make-compatible-with-webpack5.patch
- debian/patches/series


Changes:

=====================================
debian/control
=====================================
@@ -14,8 +14,8 @@ Build-Depends: debhelper-compat (= 13),
                qiime (>= 2021.8.0),
                q2templates (>= 2021.8.0),
                q2-types (>= 2021.8.0),
-               node-webpack,
-               node-uglifyjs-webpack-plugin,
+               webpack (>= 5.0~),
+               node-terser-webpack-plugin,
                node-babel-loader,
                node-d3-scale-chromatic,
                node-natural-sort,


=====================================
debian/patches/0001-make-compatible-with-webpack4.patch → debian/patches/0001-make-compatible-with-webpack5.patch
=====================================
@@ -1,12 +1,12 @@
-Description: webpack.config.js in incompatible with webpack4 API, Hence did the needed changes
+Description: webpack.config.js in incompatible with webpack4+ API, Hence did the needed changes
 Author: Nilesh Patra <npatra974 at gmail.com>
 Last-Update: 2021-01-13
 --- a/q2_taxa/assets/barplot/webpack.config.js
 +++ b/q2_taxa/assets/barplot/webpack.config.js
-@@ -1,38 +1,41 @@
+@@ -1,38 +1,38 @@
  var path = require('path');
  var webpack = require('webpack');
-+const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
++const TerserPlugin = require('terser-webpack-plugin');
  
  module.exports = {
 +  mode: 'production',
@@ -18,8 +18,8 @@ Last-Update: 2021-01-13
 -    new webpack.optimize.CommonsChunkPlugin('vendor', 'dist/vendor.bundle.js'),
 -    new webpack.optimize.UglifyJsPlugin({
 -      compress: { warnings: false }
-+    new UglifyJsPlugin({
-+      uglifyOptions: {
++    new TerserPlugin({
++      terserOptions: {
 +        "warnings": false
 +      }
      }),
@@ -43,12 +43,11 @@ Last-Update: 2021-01-13
        {
 -        loader: 'babel-loader',
          exclude: /node_modules/,
-+	use: [{      
-+        loader: 'babel-loader',
-         query: {
+-        query: {
 -          presets: ['es2015']
-+          presets: ['@babel/preset-env']
-         }
+-        }
++	use: [{
++        loader: 'babel-loader',
 +       }]
        }
      ]


=====================================
debian/patches/series
=====================================
@@ -1 +1 @@
-0001-make-compatible-with-webpack4.patch
+0001-make-compatible-with-webpack5.patch



View it on GitLab: https://salsa.debian.org/med-team/q2-taxa/-/compare/83cddb66837d5ca1621f88d32235e913babb86a6...0aae441a38204cd36b8bc9ef312c2f9f99fe4022

-- 
View it on GitLab: https://salsa.debian.org/med-team/q2-taxa/-/compare/83cddb66837d5ca1621f88d32235e913babb86a6...0aae441a38204cd36b8bc9ef312c2f9f99fe4022
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20220524/7e051955/attachment-0001.htm>


More information about the debian-med-commit mailing list