swc-project / swc-node

Faster ts-node without typecheck
MIT License
1.81k stars 76 forks source link

fix(register): fix esm entry resolver for third-party executer, close #762 #766

Closed yeliex closed 7 months ago

yeliex commented 7 months ago

Third-party executors like mocha, may import scripts with fileUrl absolute path.

This pr converts specifier from fileUrl to path.

close #762

changeset-bot[bot] commented 7 months ago

🦋 Changeset detected

Latest commit: 069b289981c0d9226de90ea0aaa428460002488c

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

yeliex commented 7 months ago

@Brooooooklyn @martinslota please take a look

weyert commented 7 months ago

@Brooooooklyn Could you cut a release for this PR?