|
1 | 1 | {
|
2 |
| - "presets": ["./scripts/material-ui-babel-preset", "stage-1", "react"], |
3 |
| - "plugins": [ |
4 |
| - "transform-object-assign" |
5 |
| - ], |
| 2 | + "presets": ["./scripts/material-ui-babel-preset", "@babel/preset-stage-1", "@babel/preset-react"], |
| 3 | + "plugins": ["@babel/plugin-transform-object-assign"], |
6 | 4 | "env": {
|
7 | 5 | "coverage": {
|
8 | 6 | "plugins": [
|
9 | 7 | "istanbul",
|
| 8 | + "@babel/plugin-transform-flow-strip-types", |
10 | 9 | [
|
11 | 10 | "module-resolver",
|
12 | 11 | {
|
|
16 | 15 | "material-ui": "./packages/material-ui/src"
|
17 | 16 | }
|
18 | 17 | }
|
19 |
| - ], |
| 18 | + ] |
20 | 19 | ]
|
21 | 20 | },
|
22 | 21 | "development": {
|
23 | 22 | "sourceMaps": "both",
|
24 |
| - "plugins": [ |
25 |
| - "transform-flow-strip-types" |
26 |
| - ] |
| 23 | + "plugins": ["@babel/plugin-transform-flow-strip-types"] |
27 | 24 | },
|
28 | 25 | "docs-development": {
|
29 |
| - "presets": [ |
30 |
| - "next/babel" |
31 |
| - ], |
| 26 | + "presets": ["next/babel"], |
32 | 27 | "plugins": [
|
33 |
| - "preval", |
| 28 | + "./scripts/material-ui-babel-preval", |
34 | 29 | [
|
35 | 30 | "module-resolver",
|
36 | 31 | {
|
|
44 | 39 | }
|
45 | 40 | }
|
46 | 41 | ],
|
47 |
| - "transform-flow-strip-types" |
| 42 | + "@babel/plugin-transform-flow-strip-types" |
48 | 43 | ]
|
49 | 44 | },
|
50 | 45 | "docs-production": {
|
51 |
| - "presets": [ |
52 |
| - "next/babel" |
53 |
| - ], |
| 46 | + "presets": ["next/babel"], |
54 | 47 | "plugins": [
|
55 |
| - "preval", |
| 48 | + "./scripts/material-ui-babel-preval", |
56 | 49 | [
|
57 | 50 | "module-resolver",
|
58 | 51 | {
|
|
68 | 61 | ],
|
69 | 62 | "transform-react-constant-elements",
|
70 | 63 | "transform-dev-warning",
|
71 |
| - "transform-runtime", |
72 |
| - ["react-remove-properties", {"properties": ["data-mui-test"]}], |
73 |
| - ["transform-react-remove-prop-types", {"mode": "remove"}] |
| 64 | + "@babel/transform-runtime", |
| 65 | + "@babel/plugin-transform-flow-strip-types", |
| 66 | + ["react-remove-properties", { "properties": ["data-mui-test"] }], |
| 67 | + ["transform-react-remove-prop-types", { "mode": "remove" }] |
74 | 68 | ]
|
75 | 69 | },
|
76 | 70 | "es": {
|
77 | 71 | "plugins": [
|
78 | 72 | "transform-react-constant-elements",
|
79 | 73 | "transform-dev-warning",
|
80 |
| - "transform-runtime", |
81 |
| - ["react-remove-properties", {"properties": ["data-mui-test"]}], |
82 |
| - ["transform-react-remove-prop-types", { |
83 |
| - "mode": "wrap", |
84 |
| - "plugins": [ |
85 |
| - "babel-plugin-transform-flow-strip-types" |
86 |
| - ] |
87 |
| - }] |
| 74 | + "@babel/transform-runtime", |
| 75 | + "@babel/plugin-transform-flow-strip-types", |
| 76 | + ["react-remove-properties", { "properties": ["data-mui-test"] }], |
| 77 | + [ |
| 78 | + "transform-react-remove-prop-types", |
| 79 | + { |
| 80 | + "mode": "wrap" |
| 81 | + } |
| 82 | + ] |
88 | 83 | ]
|
89 |
| - }, |
| 84 | + }, |
90 | 85 | "production": {
|
91 | 86 | "plugins": [
|
92 | 87 | "transform-react-constant-elements",
|
93 | 88 | "transform-dev-warning",
|
94 |
| - "transform-runtime", |
95 |
| - ["react-remove-properties", {"properties": ["data-mui-test"]}], |
96 |
| - ["transform-react-remove-prop-types", { |
97 |
| - "mode": "wrap", |
98 |
| - "plugins": [ |
99 |
| - "babel-plugin-transform-flow-strip-types" |
100 |
| - ] |
101 |
| - }] |
| 89 | + "@babel/transform-runtime", |
| 90 | + "@babel/plugin-transform-flow-strip-types", |
| 91 | + ["react-remove-properties", { "properties": ["data-mui-test"] }], |
| 92 | + [ |
| 93 | + "transform-react-remove-prop-types", |
| 94 | + { |
| 95 | + "mode": "wrap" |
| 96 | + } |
| 97 | + ] |
102 | 98 | ]
|
103 |
| - }, |
| 99 | + }, |
104 | 100 | "test": {
|
105 | 101 | "sourceMaps": "both",
|
106 | 102 | "plugins": [
|
107 |
| - "transform-flow-strip-types", |
| 103 | + "@babel/plugin-transform-flow-strip-types", |
108 | 104 | [
|
109 | 105 | "module-resolver",
|
110 | 106 | {
|
|
114 | 110 | "material-ui": "./packages/material-ui/src"
|
115 | 111 | }
|
116 | 112 | }
|
117 |
| - ], |
| 113 | + ] |
118 | 114 | ]
|
119 | 115 | }
|
120 |
| - } |
| 116 | + }, |
| 117 | + "ignore": ["scripts/material-ui-babel-preset.js", "scripts/*.js"] |
121 | 118 | }
|
0 commit comments