Open puppetmaster3 opened 7 years ago
How do you pass in configuration, so that it compiles to es5?
This shows compilerOptions: https://github.com/jstransformers/jstransformer-typescript
My ultimate goal would be to have a .pug page that has script. of some typescript that it compiles to es5. This for example does not use ES5
script :typescript(target='ES5'). class F { p() { console.log('oh hi ts') } } new F().p()
That should work, have you tested it?
How do you pass in configuration, so that it compiles to es5?
This shows compilerOptions: https://github.com/jstransformers/jstransformer-typescript
My ultimate goal would be to have a .pug page that has script. of some typescript that it compiles to es5. This for example does not use ES5