Skip to content

Conversation

ehmicky
Copy link
Contributor

@ehmicky ehmicky commented Feb 2, 2022

We have just added an ESM-specific configuration file.

I tried to use the new exports feature which allows the import name to be different from the file path being imported. However, this seems to fail with ESLint and report a "module not found" error. When making the import name mirror the imported file path, this error disappears.

Also, when merging the base ESLint configuration, I forgot to merge its parserOptions.

Checklist

Please add a x inside each checkbox:

  • I have read the contribution guidelines.
  • The status checks are successful (continuous integration). Those can be seen below.
@ehmicky ehmicky added the type: bug code to address defects in shipped code label Feb 2, 2022
@ehmicky ehmicky self-assigned this Feb 2, 2022
@ehmicky ehmicky merged commit d37f52d into main Feb 3, 2022
@ehmicky ehmicky deleted the chore/fix-esm-2 branch February 3, 2022 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: bug code to address defects in shipped code

2 participants