salesforce / sfdx-lwc-jest

Run Jest against LWC components in SFDX workspace environment
MIT License
162 stars 81 forks source link

Convert to ESM and rely on a single `lwc` package #366

Open nolanlawson opened 4 months ago

nolanlawson commented 4 months ago

This would be the first step to achieving #349. We should not have multiple @lwc/* package dependencies, but rather a top-level lwc dependency, and do our imports like this:

import compiler from 'lwc/compiler'

This requires converting from CommonJS to ESM.