When using TypeScript w/ Polyserve or PWA-starter-kit, the correct JS generated using TS 3.7 features get re-written in a weird way by the dev server pipelining leveraged by polymer serve:
foo?.someProp ?? "default value"
gets re-written as invalid JS:
foo ? .someProp ? ? "default value : : :
The errors that populate involves babylon. Because of these errors, you have to stop the dev server constantly to re-run tsc to generate the correct code.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
When using TypeScript w/ Polyserve or PWA-starter-kit, the correct JS generated using TS 3.7 features get re-written in a weird way by the dev server pipelining leveraged by
polymer serve
:gets re-written as invalid JS:
The errors that populate involves
babylon
. Because of these errors, you have to stop the dev server constantly to re-runtsc
to generate the correct code.//cc @rictic