Fix Webpack warnings (#25147)
* Remove invalid SCSS * Silence module federation warning by not exposing prop-types
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
2d707017df
Коммит
36a15fd22b
@@ -119,16 +119,6 @@
|
|||||||
|
|
||||||
// Tablet and desktop
|
// Tablet and desktop
|
||||||
@media screen and (min-width: 769px) {
|
@media screen and (min-width: 769px) {
|
||||||
// ensure the global header always sits on top of its immediate sibling
|
|
||||||
> header {
|
|
||||||
z-index: 2;
|
|
||||||
|
|
||||||
+ * {
|
|
||||||
position: relative;
|
|
||||||
z-index: 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.search-help-popover {
|
.search-help-popover {
|
||||||
width: 274px;
|
width: 274px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,12 +5,13 @@
|
|||||||
|
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const url = require('url');
|
const url = require('url');
|
||||||
|
|
||||||
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||||||
const ExternalTemplateRemotesPlugin = require('external-remotes-plugin');
|
const ExternalTemplateRemotesPlugin = require('external-remotes-plugin');
|
||||||
const webpack = require('webpack');
|
|
||||||
const {ModuleFederationPlugin} = require('webpack').container;
|
|
||||||
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
||||||
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
||||||
|
const webpack = require('webpack');
|
||||||
|
const {ModuleFederationPlugin} = require('webpack').container;
|
||||||
const WebpackPwaManifest = require('webpack-pwa-manifest');
|
const WebpackPwaManifest = require('webpack-pwa-manifest');
|
||||||
|
|
||||||
// const {BundleAnalyzerPlugin} = require('webpack-bundle-analyzer');
|
// const {BundleAnalyzerPlugin} = require('webpack-bundle-analyzer');
|
||||||
@@ -337,7 +338,6 @@ async function initializeModuleFederation() {
|
|||||||
'@mattermost/client',
|
'@mattermost/client',
|
||||||
'@mattermost/types',
|
'@mattermost/types',
|
||||||
'luxon',
|
'luxon',
|
||||||
'prop-types',
|
|
||||||
], false),
|
], false),
|
||||||
|
|
||||||
// Other containers will be forced to use the exact versions of shared modules that the web app provides.
|
// Other containers will be forced to use the exact versions of shared modules that the web app provides.
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user