We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35270bb commit af7dd0cCopy full SHA for af7dd0c
scripts/build-e2e.mjs
@@ -40,8 +40,10 @@ function patchImportMeta(filePath) {
40
return;
41
}
42
43
- content = content.replace("var import_meta = {};", IMPORT_META_DECL);
44
- content = content.replaceAll('"globalSetup.ts"', '"globalSetup.js"');
+ const importMetaPattern = /var import_meta = \{\};/g;
+ if (importMetaPattern.test(content)) {
45
+ content = content.replace(importMetaPattern, IMPORT_META_DECL);
46
+ }
47
fs.writeFileSync(filePath, content, "utf8");
48
49
0 commit comments