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

Switch to ESM for internals #2741

Merged
merged 7 commits into from
Jun 6, 2021
Merged

Switch to ESM for internals #2741

merged 7 commits into from
Jun 6, 2021

Commits on May 17, 2021

  1. Configuration menu
    Copy the full SHA
    6019cc1 View commit details
    Browse the repository at this point in the history
  2. Ensure ava/plugin works in a CJS environment

    Refactor and deploy some tricks so that ava/plugin is usable in a CJS environment, even if the rest of AVA's internals become ESM.
    novemberborn committed May 17, 2021
    Configuration menu
    Copy the full SHA
    d5a4c1a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c3b385d View commit details
    Browse the repository at this point in the history
  4. Convert to ESM

    * Load yargs as CJS due to strange compatibility issues
    * Keep line number parsing code as CJS because it attempts to lazy-load dependencies
    * Shared workers are always loaded through a dynamic import
    * Shared worker filenames must now be file:// URLs, but you can provide a URL instance
    * Test file paths within shared workers are now file:// URLs
    * Error serialization and code excerpts now support ESM
    * Title prefixes in the reporters now correctly skip all test file extensions, not just `js`
    novemberborn committed May 17, 2021
    Configuration menu
    Copy the full SHA
    ea21f6a View commit details
    Browse the repository at this point in the history

Commits on May 18, 2021

  1. fixup! Convert to ESM

    novemberborn committed May 18, 2021
    Configuration menu
    Copy the full SHA
    17dd6c9 View commit details
    Browse the repository at this point in the history

Commits on May 24, 2021

  1. Configuration menu
    Copy the full SHA
    d011dbb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    414588d View commit details
    Browse the repository at this point in the history