The complete load testing platform. Everything you need for production-grade load tests. Serverless & distributed. Load test with Playwright. Load test HTTP APIs, GraphQL, WebSocket, and more. Use any Node.js module.
This PR will add more complete handling with regards to the CommonJS and ESM standards. This PR should solve #3203 and #2661.
We now look at the extension first, if it's .cjs or .mjs, great, that's easy to resolve. Otherwise, we look for the first package.json we come across, check it's module type, and then determine the project's standards.
The esbuild has been updated to accomodate this change as well.
Pre-merge checklist
This is for use by the Artillery team. Please leave this in if you're contributing to Artillery.
Description
This PR will add more complete handling with regards to the CommonJS and ESM standards. This PR should solve #3203 and #2661.
We now look at the extension first, if it's .cjs or .mjs, great, that's easy to resolve. Otherwise, we look for the first package.json we come across, check it's module type, and then determine the project's standards.
The esbuild has been updated to accomodate this change as well.
Pre-merge checklist
This is for use by the Artillery team. Please leave this in if you're contributing to Artillery.