Skip to content

Conversation

@Timeless0911
Copy link
Contributor

Summary

Support import.meta.dirname and import.meta.filename in shims.cjs configuration.

  • import.meta.dirname will be replaced with __dirname in CommonJS output.
  • import.meta.filename will be replaced with __filename in CommonJS output.
  • Both default to true, consistent with import.meta.url.

Related Links

Checklist

  • Tests updated.
  • Documentation updated.

Copilot AI review requested due to automatic review settings January 9, 2026 09:42
@netlify
Copy link

netlify bot commented Jan 9, 2026

Deploy Preview for rslib ready!

Name Link
🔨 Latest commit cee0aac
🔍 Latest deploy log https://app.netlify.com/projects/rslib/deploys/6960d12b1c2ded0008b4f89c
😎 Deploy Preview https://deploy-preview-1440--rslib.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@Timeless0911 Timeless0911 changed the title feat(core): support import.meta.dirname and import.meta.filename shims feat: add import.meta.dirname / filename shims for CJS Jan 9, 2026
@Timeless0911 Timeless0911 changed the title feat: add import.meta.dirname / filename shims for CJS feat: support import.meta.dirname / filename shims for CJS Jan 9, 2026
@Timeless0911 Timeless0911 merged commit d109157 into main Jan 9, 2026
15 checks passed
@Timeless0911 Timeless0911 deleted the vk/7d00- branch January 9, 2026 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants