Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

add ESM support #3

Merged
merged 1 commit into from
May 9, 2020
Merged

add ESM support #3

merged 1 commit into from
May 9, 2020

Conversation

giltayar
Copy link
Contributor

@giltayar giltayar commented May 8, 2020

function-names-at-a-line does not support ESM because Acorn needs a special sourceType: 'module' to be able to parse import and export.

I took the opportunity to upgrade all the dependencies to the latest (very important in the case of JS parsers, I believe), although upgrading teenytest caused some weird runtime errors, so I left it at the current version (it's a dev dependency, so not very important).

@giltayar giltayar changed the title add support for "module" export and import add ESM support May 8, 2020
@giltayar
Copy link
Contributor Author

giltayar commented May 8, 2020

@searls Please note that to continue working on teenytest ESM support, I will need this PR approved (after due comments, of course!) and published.

@giltayar
Copy link
Contributor Author

giltayar commented May 8, 2020

This also obsoletes #2 as I updated acorn to exactly that dependency, and fixed whatever needed to be fixed.

@searls searls merged commit 4bcdf40 into testdouble:master May 9, 2020
@searls
Copy link
Member

searls commented May 9, 2020

Landed in 1.1.0!

@giltayar giltayar deleted the esm-support branch May 9, 2020 03:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants