alexfernandez / loadtest

Runs a load test on the selected URL. Fast and easy to use. Can be integrated in your own workflow using the API.
MIT License
2.57k stars 209 forks source link

Can't import in ESM project #231

Open uspasojevic96 opened 8 months ago

uspasojevic96 commented 8 months ago

When using typescript with following config and setting "type": "module" in package.json I can't build:

{
  "compilerOptions": {
    "esModuleInterop": true,
    "module": "NodeNext",
    "moduleResolution": "NodeNext",
    "target": "es6",
    "outDir": "dist",
    "rootDir": ".",
    "sourceMap": true,
    "strict": false
  }
}
node_modules/loadtest/index.d.ts:44:1 - error TS1203: Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead.

44 export = loadtest;
alexfernandez commented 8 months ago

Sorry, I don't use TypeScript myself. Care to propose a fix?