Skip to content

Support import.meta.dirname and import.meta.filename #781

@ahabhgk

Description

@ahabhgk

Acknowledgements

  • I read the documentation and searched existing issues to avoid duplicates
  • I understand this is a bug tracker and anything other than a proven bug will be closed
  • I understand this is a free project and relies on community contributions
  • I read and understood the Contribution guide

Minimal reproduction URL

You can reproduce with:

echo "console.log(import.meta.dirname);console.log(import.meta.filename);" > test.js
tsx test.js # undefined undefined

Problem & expected behavior (under 200 words)

I'm not sure if this has any reference value but for more context: jiti supports this by unjs/jiti#308

Bugs are expected to be fixed by those affected by it

  • I'm interested in working on this issue

Compensating engineering work will speed up resolution and support the project

  • I'm willing to offer $10 for financial support

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions