chroe: updated webapp files

This commit is contained in:
Felipe M 2025-07-28 18:01:22 +02:00
parent 6403d1a51d
commit 59dd709d83
No known key found for this signature in database
GPG key ID: 52E5D65FCF99808A
2 changed files with 1 additions and 17 deletions

View file

@ -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',
],
};

View file

@ -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: {