External module import problem

Hi guys,

We are using K6 for load-testing, but we stucked with a problem. If we import a module (like ‘jsonwebtoken’ or ‘jwk-to-pem’) into the js source file, then the test run will be killed by the running environment (after ~ 15 mins trying). Even if this is the only one thing what we put into the code.

Our guess is the generated js file is way too long and can not be properly processed - although it didn’t work with smaller splitted/chunked js files, so we aren’t sure. As far as we know it should have impact only on perfomance, but not being killed.

Do you have any idea what should we have to do?

How to replicate:

  1. clone the template project https://github.com/k6io/template-es6
  2. try to use jsonwebtoken in main.js (var jwt = require(‘jsonwebtoken’))

Thanks