diff --git a/e2e/gm-api.spec.ts b/e2e/gm-api.spec.ts index 9e30f5ddc..ddde20a68 100644 --- a/e2e/gm-api.spec.ts +++ b/e2e/gm-api.spec.ts @@ -154,6 +154,16 @@ async function startGMApiMockServer(): Promise { return; } + if (url.pathname === "/module-lib.js") { + // 供 script_module_e2e_test.js 静态 `import ... from` 使用,验证注入的确是可被浏览器 + // 当作 ES module 解析执行的