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: getDepsFromBundle now walks an AST #344

Merged
merged 1 commit into from
Jul 21, 2022

Conversation

webdeveric
Copy link
Collaborator

I noticed getDepsFromBundle() was not finding dynamic imports using import().

I've updated the code to use acorn and acorn-walk to find dependencies imported using import 'XXX', import('XXX'), and require('XXX').

- `acorn` and `acorn-walk` are used to find `import` and `require`
@samchungy
Copy link
Collaborator

Awesome - much better than our hacky regex 👍

@floydspace floydspace changed the base branch from master to release/v1.32.4 July 21, 2022 09:08
@floydspace floydspace merged commit 3ed99f7 into floydspace:release/v1.32.4 Jul 21, 2022
@github-actions
Copy link

🎉 This PR is included in version 1.32.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

None yet

3 participants