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

Include Imports from Web Accessible Scripts in Manifest v3 #41

Merged
merged 2 commits into from
Aug 31, 2022

Conversation

blake-regalia
Copy link
Contributor

This fix ensures that imported resources from web accessible scripts are included as web accessible resources in the output manifest. The manifestV2.ts parser is already doing this the correct way.

To keep the code simple and readable, this approach uses flatMap to replace the struct.resources array. This is why resourceFileName is returned if the resource is not a script (otherwise non-script resources would be omitted from the output manifest).

@samrum samrum merged commit 65d52f5 into samrum:main Aug 31, 2022
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