Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

chore(frontend): verify the jspm fs tripwire against a module that ships (#122354)

Paul D'Ambra7615ca9dbe5a
diff --git a/frontend/bin/check-eager-graph.mjs b/frontend/bin/check-eager-graph.mjs
index 076f11ec9cb8..2cf76c983ec3 100644
--- a/frontend/bin/check-eager-graph.mjs
+++ b/frontend/bin/check-eager-graph.mjs
@@ -219,7 +219,10 @@ const ROOTS = [
'src/scenes/settings/SettingsMap.tsx',
// A browser cannot read files. The polyfill plugin in common/esbuilder/utils.mjs stubs out
// fs and fs/promises, and a hit means a library's file reader pulled in the jspm fs polyfill.
- '@jspm/core/nodelibs/browser/fs',
+ {
+ pattern: '@jspm/core/nodelibs/browser/fs',
+ verifyPrefix: '@jspm/core/nodelibs/browser/',
+ },
],
},
]