Skip to content

Commit ed9e7f6

Browse files
committed
Fix Qt config to target older ES version
1 parent c8594f9 commit ed9e7f6

File tree

5 files changed

+70
-61
lines changed

5 files changed

+70
-61
lines changed

glean/package-lock.json

Lines changed: 55 additions & 55 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

glean/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
"ts-node": "^9.1.1",
9191
"typescript": "^4.1.5",
9292
"web-ext-types": "^3.2.1",
93-
"webpack": "^5.21.2",
93+
"webpack": "^5.34.0",
9494
"webpack-cli": "^4.5.0"
9595
},
9696
"dependencies": {

glean/tsconfig/qt.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"extends": "./base.json",
3+
"compilerOptions": {
4+
"target": "ES5"
5+
},
6+
"include": ["../src/index/qt.ts" ]
7+
}

glean/tsconfig/qt/index.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

glean/webpack.config.qt.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,19 @@ class TsResolvePlugin {
3333

3434
export default {
3535
entry: "./src/index/qt.ts",
36+
devtool : "cheap-source-map",
3637
module: {
3738
rules: [
3839
{
3940
test: /\.tsx?$/,
4041
loader: "ts-loader",
4142
exclude: /node_modules/,
42-
options: { onlyCompileBundledFiles: true },
43+
options: {
44+
onlyCompileBundledFiles: true,
45+
// This path is resolved relative to the entry file, ./src/index/qt.ts
46+
// See: https://github.com/TypeStrong/ts-loader#configfile
47+
configFile: "../../tsconfig/qt.json"
48+
},
4349
},
4450
],
4551
},

0 commit comments

Comments
 (0)