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

refactor: future-proof Acorn parsing in Rollup treeshake #22

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

brodybits
Copy link
Owner

part of minor release (#18)

Copy link
Owner Author

@brodybits brodybits left a comment

Choose a reason for hiding this comment

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

It would be ideal to add a test case to verify that this improvement does not go away with possible future refactoring.

@@ -55,7 +55,7 @@ export const treeshakeWithRollup = (code: string): Promise<Output> => {
.then((result): Output => {
const ast = parse(result.code, {
sourceType: "module",
ecmaVersion: 2020,
ecmaVersion: "latest",
Copy link
Owner Author

Choose a reason for hiding this comment

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

test case wanted for this

@brodybits brodybits marked this pull request as draft January 24, 2023 23:07
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.

None yet

1 participant