grafana/xk6-ts

Feature Request: xk6-ts + Bundling node modules

Opened this issue · 2 comments

Hi,

Not so much an issue, but a feature request and question.

In my K6 project, I'd like to both use typescript and bundle in node dependencies following the guide here.

I was curious if you expect it to be possible to leverage esbuild and k6-pack as you currently do in this extension and support bringing in node dependencies, or if these approaches are incompatible.

Is my best bet to abandon use of this extension and rely on babel/webpack to transpile typescript per the K6 guide I linked above?

Thanks!

Hi @Lordnibbler , Thanks for the suggestion. Well, it almost works now, I think it can be made to work with a little development.

Do you mind sharing what you mean "it almost works now"? How would I bring in node modules as dependencies using xk6-ts?

Is it something you'd be open to developing? Happy to lend a hand as well.