@mui/internal-code-infra 0.0.3-canary.76 → 0.0.3-canary.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +5 -4
- package/src/babel-config.mjs +5 -0
- package/src/untyped-plugins.d.ts +7 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/internal-code-infra",
|
|
3
|
-
"version": "0.0.3-canary.
|
|
3
|
+
"version": "0.0.3-canary.78",
|
|
4
4
|
"description": "Infra scripts and configs to be used across MUI repos.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -68,11 +68,12 @@
|
|
|
68
68
|
"@octokit/oauth-methods": "^6.0.2",
|
|
69
69
|
"@octokit/rest": "^22.0.1",
|
|
70
70
|
"@pnpm/find-workspace-dir": "^1000.1.3",
|
|
71
|
-
"@vitest/eslint-plugin": "^1.6.6",
|
|
72
71
|
"@typescript-eslint/types": "^8.53.0",
|
|
73
72
|
"@typescript-eslint/utils": "^8.53.0",
|
|
73
|
+
"@vitest/eslint-plugin": "^1.6.6",
|
|
74
74
|
"babel-plugin-optimize-clsx": "^2.6.2",
|
|
75
75
|
"babel-plugin-react-compiler": "^1.0.0",
|
|
76
|
+
"babel-plugin-transform-import-meta": "^2.3.3",
|
|
76
77
|
"babel-plugin-transform-inline-environment-variables": "^0.4.4",
|
|
77
78
|
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
|
|
78
79
|
"babel-plugin-transform-remove-imports": "^1.8.1",
|
|
@@ -112,7 +113,7 @@
|
|
|
112
113
|
"unified": "^11.0.5",
|
|
113
114
|
"yargs": "^18.0.0",
|
|
114
115
|
"@mui/internal-babel-plugin-display-name": "1.0.4-canary.11",
|
|
115
|
-
"@mui/internal-babel-plugin-minify-errors": "2.0.8-canary.
|
|
116
|
+
"@mui/internal-babel-plugin-minify-errors": "2.0.8-canary.17",
|
|
116
117
|
"@mui/internal-babel-plugin-resolve-imports": "2.0.7-canary.31"
|
|
117
118
|
},
|
|
118
119
|
"peerDependencies": {
|
|
@@ -150,7 +151,7 @@
|
|
|
150
151
|
"publishConfig": {
|
|
151
152
|
"access": "public"
|
|
152
153
|
},
|
|
153
|
-
"gitSha": "
|
|
154
|
+
"gitSha": "a6c5118ea0a2b62e078aa221b5522a2c8f1fd864",
|
|
154
155
|
"scripts": {
|
|
155
156
|
"build": "tsc -p tsconfig.build.json",
|
|
156
157
|
"typescript": "tsc -p tsconfig.json",
|
package/src/babel-config.mjs
CHANGED
|
@@ -6,6 +6,7 @@ import pluginDisplayName from '@mui/internal-babel-plugin-display-name';
|
|
|
6
6
|
import pluginResolveImports from '@mui/internal-babel-plugin-resolve-imports';
|
|
7
7
|
import pluginOptimizeClsx from 'babel-plugin-optimize-clsx';
|
|
8
8
|
import pluginReactCompiler from 'babel-plugin-react-compiler';
|
|
9
|
+
import pluginTransformImportMeta from 'babel-plugin-transform-import-meta';
|
|
9
10
|
import pluginTransformInlineEnvVars from 'babel-plugin-transform-inline-environment-variables';
|
|
10
11
|
import pluginRemovePropTypes from 'babel-plugin-transform-react-remove-prop-types';
|
|
11
12
|
|
|
@@ -72,6 +73,10 @@ export function getBaseConfig({
|
|
|
72
73
|
],
|
|
73
74
|
];
|
|
74
75
|
|
|
76
|
+
if (bundle !== 'esm') {
|
|
77
|
+
plugins.push([pluginTransformImportMeta, {}, 'babel-plugin-transform-import-meta']);
|
|
78
|
+
}
|
|
79
|
+
|
|
75
80
|
if (reactCompilerReactVersion) {
|
|
76
81
|
/**
|
|
77
82
|
* @typedef {import('babel-plugin-react-compiler').PluginOptions} ReactCompilerOptions
|
package/src/untyped-plugins.d.ts
CHANGED
|
@@ -130,6 +130,13 @@ declare module 'babel-plugin-transform-react-remove-prop-types' {
|
|
|
130
130
|
export default plugin;
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
+
declare module 'babel-plugin-transform-import-meta' {
|
|
134
|
+
import type { PluginItem } from '@babel/core';
|
|
135
|
+
|
|
136
|
+
declare const plugin: PluginItem;
|
|
137
|
+
export default plugin;
|
|
138
|
+
}
|
|
139
|
+
|
|
133
140
|
declare module 'babel-plugin-transform-inline-environment-variables' {
|
|
134
141
|
import type { PluginItem } from '@babel/core';
|
|
135
142
|
|