Skip to content

Commit 8021185

Browse files
committed
Merge remote-tracking branch 'origin/upgrade-ts-592' into test-lispy-style-eval
2 parents 8b8a632 + 6414236 commit 8021185

File tree

3 files changed

+1294
-3465
lines changed

3 files changed

+1294
-3465
lines changed

buildprocess/webpack.config.js

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
const configureWebpackForTerriaJS = require("terriajs/buildprocess/configureWebpack");
55
const configureWebpackForPlugins = require("./configureWebpackForPlugins");
6+
const defaultBabelLoader = require("terriajs/buildprocess/defaultBabelLoader");
67
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
78
const path = require("path");
89

@@ -36,29 +37,7 @@ module.exports = function (devMode) {
3637
path.resolve(__dirname, "..", "plugins.ts"),
3738
path.resolve(__dirname, "..", "lib")
3839
],
39-
use: [
40-
{
41-
loader: "babel-loader",
42-
options: {
43-
cacheDirectory: true,
44-
presets: [
45-
[
46-
"@babel/preset-env",
47-
{
48-
corejs: 3,
49-
useBuiltIns: "usage"
50-
}
51-
],
52-
["@babel/preset-react", { runtime: "automatic" }],
53-
["@babel/preset-typescript", { allowNamespaces: true }]
54-
],
55-
plugins: [
56-
["@babel/plugin-proposal-decorators", { legacy: true }],
57-
"babel-plugin-styled-components"
58-
]
59-
}
60-
}
61-
]
40+
use: [defaultBabelLoader({ devMode })]
6241
},
6342
// import html file as string
6443
{

package.json

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,8 @@
3434
}
3535
},
3636
"resolutions": {
37-
"underscore": "^1.12.1",
3837
"@types/react": "^18.3.3",
39-
"@types/react-dom": "^18.3.1",
40-
"@types/lodash": "4.14.182",
41-
"@types/css-font-loading-module": "^0.0.13",
42-
"@types/node": "^22.13.1"
38+
"@types/react-dom": "^18.3.1"
4339
},
4440
"devDependencies": {
4541
"@babel/core": "^7.28.0",
@@ -76,15 +72,14 @@
7672
"sass-loader": "^16.0.3",
7773
"style-loader": "^4.0.0",
7874
"svg-sprite-loader": "^6.0.11",
79-
"terriajs": "8.10.0",
80-
"terriajs-cesium": "18.0.0",
75+
"terriajs": "terriajs/terriajs#upgrade-ts-592",
76+
"terriajs-cesium": "20.0.1",
8177
"terriajs-plugin-api": "0.0.1-alpha.17",
8278
"terriajs-plugin-sample": "0.0.1-alpha.7",
83-
"typescript": "5.7.3",
79+
"typescript": "^5.9.2",
8480
"urijs": "^1.18.12",
8581
"webpack": "^5.96.1",
8682
"webpack-cli": "^5.1.4",
87-
"webpack-dev-server": "^5.1.0",
8883
"yargs": "^17.7.2"
8984
},
9085
"scripts": {
@@ -95,7 +90,6 @@
9590
"start": "terriajs-server --config-file serverconfig.json",
9691
"gulp": "gulp",
9792
"postinstall": "echo 'Installation successful. What to do next:\\n yarn gulp dev # Starts the server on port 3001, builds TerriaMap and dependencies, and rebuilds if files change.'",
98-
"hot": "webpack-dev-server --inline --config buildprocess/webpack.config.hot.js --hot --host 0.0.0.0",
9993
"prettier": "prettier --write .",
10094
"prettier-check": "prettier --check ."
10195
}

0 commit comments

Comments
 (0)