diff --git a/libs/langchain-scripts/package.json b/libs/langchain-scripts/package.json index ffa7187fece6..4604ffd0d20e 100644 --- a/libs/langchain-scripts/package.json +++ b/libs/langchain-scripts/package.json @@ -38,6 +38,7 @@ "author": "LangChain", "license": "MIT", "dependencies": { + "@rollup/wasm-node": "^4.19.0", "axios": "^1.6.7", "commander": "^11.1.0", "glob": "^10.3.10", diff --git a/libs/langchain-scripts/src/build_v2.ts b/libs/langchain-scripts/src/build_v2.ts index a07ae6ec9074..a204b0e96fa2 100644 --- a/libs/langchain-scripts/src/build_v2.ts +++ b/libs/langchain-scripts/src/build_v2.ts @@ -3,7 +3,8 @@ import ts from "typescript"; import fs from "node:fs"; import { rimraf } from "rimraf"; import { Command } from "commander"; -import { rollup } from "rollup"; +// import { rollup } from "rollup"; +import { rollup } from "@rollup/wasm-node"; import path from "node:path"; import { ExportsMapValue, ImportData, LangChainConfig } from "./types.js"; diff --git a/yarn.lock b/yarn.lock index 3c34ea815cab..62e43c12c718 100644 --- a/yarn.lock +++ b/yarn.lock @@ -11687,6 +11687,7 @@ __metadata: resolution: "@langchain/scripts@workspace:libs/langchain-scripts" dependencies: "@jest/globals": ^29.5.0 + "@rollup/wasm-node": ^4.19.0 "@swc/core": ^1.3.90 "@swc/jest": ^0.2.29 "@tsconfig/recommended": ^1.0.3 @@ -13184,6 +13185,21 @@ __metadata: languageName: node linkType: hard +"@rollup/wasm-node@npm:^4.19.0": + version: 4.19.0 + resolution: "@rollup/wasm-node@npm:4.19.0" + dependencies: + "@types/estree": 1.0.5 + fsevents: ~2.3.2 + dependenciesMeta: + fsevents: + optional: true + bin: + rollup: dist/bin/rollup + checksum: c84a1e35296b95a80d9b587d8632ddb518083213548caf1292a782794a7439921d224deaa99a7f14cede99ce15a60d03ab6c7b2e4f41c5746002c521dbcba555 + languageName: node + linkType: hard + "@rushstack/eslint-patch@npm:^1.3.3": version: 1.5.1 resolution: "@rushstack/eslint-patch@npm:1.5.1" @@ -16979,6 +16995,13 @@ __metadata: languageName: node linkType: hard +"@types/estree@npm:1.0.5": + version: 1.0.5 + resolution: "@types/estree@npm:1.0.5" + checksum: dd8b5bed28e6213b7acd0fb665a84e693554d850b0df423ac8076cc3ad5823a6bc26b0251d080bdc545af83179ede51dd3f6fa78cad2c46ed1f29624ddf3e41a + languageName: node + linkType: hard + "@types/estree@npm:^1.0.0": version: 1.0.1 resolution: "@types/estree@npm:1.0.1"