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 transform service with node as a platform? #115

Closed
wcastand opened this issue May 16, 2020 · 1 comment
Closed

use transform service with node as a platform? #115

wcastand opened this issue May 16, 2020 · 1 comment

Comments

@wcastand
Copy link

Hi, i'd like to use esbuild to transform some typescript code to be run as node worker.

In the read me it says that it can be used to transform Typescript to Javascript or newer Js to an older one.

when i run the transform service on this file, it just remove the annotations if there is any:

import test from './worker'

test('simple', (a) => {
  a.equal(1, 0, 'not equal')
})
test('async', async (a) => {
  await new Promise((r) => {
    setTimeout(() => {
      a.equal(1, 1, 'not equal')
      r()
    }, 1000)
  })
})
test('simple 2', (a) => {
  a.equal(1, 1, 'not equal')
})

is it related to issue #109 ?

@evanw
Copy link
Owner

evanw commented May 16, 2020

Yes this seems like a duplicate of #109 to me.

@evanw evanw closed this as completed May 16, 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

2 participants