Re:TypeScript support in Electron
by wereHamster on Saturday June 03, 2017 @04:19AM
(#14475508)
The minifier would get rid of the __options__, and also the function getOptions because both are not used in the resulting code. You need a minifier in any serious project.
[ Parent
| on HN ]
Re:TypeScript support in Electron
by silviogutierrez on Sunday June 04, 2017 @03:12AM
(#14480249)
It wouldn't. getOptions() could have side effects that we want to run. Imagine inside of getOptions we have a prompt() call to fill in some of the options...