aboutsummaryrefslogtreecommitdiff
path: root/packages/bun-macro-relay/bun-macro-relay.tsx
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-09-30 23:22:28 -0700
committerGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-09-30 23:22:28 -0700
commit76b450386f3049cbfd1597975ff58ec23efdf4e0 (patch)
tree559cc7aff498c2106000325d223c4bbd34e5512d /packages/bun-macro-relay/bun-macro-relay.tsx
parent38a54898a3bd9ffc2b23b2f7d81eed612ef782d7 (diff)
downloadbun-76b450386f3049cbfd1597975ff58ec23efdf4e0.tar.gz
bun-76b450386f3049cbfd1597975ff58ec23efdf4e0.tar.zst
bun-76b450386f3049cbfd1597975ff58ec23efdf4e0.zip
Add a readme
Diffstat (limited to 'packages/bun-macro-relay/bun-macro-relay.tsx')
-rw-r--r--packages/bun-macro-relay/bun-macro-relay.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/bun-macro-relay/bun-macro-relay.tsx b/packages/bun-macro-relay/bun-macro-relay.tsx
index 88285a0c3..d6c9cb0a7 100644
--- a/packages/bun-macro-relay/bun-macro-relay.tsx
+++ b/packages/bun-macro-relay/bun-macro-relay.tsx
@@ -4,7 +4,7 @@ import { parse, print } from "graphql";
// 1. Parse the GraphQL tag.
// 2. From the parsed GraphQL query, get the AST definition.
// 3. From the AST definition, inject an import to that file inside the artifact directory
-// 4. MD5 the printed source text
+// 4. (TODO) MD5 the printed source text
// 5. (TODO) At runtime, if md5 !== import.md5, then warn the user that the query has changed
// but the file hasn't been updated so it must be reloaded.
// 6. Replace the TemplateLiteral with the default identifier from the injected import
@@ -18,6 +18,7 @@ if (process.env.BUN_MACRO_RELAY_ARTIFACT_DIRECTORY) {
artifactDirectory = process.env.BUN_MACRO_RELAY_ARTIFACT_DIRECTORY;
}
+// TODO: platform-independent path cleaning
if (!artifactDirectory.startsWith("/")) {
while (artifactDirectory.endsWith("/")) {
artifactDirectory = artifactDirectory.substring(