Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use typescript source code for output instead of compiled javascript #72

Open
DetachHead opened this issue Dec 10, 2020 · 0 comments
Open

Comments

@DetachHead
Copy link

DetachHead commented Dec 10, 2020

is it possible to use the typescript source code in the output using source maps?

current behavior:

input:

const assert = require("assert");

it('test', async () => {
    const foo = {
        bar: 1
    }
    assert(foo?.bar === 2)
})

output:

  assert((foo === null || foo === void 0 ? void 0 : foo.bar) === 2)
          |   |        |  |   |   |                 |   |    |     
          |   |        |  |   |   |                 |   1    false 
          |   |        |  |   |   undefined         Object{bar:1}
          |   |        |  |   false
          |   |        |  Object{bar:1}
          |   false    false
          Object{bar:1}
@DetachHead DetachHead changed the title use ypescript source code for output instead of compiled javascript use typescript source code for output instead of compiled javascript Dec 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant