Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: support TSModuleDeclaration #44

Merged

Conversation

manuel3108
Copy link
Member

No description provided.

Copy link

changeset-bot bot commented Feb 9, 2025

🦋 Changeset detected

Latest commit: f0dfd8b

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

This PR includes changesets to release 1 package
Name Type
esrap Patch

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


TSModuleDeclaration(node, state) {
if (node.declare) state.commands.push('declare ');
else state.commands.push('namespace ');
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this is a correct assumption, but I did not find any other way to extract that namspace from the AST

@dummdidumm dummdidumm merged commit b683171 into sveltejs:main Feb 11, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants