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

chore: disable use_dynamic_url as Chrome 130 is obviously not ready for it #22

Merged
merged 1 commit into from
Oct 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@
"overrides": {
"@webcomponents/custom-elements": "link:./empty",
"[email protected]": "^2.79.2"
},
"patchedDependencies": {
"@crxjs/vite-plugin": "patches/@crxjs__vite-plugin.patch"
}
}
}
21 changes: 21 additions & 0 deletions patches/@crxjs__vite-plugin.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
diff --git a/dist/index.mjs b/dist/index.mjs
index c543f3e83ffb5210495ac735f9a906e59b9da491..d40cc9536ff6491702a7ae40b85a024f88a1adef 100644
--- a/dist/index.mjs
+++ b/dist/index.mjs
@@ -1838,8 +1838,6 @@ const pluginWebAccessibleResources = () => {
matches: ["<all_urls>"],
// all resources are web accessible
resources: ["**/*", "*"],
- // change the extension origin on every reload
- use_dynamic_url: true
};
if (browser === "firefox") {
delete war.use_dynamic_url;
@@ -1921,7 +1919,6 @@ const pluginWebAccessibleResources = () => {
const resource = {
matches: isDynamicScript ? [...dynamicScriptMatches] : matches,
resources: [...assets, ...imports],
- use_dynamic_url: isDynamicScript ? dynamicScriptDynamicUrl : true
};
if (isDynamicScript || !injectCss) {
resource.resources.push(...css);
9 changes: 7 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.