Now that we no longer support IE we can raise the minimum ES target a bit. Changing to es2015 shaves off ~17% from the main bundle size, also it prevents generators from being transpiled into regular functions etc. so I would guess it has the potential to give some general performance improvements too. For fun I also tried to raise it to es2022, this gave a slightly bigger bundle than es2015 so I think es2015 could be an ok target unless we need something newer for some reason.
41 lines
736 B
JSON
41 lines
736 B
JSON
{
|
|
"compilerOptions": {
|
|
"module": "commonjs",
|
|
"target": "es2015",
|
|
"lib": [
|
|
"es6",
|
|
],
|
|
"rootDir": ".",
|
|
"outDir": "../out-test",
|
|
"sourceMap": true,
|
|
"removeComments": true,
|
|
"baseUrl": ".",
|
|
"paths": {
|
|
"common/*": [
|
|
"../../../src/common/*"
|
|
],
|
|
"browser/*": [
|
|
"../../../src/browser/*"
|
|
]
|
|
},
|
|
"strict": true,
|
|
"types": [
|
|
"../../../node_modules/@types/mocha",
|
|
"../../../node_modules/@types/node",
|
|
"../../../out-test/api/TestUtils"
|
|
]
|
|
},
|
|
"include": [
|
|
"./**/*",
|
|
"../../../typings/xterm.d.ts"
|
|
],
|
|
"references": [
|
|
{
|
|
"path": "../../../src/common"
|
|
},
|
|
{
|
|
"path": "../../../src/browser"
|
|
}
|
|
]
|
|
}
|