jstransformers / jstransformer-typescript

TypeScript support for JSTransformers.
http://npm.im/jstransformer-typescript
MIT License
1 stars 1 forks source link

es5 #18

Open puppetmaster3 opened 7 years ago

puppetmaster3 commented 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()
ForbesLindesay commented 7 years ago

That should work, have you tested it?