Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add utility functions to get module type #3405

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Nov 13, 2024

  1. fix: add utility functions to get module type

    This PR will add more complete handling with regards to the CommonJS and ESM standards. This PR should solve artilleryio#3203 and artilleryio#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.
    jonasclaes committed Nov 13, 2024
    Configuration menu
    Copy the full SHA
    325bc1e View commit details
    Browse the repository at this point in the history