Skip to content

Commit

Permalink
Fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoblee93 committed Jul 23, 2024
1 parent cc89918 commit 022a541
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libs/langchain-scripts/src/build_v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -466,8 +466,9 @@ async function checkTreeShaking(config: LangChainConfig) {
const entrypointContent = fs.readFileSync(entrypoint);
// Allow escaping side effects strictly within code directly
// within an entrypoints
hasUnexpectedSideEffects =
!entrypointContent.toString().includes("/* __LC_ALLOW_ENTRYPOINT_SIDE_EFFECTS__ */");
hasUnexpectedSideEffects = !entrypointContent
.toString()
.includes("/* __LC_ALLOW_ENTRYPOINT_SIDE_EFFECTS__ */");
}
reportMap.set(entrypoint, {
log: sideEffects,
Expand Down

0 comments on commit 022a541

Please sign in to comment.