Skip to content

Commit 219d80a

Browse files
authored
Restore target:esnext to samples tsconfig (#582)
Fixes a regression from #560 where we accidentally dropped from "target": "esnext" to "target": "es2020" in the tsconfig.json for sample files (I made a common tsconfig.base.json which defaults to es2020 but forgot to override that in the samples one). We want esnext output for samples because we want to emit standard static class fields (note that @lit/ts-transformers switches instance class field initializers to be constructor-initialized if they are decorated with @Property, to avoid that incompatibility).
1 parent 093bdb4 commit 219d80a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/lit-dev-content/samples/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"extends": "../../../tsconfig.base.json",
33
"compilerOptions": {
4+
"target": "esnext",
45
"rootDir": ".",
56
"outDir": "js",
67
"types": [],

0 commit comments

Comments
 (0)