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 web_resources match patterns #178

Merged

Conversation

karaggeorge
Copy link
Contributor

@karaggeorge karaggeorge commented Sep 12, 2024

Fixes #177

@@ -64,7 +65,7 @@ export class WebResourcesPlugin {
resources: resources.filter(
(resource) => !resource.endsWith('.map')
),
matches
matches: cleanMatches(matches),
Copy link
Member

Choose a reason for hiding this comment

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

could you write a comment on top of this with the reasoning of why this is needed? this is for future reference.

if you're feeling adventurous, would love to have the first test for the feature-web-resources plugin. It's mainly creating a __spec__/clean-matches.spec.ts file with some edge cases. I'm using tests/comments as a reference to populate the new docs.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added a comment and some tests 👍

Copy link

pkg-pr-new bot commented Sep 14, 2024

Open in Stackblitz

pnpm add https://pkg.pr.new/extension-js/extension.js/extension-create@178
pnpm add https://pkg.pr.new/extension-js/extension.js/extension@178
pnpm add https://pkg.pr.new/extension-js/extension.js/extension-develop@178

commit: 8422f56

Copy link
Member

@cezaraugusto cezaraugusto left a comment

Choose a reason for hiding this comment

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

Thanks for the patch and tests! Looking great

@cezaraugusto cezaraugusto merged commit 85d2bc0 into extension-js:main Sep 14, 2024
2 checks passed
@cezaraugusto
Copy link
Member

Available in v2.0.0-alpha.28

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.

Malformed web_accessible_resources in generated manifest.json
2 participants