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.58k stars 210 forks source link

Can't import in ESM project #231

Open uspasojevic96 opened 10 months ago

uspasojevic96 commented 10 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 10 months ago

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