grafana / xk6-ts

TypeScript support for k6
GNU Affero General Public License v3.0
18 stars 2 forks source link

Feature Request: xk6-ts + Bundling node modules #19

Open Lordnibbler opened 4 months ago

Lordnibbler commented 4 months ago

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!

szkiba commented 4 months ago

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

Lordnibbler commented 4 months ago

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.