Skip to content

Commit 3257fcc

Browse files
authored
[core] Cleanup (#63)
1 parent 234f4c9 commit 3257fcc

27 files changed

Lines changed: 231 additions & 2702 deletions

‎SECURITY.md‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,5 @@
11
# Security policy
22

3-
## Supported versions
4-
5-
The versions of the project that are currently supported with security updates.
6-
7-
| Version | Supported |
8-
| ------: | :----------------- |
9-
| 5.x | :white_check_mark: |
10-
| 4.x | :white_check_mark: |
11-
| < 4.0 | :x: |
12-
133
## Reporting a vulnerability
144

155
You can report a vulnerability by contacting us via email at [security@mui.com](mailto:security@mui.com).

‎babel.config.js‎

Lines changed: 1 addition & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,15 @@
11
const path = require('path');
22

3-
const errorCodesPath = path.resolve(__dirname, './docs/public/static/error-codes.json');
4-
const missingError = process.env.MUI_EXTRACT_ERROR_CODES === 'true' ? 'write' : 'annotate';
5-
63
function resolveAliasPath(relativeToBabelConf) {
74
const resolvedPath = path.relative(process.cwd(), path.resolve(__dirname, relativeToBabelConf));
85
return `./${resolvedPath.replace('\\', '/')}`;
96
}
107

11-
const productionPlugins = [
12-
['babel-plugin-react-remove-properties', { properties: ['data-mui-test'] }],
13-
];
14-
158
module.exports = function getBabelConfig(api) {
169
const useESModules = api.env(['regressions', 'legacy', 'modern', 'stable', 'rollup']);
1710

1811
const defaultAlias = {
1912
'@pigment-css/react': resolveAliasPath('./packages/pigment-css-react/src'),
20-
docs: resolveAliasPath('./docs'),
21-
test: resolveAliasPath('./test'),
22-
'@mui-internal/api-docs-builder': resolveAliasPath(
23-
'./node_modules/@mui/monorepo/packages/api-docs-builder',
24-
),
2513
};
2614

2715
const presets = [
@@ -44,42 +32,8 @@ module.exports = function getBabelConfig(api) {
4432
'@babel/preset-typescript',
4533
];
4634

47-
const plugins = [
48-
[
49-
'babel-plugin-macros',
50-
{
51-
muiError: {
52-
errorCodesPath,
53-
missingError,
54-
},
55-
},
56-
],
57-
'babel-plugin-optimize-clsx',
58-
// Need the following 3 proposals for all targets in .browserslistrc.
59-
// With our usage the transpiled loose mode is equivalent to spec mode.
60-
['@babel/plugin-proposal-class-properties', { loose: true }],
61-
['@babel/plugin-proposal-private-methods', { loose: true }],
62-
['@babel/plugin-proposal-private-property-in-object', { loose: true }],
63-
['@babel/plugin-proposal-object-rest-spread', { loose: true }],
64-
[
65-
'@babel/plugin-transform-runtime',
66-
{
67-
useESModules,
68-
// any package needs to declare 7.4.4 as a runtime dependency. default is ^7.0.0
69-
version: '^7.4.4',
70-
},
71-
],
72-
[
73-
'babel-plugin-transform-react-remove-prop-types',
74-
{
75-
mode: 'unsafe-wrap',
76-
},
77-
],
78-
];
35+
const plugins = [];
7936

80-
if (process.env.NODE_ENV === 'production') {
81-
plugins.push(...productionPlugins);
82-
}
8337
if (process.env.NODE_ENV === 'test') {
8438
plugins.push([
8539
'babel-plugin-module-resolver',
@@ -140,12 +94,6 @@ module.exports = function getBabelConfig(api) {
14094
],
14195
],
14296
},
143-
legacy: {
144-
plugins: [
145-
// IE11 support
146-
'@babel/plugin-transform-object-assign',
147-
],
148-
},
14997
test: {
15098
sourceMaps: 'both',
15199
plugins: [
@@ -160,7 +108,6 @@ module.exports = function getBabelConfig(api) {
160108
},
161109
benchmark: {
162110
plugins: [
163-
...productionPlugins,
164111
[
165112
'babel-plugin-module-resolver',
166113
{

‎package.json‎

Lines changed: 1 addition & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@
3232
"test:coverage": "pnpm build && cross-env NODE_ENV=test BABEL_ENV=coverage nyc --reporter=text mocha 'packages/**/*.test.{js,ts,tsx}' 'docs/**/*.test.{js,ts,tsx}'",
3333
"test:coverage:ci": "pnpm build && cross-env NODE_ENV=test BABEL_ENV=coverage nyc --reporter=lcov mocha 'packages/**/*.test.{js,ts,tsx}' 'docs/**/*.test.{js,ts,tsx}'",
3434
"test:coverage:html": "pnpm build && cross-env NODE_ENV=test BABEL_ENV=coverage nyc --reporter=html mocha 'packages/**/*.test.{js,ts,tsx}' 'docs/**/*.test.{js,ts,tsx}'",
35-
"test:karma": "pnpm build && cross-env NODE_ENV=test karma start test/karma.conf.js",
36-
"test:karma:profile": "pnpm build && cross-env NODE_ENV=test karma start test/karma.conf.profile.js",
3735
"test:regressions": "cross-env NODE_ENV=production pnpm test:regressions:build && concurrently --success first --kill-others \"pnpm test:regressions:run\" \"pnpm test:regressions:server\"",
3836
"test:regressions:build": "webpack --config test/regressions/webpack.config.js",
3937
"test:regressions:dev": "concurrently \"pnpm test:regressions:build --watch\" \"pnpm test:regressions:server\"",
@@ -46,40 +44,27 @@
4644
"validate-declarations": "tsx scripts/validateTypescriptDeclarations.mts"
4745
},
4846
"dependencies": {
49-
"@googleapis/sheets": "^5.0.5",
50-
"@slack/bolt": "^3.17.1",
5147
"@pigment-css/react": "workspace:^",
52-
"execa": "^8.0.1",
53-
"google-auth-library": "^9.7.0",
54-
"util": "^0.12.5"
48+
"globby": "^14.0.1"
5549
},
5650
"devDependencies": {
5751
"@argos-ci/core": "^2.0.0",
5852
"@babel/cli": "^7.24.1",
5953
"@babel/core": "^7.24.4",
6054
"@babel/node": "^7.23.9",
61-
"@babel/plugin-proposal-class-properties": "^7.18.6",
62-
"@babel/plugin-proposal-object-rest-spread": "^7.20.7",
63-
"@babel/plugin-proposal-private-methods": "^7.18.6",
64-
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
65-
"@babel/plugin-transform-object-assign": "^7.24.1",
6655
"@babel/plugin-transform-react-constant-elements": "^7.24.1",
6756
"@babel/plugin-transform-runtime": "^7.24.3",
6857
"@babel/preset-env": "^7.24.4",
6958
"@babel/preset-react": "^7.24.1",
7059
"@babel/preset-typescript": "^7.24.1",
71-
"@babel/register": "^7.23.7",
72-
"@mnajdova/enzyme-adapter-react-18": "^0.2.0",
7360
"@mui/internal-docs-utils": "^1.0.4",
7461
"@mui/internal-markdown": "^1.0.1",
7562
"@mui/internal-scripts": "^1.0.3",
7663
"@mui/internal-test-utils": "https://pkg.csb.dev/mui/material-ui/commit/fb183624/@mui/internal-test-utils",
7764
"@mui/monorepo": "github:mui/material-ui#73c88b6c3f71287a4a1f0b1b5d7d37ab268dca49",
78-
"@mui/utils": "5.15.14",
7965
"@next/eslint-plugin-next": "^14.1.4",
8066
"@octokit/rest": "^20.1.0",
8167
"@playwright/test": "1.43.0",
82-
"@types/enzyme": "^3.10.18",
8368
"@types/fs-extra": "^11.0.4",
8469
"@types/lodash": "^4.17.0",
8570
"@types/mocha": "^10.0.6",
@@ -88,16 +73,10 @@
8873
"@types/yargs": "^17.0.32",
8974
"@typescript-eslint/eslint-plugin": "^7.5.0",
9075
"@typescript-eslint/parser": "^7.5.0",
91-
"babel-loader": "^9.1.3",
9276
"babel-plugin-istanbul": "^6.1.1",
93-
"babel-plugin-macros": "^3.1.0",
9477
"babel-plugin-module-resolver": "^5.0.0",
95-
"babel-plugin-optimize-clsx": "^2.6.2",
96-
"babel-plugin-react-remove-properties": "^0.3.0",
9778
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
9879
"chalk": "^5.3.0",
99-
"compression-webpack-plugin": "^11.1.0",
100-
"concurrently": "^8.2.2",
10180
"cpy-cli": "^5.0.0",
10281
"cross-env": "^7.0.3",
10382
"danger": "^11.3.1",
@@ -118,41 +97,26 @@
11897
"eslint-plugin-react-hooks": "^4.6.0",
11998
"fast-glob": "^3.3.2",
12099
"fs-extra": "^11.2.0",
121-
"globby": "^14.0.1",
122-
"karma": "^6.4.3",
123-
"karma-browserstack-launcher": "~1.6.0",
124-
"karma-chrome-launcher": "^3.2.0",
125-
"karma-coverage-istanbul-reporter": "^3.0.3",
126-
"karma-firefox-launcher": "^2.1.3",
127-
"karma-mocha": "^2.0.1",
128-
"karma-sourcemap-loader": "^0.4.0",
129-
"karma-webpack": "5.0.0",
130100
"lerna": "^8.1.2",
131101
"lodash": "^4.17.21",
132102
"markdownlint-cli2": "^0.13.0",
133103
"mocha": "^10.4.0",
134104
"nx": "^18.2.3",
135105
"nyc": "^15.1.0",
136-
"piscina": "^4.4.0",
137106
"postcss-styled-syntax": "^0.6.4",
138107
"prettier": "^3.2.5",
139108
"pretty-quick": "^4.0.0",
140109
"process": "^0.11.10",
141-
"raw-loader": "4.0.2",
142110
"react-docgen": "^5.4.3",
143111
"remark": "^13.0.0",
144112
"rimraf": "^5.0.5",
145113
"serve": "^14.2.1",
146114
"stylelint": "^16.3.1",
147115
"stylelint-config-standard": "^36.0.0",
148-
"terser-webpack-plugin": "^5.3.10",
149116
"tsup": "^8.0.2",
150117
"tsx": "^4.7.2",
151118
"typescript": "^5.4.4",
152119
"unist-util-visit": "^2.0.3",
153-
"webpack": "^5.91.0",
154-
"webpack-bundle-analyzer": "^4.10.1",
155-
"webpack-cli": "^5.1.4",
156120
"yargs": "^17.7.2"
157121
},
158122
"packageManager": "pnpm@8.15.6",

‎packages/pigment-css-unplugin/package.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@
4141
"@types/babel__core": "^7.20.5",
4242
"@types/chai": "^4.3.14",
4343
"@types/mocha": "^10.0.6",
44-
"chai": "^4.4.1"
44+
"chai": "^4.4.1",
45+
"webpack": "^5.91.0"
4546
},
4647
"sideEffects": false,
4748
"publishConfig": {

0 commit comments

Comments
 (0)