Skip to content

Conversation

@CMCDragonkai
Copy link
Member

@CMCDragonkai CMCDragonkai commented May 15, 2024

Description

This migrates to ESM.

Issues Fixed

Tasks

  • 1. Migrating to ESM
  • 2. Fix fast-check

Final checklist

  • Domain specific tests
  • Full tests
  • Updated inline-comment documentation
  • Lint fixed
  • Squash and rebased
  • Sanity check the final build

@CMCDragonkai
Copy link
Member Author

Seems like something is wrong with @fast-check/jest. Importing it results in some problem here. Something to do with ESM or otherwise: dubzzz/fast-check#4986

@CMCDragonkai
Copy link
Member Author

ESM code can load CJS code.

However they cannot destructure on import anymore. So for example, this is what is necessary for the Counter:

import resourceCounter from 'resource-counter';

const { default: Counter } = resourceCounter;

Copy link
Member Author

@tegefaulkes this requires a PR up to fast check.

@linear
Copy link

linear bot commented Mar 23, 2025

ENG-559

@tegefaulkes tegefaulkes merged commit 22c4ed9 into staging Mar 24, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

js-table: Migration to ESM

3 participants