Skip to content

Commit

Permalink
Restore target:esnext to samples tsconfig (lit#582)
Browse files Browse the repository at this point in the history
Fixes a regression from lit#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).
  • Loading branch information
aomarks committed Nov 2, 2021
1 parent 093bdb4 commit 219d80a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/lit-dev-content/samples/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "../../../tsconfig.base.json",
"compilerOptions": {
"target": "esnext",
"rootDir": ".",
"outDir": "js",
"types": [],
Expand Down

0 comments on commit 219d80a

Please sign in to comment.