Fix Rollup warnings and remove some unused Rollup plugins (#26387)

* Fix rollup warnings

* Remove some unused Rollup plugins

* Re-add unintentionally half-removed Stylelint
This commit is contained in:
Harrison Healey 2024-03-05 09:53:17 -05:00 committed by GitHub
parent 3efcef45ff
commit eaaf75a232
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 266 additions and 494 deletions

View File

@ -95,6 +95,7 @@
"smooth-scroll-into-view-if-needed": "1.1.33",
"stream-browserify": "3.0.0",
"styled-components": "5.3.6",
"stylelint": "13.13.1",
"timezones.json": "1.6.1",
"tinycolor2": "1.4.2",
"turndown": "7.1.1",
@ -173,7 +174,6 @@
"react-router-enzyme-context": "1.2.0",
"redux-mock-store": "1.5.4",
"redux-persist-node-storage": "2.0.0",
"stylelint": "13.13.1",
"stylelint-config-idiomatic-order": "8.1.0",
"stylelint-config-recommended": "5.0.0",
"stylelint-config-recommended-scss": "4.2.0",

748
webapp/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -28,8 +28,6 @@
"@types/shallow-equals": "^1.0.0",
"@types/styled-components": "^5.1.19",
"rollup": "^2.75.7",
"rollup-plugin-auto-external": "^2.0.0",
"rollup-plugin-peer-deps-external": "^2.2.4",
"rollup-plugin-scss": "^3.0.0",
"typescript": "^5.0.0"
},

View File

@ -12,6 +12,8 @@ import packagejson from './package.json';
const externals = [
...Object.keys(packagejson.dependencies || {}),
...Object.keys(packagejson.peerDependencies || {}),
'@mattermost/compass-icons/components',
'lodash/throttle',
'mattermost-redux',
'reselect',
];
@ -34,9 +36,11 @@ export default [
extensions: ['.ts', '.tsx'],
}),
commonjs(),
typescript(),
typescript({
outputToFilesystem: true,
}),
],
external: (pkg) => externals.some((external) => pkg.startsWith(external)),
external: externals,
watch: {
clearScreen: false,
},