@mui/internal-code-infra 0.0.4-canary.12 → 0.0.4-canary.13
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/build/babel-config.d.mts +5 -1
- package/package.json +4 -4
- package/src/babel-config.mjs +3 -1
package/build/babel-config.d.mts
CHANGED
|
@@ -13,9 +13,10 @@ export type ReactCompilationMode = 'annotation' | 'syntax' | 'infer' | 'all';
|
|
|
13
13
|
* @param {string} param0.runtimeVersion
|
|
14
14
|
* @param {string} [param0.reactCompilerReactVersion]
|
|
15
15
|
* @param {ReactCompilationMode} [param0.reactCompilerMode]
|
|
16
|
+
* @param {{ allowedCallees?: Record<string, string[]> }} [param0.displayName] - Options for the display name plugin.
|
|
16
17
|
* @returns {import('@babel/core').TransformOptions} The base Babel configuration.
|
|
17
18
|
*/
|
|
18
|
-
export declare function getBaseConfig({ debug, optimizeClsx, removePropTypes, noResolveImports, bundle, runtimeVersion, outExtension, reactCompilerReactVersion, reactCompilerMode }: {
|
|
19
|
+
export declare function getBaseConfig({ debug, optimizeClsx, removePropTypes, noResolveImports, bundle, runtimeVersion, outExtension, reactCompilerReactVersion, reactCompilerMode, displayName }: {
|
|
19
20
|
debug?: boolean;
|
|
20
21
|
optimizeClsx?: boolean;
|
|
21
22
|
removePropTypes?: boolean;
|
|
@@ -25,6 +26,9 @@ export declare function getBaseConfig({ debug, optimizeClsx, removePropTypes, no
|
|
|
25
26
|
runtimeVersion: string;
|
|
26
27
|
reactCompilerReactVersion?: string;
|
|
27
28
|
reactCompilerMode?: ReactCompilationMode;
|
|
29
|
+
displayName?: {
|
|
30
|
+
allowedCallees?: Record<string, string[]>;
|
|
31
|
+
};
|
|
28
32
|
}): import('@babel/core').TransformOptions;
|
|
29
33
|
export type Options = {
|
|
30
34
|
bundle?: 'esm' | 'cjs';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/internal-code-infra",
|
|
3
|
-
"version": "0.0.4-canary.
|
|
3
|
+
"version": "0.0.4-canary.13",
|
|
4
4
|
"description": "Infra scripts and configs to be used across MUI repos.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -117,8 +117,8 @@
|
|
|
117
117
|
"unified": "^11.0.5",
|
|
118
118
|
"yargs": "^18.0.0",
|
|
119
119
|
"@mui/internal-babel-plugin-display-name": "1.0.4-canary.15",
|
|
120
|
-
"@mui/internal-babel-plugin-
|
|
121
|
-
"@mui/internal-babel-plugin-
|
|
120
|
+
"@mui/internal-babel-plugin-resolve-imports": "2.0.7-canary.33",
|
|
121
|
+
"@mui/internal-babel-plugin-minify-errors": "2.0.8-canary.24"
|
|
122
122
|
},
|
|
123
123
|
"peerDependencies": {
|
|
124
124
|
"@next/eslint-plugin-next": "*",
|
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
"publishConfig": {
|
|
165
165
|
"access": "public"
|
|
166
166
|
},
|
|
167
|
-
"gitSha": "
|
|
167
|
+
"gitSha": "e9b7cbb09759d50b3a1c391f6df49c19cfc927bc",
|
|
168
168
|
"scripts": {
|
|
169
169
|
"build": "tsgo -p tsconfig.build.json",
|
|
170
170
|
"typescript": "tsgo -noEmit",
|
package/src/babel-config.mjs
CHANGED
|
@@ -25,6 +25,7 @@ import pluginRemovePropTypes from 'babel-plugin-transform-react-remove-prop-type
|
|
|
25
25
|
* @param {string} param0.runtimeVersion
|
|
26
26
|
* @param {string} [param0.reactCompilerReactVersion]
|
|
27
27
|
* @param {ReactCompilationMode} [param0.reactCompilerMode]
|
|
28
|
+
* @param {{ allowedCallees?: Record<string, string[]> }} [param0.displayName] - Options for the display name plugin.
|
|
28
29
|
* @returns {import('@babel/core').TransformOptions} The base Babel configuration.
|
|
29
30
|
*/
|
|
30
31
|
export function getBaseConfig({
|
|
@@ -37,6 +38,7 @@ export function getBaseConfig({
|
|
|
37
38
|
outExtension,
|
|
38
39
|
reactCompilerReactVersion,
|
|
39
40
|
reactCompilerMode,
|
|
41
|
+
displayName,
|
|
40
42
|
}) {
|
|
41
43
|
/**
|
|
42
44
|
* @type {import('@babel/preset-env').Options}
|
|
@@ -61,7 +63,7 @@ export function getBaseConfig({
|
|
|
61
63
|
},
|
|
62
64
|
'@babel/plugin-transform-runtime',
|
|
63
65
|
],
|
|
64
|
-
[pluginDisplayName, {}, '@mui/internal-babel-plugin-display-name'],
|
|
66
|
+
[pluginDisplayName, { ...displayName }, '@mui/internal-babel-plugin-display-name'],
|
|
65
67
|
[
|
|
66
68
|
pluginTransformInlineEnvVars,
|
|
67
69
|
{
|