-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
HOW-TO: ES Modules with @std/esm #1590
Comments
@motss Would you be able to submit a recipe? See: https://github.com/avajs/ava/tree/master/docs/recipes |
@sindresorhus PTAL at the PR #1593 |
It doesn't work for me. I use flow so my
and
I tried all possible combinations in require section of ava and in Outside ava `@std/esm works like a charm. And w/o @std/esm ava works (with some limitations based on babel7). |
@dacz head over to the |
It looks like there was complications with ava support for test files. Packages using |
* support @std/esm * fix path test for windows * fix linter error * Stricter regex. Use shorthand .esmrc file in fixture. * update package-lock.json
If you're using @std/esm for your projects,
ava
will not be able to read yourimport test from 'ava';
if you're not transpiling ES modules.The following configuration in
package.json
will help you out:Hope this helps! 🎉
The text was updated successfully, but these errors were encountered: