diff --git a/assets/webapp/babel.config.js b/assets/webapp/babel.config.js index 2aa81bf..effdb31 100644 --- a/assets/webapp/babel.config.js +++ b/assets/webapp/babel.config.js @@ -26,10 +26,6 @@ const config = { ['@emotion/babel-preset-css-prop'], ], plugins: [ - '@babel/plugin-proposal-class-properties', - '@babel/plugin-syntax-dynamic-import', - '@babel/proposal-object-rest-spread', - '@babel/plugin-proposal-optional-chaining', 'babel-plugin-typescript-to-proptypes', ], }; diff --git a/assets/webapp/webpack.config.js b/assets/webapp/webpack.config.js index a3d9032..65f467e 100644 --- a/assets/webapp/webpack.config.js +++ b/assets/webapp/webpack.config.js @@ -2,18 +2,12 @@ const exec = require('child_process').exec; const path = require('path'); -const webpack = require('webpack'); - const PLUGIN_ID = require('../plugin.json').id; const NPM_TARGET = process.env.npm_lifecycle_event; //eslint-disable-line no-process-env const isDev = NPM_TARGET === 'debug' || NPM_TARGET === 'debug:watch'; -const plugins = [ - new webpack.ProvidePlugin({ - process: 'process/browser', - }), -]; +const plugins = []; if (NPM_TARGET === 'build:watch' || NPM_TARGET === 'debug:watch') { plugins.push({ apply: (compiler) => { @@ -54,8 +48,6 @@ const config = { rules: [ { test: /\.(js|jsx|ts|tsx)$/, - - //exclude: /node_modules\/(?!(mattermost-webapp|@mattermost)\/).*/, exclude: /node_modules/, use: { loader: 'babel-loader', @@ -83,10 +75,6 @@ const config = { }, ], }, - { - test: /\.svg$/, - use: ['@svgr/webpack'], - }, ], }, externals: {