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

ast type from getModuleInfo return value is not matched between docs and code #5303

Closed
huozhi opened this issue Dec 17, 2023 · 1 comment · Fixed by #5323
Closed

ast type from getModuleInfo return value is not matched between docs and code #5303

huozhi opened this issue Dec 17, 2023 · 1 comment · Fixed by #5323
Assignees

Comments

@huozhi
Copy link

huozhi commented Dec 17, 2023

Rollup Version

4.9.1

Operating System (or Browser)

MacOS

Node Version (if applicable)

18.17.1

Link To Reproduction

ast: AstNode | null;

Expected Behaviour

From the docs: ast has the type ast: ESTree.Program.

Actual Behaviour

The ast is using ASTNode type. it doesn't have body property on ast.
The logged out result is also Program, only the type is mismatching.

Copy link

github-actions bot commented Jan 5, 2024

This issue has been resolved via #5323 as part of rollup@4.9.3. You can test it via npm install rollup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants