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
How to indicate that a loader uses ES modules #61
Closed
Comments
Ok, so it is not possible yet: 4f91458#r40502100 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How do you indicate via config or options that a loader should be loaded using
import
instead ofrequire
?How do you get this logic to kick-in?
I have a loader that is written with ES modules, and my package.json specifies
"type": "module"
. I am running Jest using the node option--experimental-vm-modules
and my tests written with ES modules are all working fine except for this one which has the following error:NonErrorEmittedError: (Emitted value instead of an instance of Error) Error: Must use import to load ES Module
.Relevant stack trace:
The text was updated successfully, but these errors were encountered: