Skip to content

Commit 95f3905

Browse files
authored
Merge pull request #662 from TerriaJS/r18-tm-p1
Use new React jsx transform and remove jsx-control-statements
2 parents 20a64b4 + 0039273 commit 95f3905

4 files changed

Lines changed: 4 additions & 13 deletions

File tree

buildprocess/webpack.config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,10 @@ module.exports = function (devMode, hot) {
5959
useBuiltIns: "usage"
6060
}
6161
],
62-
"@babel/preset-react",
62+
["@babel/preset-react", { runtime: "automatic" }],
6363
["@babel/typescript", { allowNamespaces: true }]
6464
],
6565
plugins: [
66-
"babel-plugin-jsx-control-statements",
6766
"@babel/plugin-transform-modules-commonjs",
6867
["@babel/plugin-proposal-decorators", { legacy: true }],
6968
"@babel/proposal-class-properties",

lib/Views/UserInterface.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@ export default function UserInterface(props) {
4545
) : null}
4646
</MenuLeft>
4747
<ExperimentalMenu>
48-
{/* <If condition={isBrowserSupportedAV()}>
48+
{/* {isBrowserSupportedAV() && (
4949
<SplitPoint
5050
loadComponent={loadAugmentedVirtuality}
5151
viewState={props.viewState}
5252
terria={props.viewState.terria}
5353
experimentalWarning={true}
5454
/>
55-
</If> */}
55+
)} */}
5656
</ExperimentalMenu>
5757
</StandardUserInterface>
5858
);

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
"@typescript-eslint/eslint-plugin": "^6.12.0",
4949
"@typescript-eslint/parser": "^6.12.0",
5050
"babel-loader": "^8.2.3",
51-
"babel-plugin-jsx-control-statements": "^4.0.0",
5251
"css-loader": "^2.1.0",
5352
"ejs": "^2.5.2",
5453
"eslint": "^7.20.0",

yarn.lock

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.24.1.tgz#31c1f66435f2a9c329bb5716a6d6186c516c3742"
3636
integrity sha512-Pc65opHDliVpRHuKfzI+gSA4zcgr65O4cl64fFJIWEEh8JoHIHh0Oez1Eo8Arz8zq/JhgKodQaxEwUPRtZylVA==
3737

38-
"@babel/core@^7.0.0", "@babel/core@^7.1.2", "@babel/core@^7.23.5":
38+
"@babel/core@^7.0.0", "@babel/core@^7.23.5":
3939
version "7.24.3"
4040
resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.24.3.tgz#568864247ea10fbd4eff04dda1e05f9e2ea985c3"
4141
integrity sha512-5FcvN1JHw2sHJChotgx8Ek0lyuh4kCKelgMTTqhYJJtloNvUfpAFMeNQUtdlIaktwrSV9LtCdqwk48wL2wBacQ==
@@ -2912,13 +2912,6 @@ babel-plugin-emotion@^10.0.27:
29122912
find-root "^1.1.0"
29132913
source-map "^0.5.7"
29142914

2915-
babel-plugin-jsx-control-statements@^4.0.0:
2916-
version "4.1.2"
2917-
resolved "https://registry.yarnpkg.com/babel-plugin-jsx-control-statements/-/babel-plugin-jsx-control-statements-4.1.2.tgz#eb90494109cad3ed1b88dc75416e2c056fca1462"
2918-
integrity sha512-GUEnED4GLxJnFGKidbdI0GNN5Ekih4wbAr7+ENkpUKWYxeg7UPcgwmYd7qrpxT7UWto4OZtyUJg+sm+QN4ZjkQ==
2919-
dependencies:
2920-
"@babel/core" "^7.1.2"
2921-
29222915
babel-plugin-lodash@^3.3.4:
29232916
version "3.3.4"
29242917
resolved "https://registry.yarnpkg.com/babel-plugin-lodash/-/babel-plugin-lodash-3.3.4.tgz#4f6844358a1340baed182adbeffa8df9967bc196"

0 commit comments

Comments
 (0)