Compare commits

...

8 Commits

Author SHA1 Message Date
Alex Yang 814103a6a6 fix: bunchee issue 2025-02-14 15:47:27 +08:00
Alex Yang cb00488a8f fix: coverage for cjs 2025-02-14 14:45:21 +08:00
Alex Yang 1b029ae525 test: add cjs smoke test (#1660) 2025-02-14 14:28:09 +08:00
Marcus Schiesser d1db2189c9 docs: update starter to ask for api key (#1661) 2025-02-14 12:14:51 +07:00
Alex Yang 2c5b4030c9 chore: bump bunchee (#1645) 2025-02-14 09:41:32 +08:00
Alex Yang 96eb597059 fix: bundler issue default in default (#1653) 2025-02-14 09:20:39 +08:00
Marcus Schiesser 04098d55ff chore: fix pnpm lock (#1658) 2025-02-13 17:49:21 +07:00
Marcus Schiesser 335a6b9e88 chore: add pathe to examples (#1657) 2025-02-13 17:44:30 +07:00
41 changed files with 349 additions and 257 deletions
+30 -11
View File
@@ -1,5 +1,7 @@
import assert from "node:assert";
import { execSync } from "node:child_process";
import { mkdir, rm, writeFile } from "node:fs/promises";
import { mkdir, readFile, rm, writeFile } from "node:fs/promises";
import { createRequire } from "node:module";
import { resolve } from "node:path";
import { test } from "node:test";
import { testRootDir } from "./utils.js";
@@ -14,17 +16,17 @@ const { Document, MetadataMode, VectorStoreIndex } = require('llamaindex')
const { OpenAIEmbedding } = require('@llamaindex/openai')
const { Settings } = require('@llamaindex/core/global')`;
const mainCode = `
async function main() {
Settings.embedModel = new OpenAIEmbedding({
model: 'text-embedding-3-small',
apiKey: '${process.env.OPENAI_API_KEY}',
})
const model = Settings.embedModel
if (model == null) {
process.exit(-1)
}
Settings.embedModel = new OpenAIEmbedding({
model: 'text-embedding-3-small',
apiKey: '${process.env.OPENAI_API_KEY}',
})
const model = Settings.embedModel
if (model == null) {
process.exit(-1)
}
main().catch(console.error)`;
const document = new Document({ text: 'Hello, world!' })
const index = await VectorStoreIndex.fromDocuments([document])
`;
t.before(async () => {
await mkdir(resolve(testRootDir, ".temp"), {
recursive: true,
@@ -84,3 +86,20 @@ main().catch(console.error)`;
});
}
});
test('no extra deps in "@llamaindex/env" cjs module', async () => {
const modules = ["@aws-crypto/sha256-js"];
const require = createRequire(import.meta.url);
const envPackage = require.resolve("@llamaindex/env");
const file = await readFile(envPackage, "utf-8");
for (const module of modules) {
assert.ok(!file.includes(module));
}
});
test('no error when require "llamaindex" in CJS', async () => {
const code = `require('llamaindex')`;
execSync(`${process.argv[0]} -e "${code}"`, {
cwd: process.cwd(),
});
});
+2
View File
@@ -18,6 +18,7 @@
"@llamaindex/clip": "^0.0.36",
"@llamaindex/cloud": "^3.0.0",
"@llamaindex/cohere": "^0.0.5",
"@llamaindex/core": "^0.5.0",
"@llamaindex/deepinfra": "^0.0.36",
"@llamaindex/env": "^0.1.27",
"@llamaindex/google": "^0.0.7",
@@ -51,6 +52,7 @@
"js-tiktoken": "^1.0.14",
"llamaindex": "^0.9.0",
"mongodb": "6.7.0",
"pathe": "^1.1.2",
"postgres": "^3.4.4",
"wikipedia": "^2.1.2"
},
+12 -2
View File
@@ -3,6 +3,18 @@ import fs from "node:fs/promises";
import { createInterface } from "node:readline/promises";
async function main() {
const rl = createInterface({ input: process.stdin, output: process.stdout });
if (!process.env.OPENAI_API_KEY) {
console.log("OpenAI API key not found in environment variables.");
console.log(
"You can get an API key at https://platform.openai.com/account/api-keys",
);
process.env.OPENAI_API_KEY = await rl.question(
"Please enter your OpenAI API key: ",
);
}
const path = "node_modules/llamaindex/examples/abramov.txt";
const essay = await fs.readFile(path, "utf-8");
const document = new Document({ text: essay, id_: path });
@@ -10,8 +22,6 @@ async function main() {
const index = await VectorStoreIndex.fromDocuments([document]);
const queryEngine = index.asQueryEngine();
const rl = createInterface({ input: process.stdin, output: process.stdout });
console.log(
"Try asking a question about the essay: https://github.com/run-llama/LlamaIndexTS/blob/main/packages/llamaindex/examples/abramov.txt",
"\nExample: When did the author graduate from high school?",
+5
View File
@@ -43,5 +43,10 @@
"eslint"
],
"*.{json,md}": "prettier --check"
},
"pnpm": {
"patchedDependencies": {
"bunchee@6.3.4": "patches/bunchee@6.3.4.patch"
}
}
}
+1 -1
View File
@@ -75,7 +75,7 @@
"@swc/types": "^0.1.12",
"@types/json-schema": "^7.0.15",
"@types/node": "^22.9.0",
"bunchee": "6.2.0",
"bunchee": "6.3.4",
"llamaindex": "workspace:*",
"next": "15.0.3",
"rollup": "^4.28.1",
+4 -13
View File
@@ -24,10 +24,7 @@
"types": "./api/dist/index.d.ts",
"default": "./api/dist/index.js"
},
"default": {
"types": "./api/dist/index.d.ts",
"default": "./api/dist/index.js"
}
"default": "./api/dist/index.js"
},
"./reader": {
"require": {
@@ -38,10 +35,7 @@
"types": "./reader/dist/index.d.ts",
"default": "./reader/dist/index.js"
},
"default": {
"types": "./reader/dist/index.d.ts",
"default": "./reader/dist/index.js"
}
"default": "./reader/dist/index.js"
},
".": {
"require": {
@@ -52,10 +46,7 @@
"types": "./reader/dist/index.d.ts",
"default": "./reader/dist/index.js"
},
"default": {
"types": "./reader/dist/index.d.ts",
"default": "./reader/dist/index.js"
}
"default": "./reader/dist/index.js"
}
},
"repository": {
@@ -68,7 +59,7 @@
"@hey-api/openapi-ts": "^0.61.0",
"@llamaindex/core": "workspace:*",
"@llamaindex/env": "workspace:*",
"bunchee": "6.2.0"
"bunchee": "6.3.4"
},
"peerDependencies": {
"@llamaindex/core": "workspace:*",
+1 -1
View File
@@ -43,7 +43,7 @@
},
"devDependencies": {
"@types/node": "^22.9.0",
"bunchee": "6.2.0"
"bunchee": "6.3.4"
},
"dependencies": {
"@aws-sdk/client-bedrock-agent-runtime": "^3.706.0",
+26 -101
View File
@@ -13,10 +13,7 @@
"types": "./agent/dist/index.d.ts",
"default": "./agent/dist/index.js"
},
"default": {
"types": "./agent/dist/index.d.ts",
"default": "./agent/dist/index.js"
}
"default": "./agent/dist/index.js"
},
"./objects": {
"require": {
@@ -27,10 +24,7 @@
"types": "./objects/dist/index.d.ts",
"default": "./objects/dist/index.js"
},
"default": {
"types": "./objects/dist/index.d.ts",
"default": "./objects/dist/index.js"
}
"default": "./objects/dist/index.js"
},
"./node-parser": {
"require": {
@@ -41,10 +35,7 @@
"types": "./node-parser/dist/index.d.ts",
"default": "./node-parser/dist/index.js"
},
"default": {
"types": "./node-parser/dist/index.d.ts",
"default": "./node-parser/dist/index.js"
}
"default": "./node-parser/dist/index.js"
},
"./query-engine": {
"require": {
@@ -55,10 +46,7 @@
"types": "./query-engine/dist/index.d.ts",
"default": "./query-engine/dist/index.js"
},
"default": {
"types": "./query-engine/dist/index.d.ts",
"default": "./query-engine/dist/index.js"
}
"default": "./query-engine/dist/index.js"
},
"./llms": {
"require": {
@@ -69,10 +57,7 @@
"types": "./llms/dist/index.d.ts",
"default": "./llms/dist/index.js"
},
"default": {
"types": "./llms/dist/index.d.ts",
"default": "./llms/dist/index.js"
}
"default": "./llms/dist/index.js"
},
"./decorator": {
"require": {
@@ -83,10 +68,7 @@
"types": "./decorator/dist/index.d.ts",
"default": "./decorator/dist/index.js"
},
"default": {
"types": "./decorator/dist/index.d.ts",
"default": "./decorator/dist/index.js"
}
"default": "./decorator/dist/index.js"
},
"./embeddings": {
"require": {
@@ -97,10 +79,7 @@
"types": "./embeddings/dist/index.d.ts",
"default": "./embeddings/dist/index.js"
},
"default": {
"types": "./embeddings/dist/index.d.ts",
"default": "./embeddings/dist/index.js"
}
"default": "./embeddings/dist/index.js"
},
"./global": {
"require": {
@@ -111,10 +90,7 @@
"types": "./global/dist/index.d.ts",
"default": "./global/dist/index.js"
},
"default": {
"types": "./global/dist/index.d.ts",
"default": "./global/dist/index.js"
}
"default": "./global/dist/index.js"
},
"./schema": {
"require": {
@@ -125,10 +101,7 @@
"types": "./schema/dist/index.d.ts",
"default": "./schema/dist/index.js"
},
"default": {
"types": "./schema/dist/index.d.ts",
"default": "./schema/dist/index.js"
}
"default": "./schema/dist/index.js"
},
"./utils": {
"require": {
@@ -139,10 +112,7 @@
"types": "./utils/dist/index.d.ts",
"default": "./utils/dist/index.js"
},
"default": {
"types": "./utils/dist/index.d.ts",
"default": "./utils/dist/index.js"
}
"default": "./utils/dist/index.js"
},
"./prompts": {
"require": {
@@ -153,10 +123,7 @@
"types": "./prompts/dist/index.d.ts",
"default": "./prompts/dist/index.js"
},
"default": {
"types": "./prompts/dist/index.d.ts",
"default": "./prompts/dist/index.js"
}
"default": "./prompts/dist/index.js"
},
"./indices": {
"require": {
@@ -167,10 +134,7 @@
"types": "./indices/dist/index.d.ts",
"default": "./indices/dist/index.js"
},
"default": {
"types": "./indices/dist/index.d.ts",
"default": "./indices/dist/index.js"
}
"default": "./indices/dist/index.js"
},
"./workflow": {
"require": {
@@ -181,10 +145,7 @@
"types": "./workflow/dist/index.d.ts",
"default": "./workflow/dist/index.js"
},
"default": {
"types": "./workflow/dist/index.d.ts",
"default": "./workflow/dist/index.js"
}
"default": "./workflow/dist/index.js"
},
"./memory": {
"require": {
@@ -195,10 +156,7 @@
"types": "./memory/dist/index.d.ts",
"default": "./memory/dist/index.js"
},
"default": {
"types": "./memory/dist/index.d.ts",
"default": "./memory/dist/index.js"
}
"default": "./memory/dist/index.js"
},
"./storage/chat-store": {
"require": {
@@ -209,10 +167,7 @@
"types": "./storage/chat-store/dist/index.d.ts",
"default": "./storage/chat-store/dist/index.js"
},
"default": {
"types": "./storage/chat-store/dist/index.d.ts",
"default": "./storage/chat-store/dist/index.js"
}
"default": "./storage/chat-store/dist/index.js"
},
"./storage/doc-store": {
"require": {
@@ -223,10 +178,7 @@
"types": "./storage/doc-store/dist/index.d.ts",
"default": "./storage/doc-store/dist/index.js"
},
"default": {
"types": "./storage/doc-store/dist/index.d.ts",
"default": "./storage/doc-store/dist/index.js"
}
"default": "./storage/doc-store/dist/index.js"
},
"./storage/index-store": {
"require": {
@@ -237,10 +189,7 @@
"types": "./storage/index-store/dist/index.d.ts",
"default": "./storage/index-store/dist/index.js"
},
"default": {
"types": "./storage/index-store/dist/index.d.ts",
"default": "./storage/index-store/dist/index.js"
}
"default": "./storage/index-store/dist/index.js"
},
"./storage/kv-store": {
"require": {
@@ -251,10 +200,7 @@
"types": "./storage/kv-store/dist/index.d.ts",
"default": "./storage/kv-store/dist/index.js"
},
"default": {
"types": "./storage/kv-store/dist/index.d.ts",
"default": "./storage/kv-store/dist/index.js"
}
"default": "./storage/kv-store/dist/index.js"
},
"./response-synthesizers": {
"require": {
@@ -265,10 +211,7 @@
"types": "./response-synthesizers/dist/index.d.ts",
"default": "./response-synthesizers/dist/index.js"
},
"default": {
"types": "./response-synthesizers/dist/index.d.ts",
"default": "./response-synthesizers/dist/index.js"
}
"default": "./response-synthesizers/dist/index.js"
},
"./chat-engine": {
"require": {
@@ -279,10 +222,7 @@
"types": "./chat-engine/dist/index.d.ts",
"default": "./chat-engine/dist/index.js"
},
"default": {
"types": "./chat-engine/dist/index.d.ts",
"default": "./chat-engine/dist/index.js"
}
"default": "./chat-engine/dist/index.js"
},
"./retriever": {
"require": {
@@ -293,10 +233,7 @@
"types": "./retriever/dist/index.d.ts",
"default": "./retriever/dist/index.js"
},
"default": {
"types": "./retriever/dist/index.d.ts",
"default": "./retriever/dist/index.js"
}
"default": "./retriever/dist/index.js"
},
"./vector-store": {
"require": {
@@ -307,10 +244,7 @@
"types": "./vector-store/dist/index.d.ts",
"default": "./vector-store/dist/index.js"
},
"default": {
"types": "./vector-store/dist/index.d.ts",
"default": "./vector-store/dist/index.js"
}
"default": "./vector-store/dist/index.js"
},
"./tools": {
"require": {
@@ -321,10 +255,7 @@
"types": "./tools/dist/index.d.ts",
"default": "./tools/dist/index.js"
},
"default": {
"types": "./tools/dist/index.d.ts",
"default": "./tools/dist/index.js"
}
"default": "./tools/dist/index.js"
},
"./data-structs": {
"require": {
@@ -335,10 +266,7 @@
"types": "./data-structs/dist/index.d.ts",
"default": "./data-structs/dist/index.js"
},
"default": {
"types": "./data-structs/dist/index.d.ts",
"default": "./data-structs/dist/index.js"
}
"default": "./data-structs/dist/index.js"
},
"./postprocessor": {
"require": {
@@ -349,10 +277,7 @@
"types": "./postprocessor/dist/index.d.ts",
"default": "./postprocessor/dist/index.js"
},
"default": {
"types": "./postprocessor/dist/index.d.ts",
"default": "./postprocessor/dist/index.js"
}
"default": "./postprocessor/dist/index.js"
}
},
"files": [
@@ -391,7 +316,7 @@
"devDependencies": {
"@edge-runtime/vm": "^4.0.4",
"ajv": "^8.17.1",
"bunchee": "6.2.0",
"bunchee": "6.3.4",
"happy-dom": "^15.11.6",
"natural": "^8.0.1"
},
+2 -2
View File
@@ -1,6 +1,6 @@
import type { BaseEmbedding } from "../embeddings/base.js";
import type { BaseEmbedding } from "../embeddings";
import { Settings } from "../global";
import type { BaseNode, ModalityType } from "../schema/node.js";
import type { BaseNode, ModalityType } from "../schema";
/**
* should compatible with npm:pg and npm:postgres
+3 -9
View File
@@ -72,10 +72,7 @@
"types": "./tokenizers/dist/index.d.cts",
"default": "./tokenizers/dist/index.cjs"
},
"default": {
"types": "./tokenizers/dist/index.d.ts",
"default": "./tokenizers/dist/index.js"
}
"default": "./tokenizers/dist/index.js"
},
"./multi-model": {
"workerd": {
@@ -98,10 +95,7 @@
"types": "./multi-model/dist/index.d.cts",
"default": "./multi-model/dist/index.cjs"
},
"default": {
"types": "./multi-model/dist/index.d.ts",
"default": "./multi-model/dist/index.js"
}
"default": "./multi-model/dist/index.js"
}
},
"files": [
@@ -125,7 +119,7 @@
"@huggingface/transformers": "^3.0.2",
"@types/node": "^22.9.0",
"@types/readable-stream": "^4.0.15",
"bunchee": "6.2.0",
"bunchee": "6.3.4",
"gpt-tokenizer": "^2.6.2",
"pathe": "^1.1.2",
"vitest": "^2.1.5"
+5 -4
View File
@@ -20,7 +20,7 @@ import { Readable } from "node:stream";
import { fileURLToPath } from "node:url";
import { createWriteStream, fs } from "./fs/node.js";
import "./global-check.js";
import { type SHA256, process } from "./node-polyfill.js";
import { type SHA256 } from "./node-polyfill.js";
export function createSHA256(): SHA256 {
const hash = createHash("sha256");
@@ -34,18 +34,19 @@ export function createSHA256(): SHA256 {
};
}
export const process = globalThis.process;
export * from "./als/index.node.js";
export { consoleLogger, emptyLogger, type Logger } from "./logger/index.js";
export { CustomEvent, getEnv, setEnvs } from "./utils/index.js";
export { NotSupportCurrentRuntimeClass } from "./utils/shared.js";
export {
EOL,
Readable,
createWriteStream,
EOL,
fileURLToPath,
fs,
ok,
path,
process,
randomUUID,
Readable,
};
+1 -1
View File
@@ -43,7 +43,7 @@
"@llamaindex/env": "workspace:*",
"@types/html-to-text": "^9.0.4",
"@types/node": "^22.9.0",
"bunchee": "6.2.0",
"bunchee": "6.3.4",
"tree-sitter": "^0.22.1",
"web-tree-sitter": "^0.24.4"
},
+1 -1
View File
@@ -31,7 +31,7 @@
"test": "vitest run"
},
"devDependencies": {
"bunchee": "6.2.0",
"bunchee": "6.3.4",
"vitest": "^2.1.5"
},
"dependencies": {
+1 -1
View File
@@ -39,7 +39,7 @@
"dev": "bunchee --watch"
},
"devDependencies": {
"bunchee": "6.2.0"
"bunchee": "6.3.4"
},
"dependencies": {
"@huggingface/transformers": "^3.0.2",
+1 -1
View File
@@ -30,7 +30,7 @@
"dev": "bunchee --watch"
},
"devDependencies": {
"bunchee": "6.2.0"
"bunchee": "6.3.4"
},
"dependencies": {
"@llamaindex/core": "workspace:*",
+1 -1
View File
@@ -30,7 +30,7 @@
"dev": "bunchee --watch"
},
"devDependencies": {
"bunchee": "6.2.0"
"bunchee": "6.3.4"
},
"dependencies": {
"@llamaindex/core": "workspace:*",
+4 -4
View File
@@ -30,12 +30,12 @@
"dev": "bunchee --watch"
},
"devDependencies": {
"bunchee": "6.2.0"
"bunchee": "6.3.4"
},
"dependencies": {
"@llamaindex/core": "workspace:*",
"@llamaindex/env": "workspace:*",
"@google-cloud/vertexai": "1.9.0",
"@google/generative-ai": "0.21.0",
"@google-cloud/vertexai": "1.9.0"
"@llamaindex/core": "workspace:*",
"@llamaindex/env": "workspace:*"
}
}
+1 -1
View File
@@ -30,7 +30,7 @@
"dev": "bunchee --watch"
},
"devDependencies": {
"bunchee": "6.2.0"
"bunchee": "6.3.4"
},
"dependencies": {
"@llamaindex/env": "workspace:*",
+1 -1
View File
@@ -39,7 +39,7 @@
"dev": "bunchee --watch"
},
"devDependencies": {
"bunchee": "6.2.0"
"bunchee": "6.3.4"
},
"dependencies": {
"@huggingface/inference": "^2.8.1",
+1 -1
View File
@@ -30,7 +30,7 @@
"dev": "bunchee --watch"
},
"devDependencies": {
"bunchee": "6.2.0"
"bunchee": "6.3.4"
},
"dependencies": {
"@llamaindex/core": "workspace:*",
+1 -1
View File
@@ -30,7 +30,7 @@
"dev": "bunchee --watch"
},
"devDependencies": {
"bunchee": "6.2.0"
"bunchee": "6.3.4"
},
"dependencies": {
"@llamaindex/core": "workspace:*",
+1 -1
View File
@@ -30,7 +30,7 @@
"dev": "bunchee --watch"
},
"devDependencies": {
"bunchee": "6.2.0"
"bunchee": "6.3.4"
},
"dependencies": {
"@llamaindex/core": "workspace:*",
+1 -1
View File
@@ -30,7 +30,7 @@
"dev": "bunchee --watch"
},
"devDependencies": {
"bunchee": "6.2.0"
"bunchee": "6.3.4"
},
"dependencies": {
"@llamaindex/core": "workspace:*",
+1 -1
View File
@@ -30,7 +30,7 @@
"dev": "bunchee --watch"
},
"devDependencies": {
"bunchee": "6.2.0"
"bunchee": "6.3.4"
},
"dependencies": {
"@llamaindex/core": "workspace:*",
+1 -1
View File
@@ -38,7 +38,7 @@
"dev": "bunchee --watch"
},
"devDependencies": {
"bunchee": "6.2.0"
"bunchee": "6.3.4"
},
"dependencies": {
"@llamaindex/core": "workspace:*",
@@ -38,11 +38,11 @@
"dev": "bunchee --watch"
},
"devDependencies": {
"bunchee": "6.2.0"
"bunchee": "6.3.4"
},
"dependencies": {
"@datastax/astra-db-ts": "^1.4.1",
"@llamaindex/core": "workspace:*",
"@llamaindex/env": "workspace:*",
"@datastax/astra-db-ts": "^1.4.1"
"@llamaindex/env": "workspace:*"
}
}
@@ -59,7 +59,7 @@
"devDependencies": {
"@llamaindex/openai": "workspace:*",
"@types/node": "^22.9.0",
"bunchee": "6.2.0",
"bunchee": "6.3.4",
"dotenv": "^16.4.7",
"vitest": "^2.1.5"
},
@@ -38,7 +38,7 @@
"dev": "bunchee --watch"
},
"devDependencies": {
"bunchee": "6.2.0"
"bunchee": "6.3.4"
},
"dependencies": {
"@llamaindex/core": "workspace:*",
@@ -40,13 +40,13 @@
},
"devDependencies": {
"@llamaindex/openai": "workspace:*",
"bunchee": "6.2.0",
"bunchee": "6.3.4",
"vitest": "^2.1.5"
},
"dependencies": {
"@grpc/grpc-js": "^1.12.2",
"@llamaindex/core": "workspace:*",
"@llamaindex/env": "workspace:*",
"@grpc/grpc-js": "^1.12.2",
"@zilliz/milvus2-sdk-node": "^2.4.6"
}
}
@@ -38,7 +38,7 @@
"dev": "bunchee --watch"
},
"devDependencies": {
"bunchee": "6.2.0"
"bunchee": "6.3.4"
},
"dependencies": {
"@llamaindex/core": "workspace:*",
@@ -38,7 +38,7 @@
"dev": "bunchee --watch"
},
"devDependencies": {
"bunchee": "6.2.0"
"bunchee": "6.3.4"
},
"dependencies": {
"@llamaindex/core": "workspace:*",
@@ -38,9 +38,9 @@
"dev": "bunchee --watch"
},
"devDependencies": {
"bunchee": "6.2.0",
"@types/pg": "^8.11.8",
"@vercel/postgres": "^0.10.0",
"bunchee": "6.3.4",
"pg": "^8.12.0",
"pgvector": "0.2.0",
"postgres": "^3.4.4"
@@ -39,9 +39,9 @@
"test": "vitest run"
},
"devDependencies": {
"bunchee": "6.2.0",
"vitest": "^2.1.5",
"@llamaindex/openai": "workspace:*"
"@llamaindex/openai": "workspace:*",
"bunchee": "6.3.4",
"vitest": "^2.1.5"
},
"dependencies": {
"@llamaindex/core": "workspace:*",
@@ -38,7 +38,7 @@
"dev": "bunchee --watch"
},
"devDependencies": {
"bunchee": "6.2.0"
"bunchee": "6.3.4"
},
"dependencies": {
"@llamaindex/core": "workspace:*",
@@ -38,7 +38,7 @@
"dev": "bunchee --watch"
},
"devDependencies": {
"bunchee": "6.2.0"
"bunchee": "6.3.4"
},
"dependencies": {
"@llamaindex/core": "workspace:*",
+1 -1
View File
@@ -38,7 +38,7 @@
"dev": "bunchee --watch"
},
"devDependencies": {
"bunchee": "6.2.0"
"bunchee": "6.3.4"
},
"dependencies": {
"@llamaindex/core": "workspace:*",
+1 -1
View File
@@ -30,7 +30,7 @@
"dev": "bunchee --watch"
},
"devDependencies": {
"bunchee": "6.2.0"
"bunchee": "6.3.4"
},
"dependencies": {
"@llamaindex/openai": "workspace:*"
+1 -1
View File
@@ -212,7 +212,7 @@
"@llamaindex/core": "workspace:*",
"@llamaindex/env": "workspace:*",
"@types/node": "^22.9.0",
"bunchee": "6.2.0",
"bunchee": "6.3.4",
"p-limit": "^6.1.0",
"string-strip-html": "^13.4.8"
},
+1 -1
View File
@@ -56,7 +56,7 @@
"devDependencies": {
"@llamaindex/env": "workspace:*",
"@types/node": "^22.9.0",
"bunchee": "6.2.0"
"bunchee": "6.3.4"
},
"peerDependencies": {
"@llamaindex/env": "workspace:*"
+134
View File
@@ -0,0 +1,134 @@
diff --git a/dist/bin/cli.js b/dist/bin/cli.js
old mode 100755
new mode 100644
index e74abd6fc8bd1853b82e9b84691d433a5152f6f5..d6c4f2a94346c29c0e65708e91cbfba1bb424998
--- a/dist/bin/cli.js
+++ b/dist/bin/cli.js
@@ -1082,7 +1082,7 @@ Options:
--runtime <runtime> build runtime (nodejs, browser). default: browser
--env <env> inlined process env variables, separate by comma. default: NODE_ENV
--cwd <cwd> specify current working directory
- --sourcemap enable sourcemap generation, default: false
+ --sourcemap enable sourcemap generation
--no-dts do not generate types, default: undefined
--tsconfig path to tsconfig file, default: tsconfig.json
--dts-bundle bundle type declaration files, default: false
@@ -1141,7 +1141,7 @@ async function parseCliArgs(argv) {
description: 'js features target: swc target es versions'
}).option('sourcemap', {
type: 'boolean',
- default: false,
+ default: undefined,
description: 'enable sourcemap generation'
}).option('env', {
type: 'string',
@@ -1196,6 +1196,10 @@ async function parseCliArgs(argv) {
env: args['env'],
tsconfig: args['tsconfig']
};
+ // When minify is enabled, sourcemap should be enabled by default, unless explicitly opted out
+ if (parsedArgs.minify && typeof args['sourcemap'] === 'undefined') {
+ parsedArgs.sourcemap = true;
+ }
return parsedArgs;
}
async function run(args) {
diff --git a/dist/index.js b/dist/index.js
index 66c0eba9bbbb68ec7308e7a7fe528c6a764e09e7..c1301712afee9c637013756b151c1c07b0f066c1 100644
--- a/dist/index.js
+++ b/dist/index.js
@@ -1308,7 +1308,7 @@ function hasNoSpecialCondition(conditionNames) {
...conditionNames
].every((name)=>!specialExportConventions.has(name));
}
-function findJsBundlePathCallback({ format, bundlePath, conditionNames }, specialCondition) {
+function findJsBundlePathCallback({ format, bundlePath, conditionNames }, specialCondition, defaultFormat) {
const hasBundle = bundlePath != null;
const formatCond = format === 'cjs' ? 'require' : 'import';
const isTypesCondName = conditionNames.has('types');
@@ -1317,8 +1317,9 @@ function findJsBundlePathCallback({ format, bundlePath, conditionNames }, specia
// if there's condition existed, check if the format condition is matched;
// if there's no condition, just return true, assuming format doesn't matter;
const isMatchedFormat = hasFormatCond ? conditionNames.has(formatCond) : true;
+ const isDefaultMatch = conditionNames.size === 1 && conditionNames.has('default') ? defaultFormat === format : true;
const isMatchedConditionWithFormat = conditionNames.has(specialCondition) || !conditionNames.has('default') && hasNoSpecialCondition(conditionNames);
- const match = isMatchedConditionWithFormat && !isTypesCondName && hasBundle && isMatchedFormat;
+ const match = isMatchedConditionWithFormat && !isTypesCondName && hasBundle && isMatchedFormat && isDefaultMatch;
if (!match) {
const fallback = runtimeExportConventionsFallback.get(specialCondition);
if (!fallback) {
@@ -1341,17 +1342,37 @@ function findTypesFileCallback({ format, bundlePath, conditionNames }) {
return isTypesCondName && hasCondition && (formatCond ? conditionNames.has(formatCond) : true);
}
// Alias entry key to dist bundle path
-function aliasEntries({ entry: sourceFilePath, conditionNames, entries, format, dts, cwd }) {
+function aliasEntries({ entry: sourceFilePath, conditionNames, entries, defaultFormat, format, dts, cwd }) {
// <imported source file path>: <relative path to source's bundle>
const sourceToRelativeBundleMap = new Map();
const specialCondition = getSpecialExportTypeFromConditionNames(conditionNames);
for (const [, exportCondition] of Object.entries(entries)){
const exportDistMaps = exportCondition.export;
- const exportMapEntries = Object.entries(exportDistMaps).map(([composedKey, bundlePath])=>({
- conditionNames: new Set(composedKey.split('.')),
+ const exportMapEntries = Object.entries(exportDistMaps).map(([composedKey, bundlePath])=>{
+ const conditionNames = new Set(composedKey.split('.'));
+ return {
+ conditionNames,
bundlePath,
- format
- }));
+ format,
+ isFallback: conditionNames.size === 1 && conditionNames.has('default')
+ };
+ }).sort((a, b)=>{
+ // Always put special condition after the general condition (default, cjs, esm)
+ if (a.conditionNames.has(specialCondition)) {
+ return -1;
+ } else if (b.conditionNames.has(specialCondition)) {
+ return 1;
+ }
+ // Always put default condition at the end.
+ // In the case of cjs resolves default(esm)
+ if (a.isFallback) {
+ return 1;
+ }
+ if (b.isFallback) {
+ return -1;
+ }
+ return 0;
+ });
let matchedBundlePath;
if (dts) {
var _exportMapEntries_find;
@@ -1369,19 +1390,10 @@ function aliasEntries({ entry: sourceFilePath, conditionNames, entries, format,
})) == null ? undefined : _exportMapEntries_find1.bundlePath;
}
} else {
- var _exportMapEntries_sort_find;
- matchedBundlePath = (_exportMapEntries_sort_find = exportMapEntries.sort(// always put special condition after the general condition (default, cjs, esm)
- (a, b)=>{
- if (a.conditionNames.has(specialCondition)) {
- return -1;
- }
- if (b.conditionNames.has(specialCondition)) {
- return 1;
- }
- return 0;
- }).find((item)=>{
- return findJsBundlePathCallback(item, specialCondition);
- })) == null ? undefined : _exportMapEntries_sort_find.bundlePath;
+ var _exportMapEntries_find2;
+ matchedBundlePath = (_exportMapEntries_find2 = exportMapEntries.find((item)=>{
+ return findJsBundlePathCallback(item, specialCondition, defaultFormat);
+ })) == null ? undefined : _exportMapEntries_find2.bundlePath;
}
if (matchedBundlePath) {
if (!sourceToRelativeBundleMap.has(exportCondition.source)) sourceToRelativeBundleMap.set(exportCondition.source, matchedBundlePath);
@@ -1546,6 +1558,7 @@ async function buildInputConfig(entry, bundleConfig, exportCondition, buildConte
entry,
entries,
format: aliasFormat,
+ defaultFormat: isESModulePackage(pkg.type) ? 'esm' : 'cjs',
conditionNames: new Set(currentConditionNames.split('.')),
dts,
cwd
+88 -77
View File
@@ -4,6 +4,11 @@ settings:
autoInstallPeers: true
excludeLinksFromLockfile: false
patchedDependencies:
bunchee@6.3.4:
hash: pavboztthlgni7m5gzw7643oru
path: patches/bunchee@6.3.4.patch
importers:
.:
@@ -592,6 +597,9 @@ importers:
'@llamaindex/cohere':
specifier: ^0.0.5
version: link:../packages/providers/cohere
'@llamaindex/core':
specifier: ^0.5.0
version: link:../packages/core
'@llamaindex/deepinfra':
specifier: ^0.0.36
version: link:../packages/providers/deepinfra
@@ -691,6 +699,9 @@ importers:
mongodb:
specifier: 6.7.0
version: 6.7.0(@aws-sdk/credential-providers@3.744.0)
pathe:
specifier: ^1.1.2
version: 1.1.2
postgres:
specifier: ^3.4.4
version: 3.4.5
@@ -762,8 +773,8 @@ importers:
specifier: ^22.9.0
version: 22.9.0
bunchee:
specifier: 6.2.0
version: 6.2.0(typescript@5.7.2)
specifier: 6.3.4
version: 6.3.4(patch_hash=pavboztthlgni7m5gzw7643oru)(typescript@5.7.2)
llamaindex:
specifier: workspace:*
version: link:../llamaindex
@@ -890,8 +901,8 @@ importers:
specifier: workspace:*
version: link:../env
bunchee:
specifier: 6.2.0
version: 6.2.0(typescript@5.7.3)
specifier: 6.3.4
version: 6.3.4(patch_hash=pavboztthlgni7m5gzw7643oru)(typescript@5.7.3)
packages/community:
dependencies:
@@ -912,8 +923,8 @@ importers:
specifier: ^22.9.0
version: 22.9.0
bunchee:
specifier: 6.2.0
version: 6.2.0(typescript@5.7.3)
specifier: 6.3.4
version: 6.3.4(patch_hash=pavboztthlgni7m5gzw7643oru)(typescript@5.7.3)
packages/core:
dependencies:
@@ -940,8 +951,8 @@ importers:
specifier: ^8.17.1
version: 8.17.1
bunchee:
specifier: 6.2.0
version: 6.2.0(typescript@5.7.3)
specifier: 6.3.4
version: 6.3.4(patch_hash=pavboztthlgni7m5gzw7643oru)(typescript@5.7.3)
happy-dom:
specifier: ^15.11.6
version: 15.11.7
@@ -977,8 +988,8 @@ importers:
specifier: ^4.0.15
version: 4.0.18
bunchee:
specifier: 6.2.0
version: 6.2.0(typescript@5.7.3)
specifier: 6.3.4
version: 6.3.4(patch_hash=pavboztthlgni7m5gzw7643oru)(typescript@5.7.3)
gpt-tokenizer:
specifier: ^2.6.2
version: 2.8.1
@@ -1106,8 +1117,8 @@ importers:
specifier: ^22.9.0
version: 22.9.0
bunchee:
specifier: 6.2.0
version: 6.2.0(typescript@5.7.3)
specifier: 6.3.4
version: 6.3.4(patch_hash=pavboztthlgni7m5gzw7643oru)(typescript@5.7.3)
tree-sitter:
specifier: ^0.22.1
version: 0.22.4
@@ -1131,8 +1142,8 @@ importers:
version: 2.20.1
devDependencies:
bunchee:
specifier: 6.2.0
version: 6.2.0(typescript@5.7.3)
specifier: 6.3.4
version: 6.3.4(patch_hash=pavboztthlgni7m5gzw7643oru)(typescript@5.7.3)
vitest:
specifier: ^2.1.5
version: 2.1.5(@edge-runtime/vm@4.0.4)(@types/node@22.9.0)(happy-dom@15.11.7)(msw@2.7.0(@types/node@22.9.0)(typescript@5.7.3))(terser@5.38.2)
@@ -1153,8 +1164,8 @@ importers:
version: link:../openai
devDependencies:
bunchee:
specifier: 6.2.0
version: 6.2.0(typescript@5.7.3)
specifier: 6.3.4
version: 6.3.4(patch_hash=pavboztthlgni7m5gzw7643oru)(typescript@5.7.3)
packages/providers/cohere:
dependencies:
@@ -1169,8 +1180,8 @@ importers:
version: 7.14.0
devDependencies:
bunchee:
specifier: 6.2.0
version: 6.2.0(typescript@5.7.3)
specifier: 6.3.4
version: 6.3.4(patch_hash=pavboztthlgni7m5gzw7643oru)(typescript@5.7.3)
packages/providers/deepinfra:
dependencies:
@@ -1185,8 +1196,8 @@ importers:
version: link:../openai
devDependencies:
bunchee:
specifier: 6.2.0
version: 6.2.0(typescript@5.7.3)
specifier: 6.3.4
version: 6.3.4(patch_hash=pavboztthlgni7m5gzw7643oru)(typescript@5.7.3)
packages/providers/google:
dependencies:
@@ -1204,8 +1215,8 @@ importers:
version: link:../../env
devDependencies:
bunchee:
specifier: 6.2.0
version: 6.2.0(typescript@5.7.3)
specifier: 6.3.4
version: 6.3.4(patch_hash=pavboztthlgni7m5gzw7643oru)(typescript@5.7.3)
packages/providers/groq:
dependencies:
@@ -1220,8 +1231,8 @@ importers:
version: 0.8.0
devDependencies:
bunchee:
specifier: 6.2.0
version: 6.2.0(typescript@5.7.3)
specifier: 6.3.4
version: 6.3.4(patch_hash=pavboztthlgni7m5gzw7643oru)(typescript@5.7.3)
packages/providers/huggingface:
dependencies:
@@ -1242,8 +1253,8 @@ importers:
version: link:../openai
devDependencies:
bunchee:
specifier: 6.2.0
version: 6.2.0(typescript@5.7.3)
specifier: 6.3.4
version: 6.3.4(patch_hash=pavboztthlgni7m5gzw7643oru)(typescript@5.7.3)
packages/providers/mistral:
dependencies:
@@ -1258,8 +1269,8 @@ importers:
version: 1.5.0(zod@3.24.2)
devDependencies:
bunchee:
specifier: 6.2.0
version: 6.2.0(typescript@5.7.3)
specifier: 6.3.4
version: 6.3.4(patch_hash=pavboztthlgni7m5gzw7643oru)(typescript@5.7.3)
packages/providers/mixedbread:
dependencies:
@@ -1274,8 +1285,8 @@ importers:
version: 2.2.11
devDependencies:
bunchee:
specifier: 6.2.0
version: 6.2.0(typescript@5.7.3)
specifier: 6.3.4
version: 6.3.4(patch_hash=pavboztthlgni7m5gzw7643oru)(typescript@5.7.3)
packages/providers/ollama:
dependencies:
@@ -1293,8 +1304,8 @@ importers:
version: 2.20.1
devDependencies:
bunchee:
specifier: 6.2.0
version: 6.2.0(typescript@5.7.3)
specifier: 6.3.4
version: 6.3.4(patch_hash=pavboztthlgni7m5gzw7643oru)(typescript@5.7.3)
packages/providers/openai:
dependencies:
@@ -1309,8 +1320,8 @@ importers:
version: 4.83.0(ws@8.18.0(bufferutil@4.0.9))(zod@3.24.2)
devDependencies:
bunchee:
specifier: 6.2.0
version: 6.2.0(typescript@5.7.3)
specifier: 6.3.4
version: 6.3.4(patch_hash=pavboztthlgni7m5gzw7643oru)(typescript@5.7.3)
packages/providers/portkey-ai:
dependencies:
@@ -1328,8 +1339,8 @@ importers:
version: 2.20.1
devDependencies:
bunchee:
specifier: 6.2.0
version: 6.2.0(typescript@5.7.3)
specifier: 6.3.4
version: 6.3.4(patch_hash=pavboztthlgni7m5gzw7643oru)(typescript@5.7.3)
packages/providers/replicate:
dependencies:
@@ -1344,8 +1355,8 @@ importers:
version: 1.0.1
devDependencies:
bunchee:
specifier: 6.2.0
version: 6.2.0(typescript@5.7.3)
specifier: 6.3.4
version: 6.3.4(patch_hash=pavboztthlgni7m5gzw7643oru)(typescript@5.7.3)
packages/providers/storage/astra:
dependencies:
@@ -1360,8 +1371,8 @@ importers:
version: link:../../../env
devDependencies:
bunchee:
specifier: 6.2.0
version: 6.2.0(typescript@5.7.3)
specifier: 6.3.4
version: 6.3.4(patch_hash=pavboztthlgni7m5gzw7643oru)(typescript@5.7.3)
packages/providers/storage/azure:
dependencies:
@@ -1391,8 +1402,8 @@ importers:
specifier: ^22.9.0
version: 22.9.0
bunchee:
specifier: 6.2.0
version: 6.2.0(typescript@5.7.3)
specifier: 6.3.4
version: 6.3.4(patch_hash=pavboztthlgni7m5gzw7643oru)(typescript@5.7.3)
dotenv:
specifier: ^16.4.7
version: 16.4.7
@@ -1416,8 +1427,8 @@ importers:
version: 2.13.2
devDependencies:
bunchee:
specifier: 6.2.0
version: 6.2.0(typescript@5.7.3)
specifier: 6.3.4
version: 6.3.4(patch_hash=pavboztthlgni7m5gzw7643oru)(typescript@5.7.3)
packages/providers/storage/milvus:
dependencies:
@@ -1438,8 +1449,8 @@ importers:
specifier: workspace:*
version: link:../../openai
bunchee:
specifier: 6.2.0
version: 6.2.0(typescript@5.7.3)
specifier: 6.3.4
version: 6.3.4(patch_hash=pavboztthlgni7m5gzw7643oru)(typescript@5.7.3)
vitest:
specifier: ^2.1.5
version: 2.1.5(@edge-runtime/vm@4.0.4)(@types/node@22.9.0)(happy-dom@15.11.7)(msw@2.7.0(@types/node@22.9.0)(typescript@5.7.3))(terser@5.38.2)
@@ -1457,8 +1468,8 @@ importers:
version: 6.7.0(@aws-sdk/credential-providers@3.744.0)
devDependencies:
bunchee:
specifier: 6.2.0
version: 6.2.0(typescript@5.7.3)
specifier: 6.3.4
version: 6.3.4(patch_hash=pavboztthlgni7m5gzw7643oru)(typescript@5.7.3)
packages/providers/storage/pinecone:
dependencies:
@@ -1473,8 +1484,8 @@ importers:
version: 4.1.0
devDependencies:
bunchee:
specifier: 6.2.0
version: 6.2.0(typescript@5.7.3)
specifier: 6.3.4
version: 6.3.4(patch_hash=pavboztthlgni7m5gzw7643oru)(typescript@5.7.3)
packages/providers/storage/postgres:
dependencies:
@@ -1498,8 +1509,8 @@ importers:
specifier: ^0.10.0
version: 0.10.0
bunchee:
specifier: 6.2.0
version: 6.2.0(typescript@5.7.3)
specifier: 6.3.4
version: 6.3.4(patch_hash=pavboztthlgni7m5gzw7643oru)(typescript@5.7.3)
pgvector:
specifier: 0.2.0
version: 0.2.0
@@ -1523,8 +1534,8 @@ importers:
specifier: workspace:*
version: link:../../openai
bunchee:
specifier: 6.2.0
version: 6.2.0(typescript@5.7.3)
specifier: 6.3.4
version: 6.3.4(patch_hash=pavboztthlgni7m5gzw7643oru)(typescript@5.7.3)
vitest:
specifier: ^2.1.5
version: 2.1.5(@edge-runtime/vm@4.0.4)(@types/node@22.9.0)(happy-dom@15.11.7)(msw@2.7.0(@types/node@22.9.0)(typescript@5.7.3))(terser@5.38.2)
@@ -1542,8 +1553,8 @@ importers:
version: 1.2.0
devDependencies:
bunchee:
specifier: 6.2.0
version: 6.2.0(typescript@5.7.3)
specifier: 6.3.4
version: 6.3.4(patch_hash=pavboztthlgni7m5gzw7643oru)(typescript@5.7.3)
packages/providers/storage/weaviate:
dependencies:
@@ -1558,8 +1569,8 @@ importers:
version: 3.3.6
devDependencies:
bunchee:
specifier: 6.2.0
version: 6.2.0(typescript@5.7.3)
specifier: 6.3.4
version: 6.3.4(patch_hash=pavboztthlgni7m5gzw7643oru)(typescript@5.7.3)
packages/providers/vercel:
dependencies:
@@ -1574,8 +1585,8 @@ importers:
version: 3.24.2
devDependencies:
bunchee:
specifier: 6.2.0
version: 6.2.0(typescript@5.7.3)
specifier: 6.3.4
version: 6.3.4(patch_hash=pavboztthlgni7m5gzw7643oru)(typescript@5.7.3)
packages/providers/vllm:
dependencies:
@@ -1584,8 +1595,8 @@ importers:
version: link:../openai
devDependencies:
bunchee:
specifier: 6.2.0
version: 6.2.0(typescript@5.7.3)
specifier: 6.3.4
version: 6.3.4(patch_hash=pavboztthlgni7m5gzw7643oru)(typescript@5.7.3)
packages/readers:
dependencies:
@@ -1633,8 +1644,8 @@ importers:
specifier: ^22.9.0
version: 22.9.0
bunchee:
specifier: 6.2.0
version: 6.2.0(typescript@5.7.3)
specifier: 6.3.4
version: 6.3.4(patch_hash=pavboztthlgni7m5gzw7643oru)(typescript@5.7.3)
p-limit:
specifier: ^6.1.0
version: 6.2.0
@@ -1673,8 +1684,8 @@ importers:
specifier: ^22.9.0
version: 22.9.0
bunchee:
specifier: 6.2.0
version: 6.2.0(typescript@5.7.3)
specifier: 6.3.4
version: 6.3.4(patch_hash=pavboztthlgni7m5gzw7643oru)(typescript@5.7.3)
unit:
dependencies:
@@ -4203,8 +4214,8 @@ packages:
rollup:
optional: true
'@rollup/plugin-node-resolve@15.3.1':
resolution: {integrity: sha512-tgg6b91pAybXHJQMAAwW9VuWBO6Thi+q7BCNARLwSqlmsHz0XYURtGvh/AuwSADXSI4h/2uHbs7s4FzlZDGSGA==}
'@rollup/plugin-node-resolve@16.0.0':
resolution: {integrity: sha512-0FPvAeVUT/zdWoO0jnb/V5BlBsUSNfkIOtFHzMO4H9MOklrmQFY6FduVHKucNb/aTFxvnGhj4MNj/T1oNdDfNg==}
engines: {node: '>=14.0.0'}
peerDependencies:
rollup: ^2.78.0||^3.0.0||^4.0.0
@@ -5802,8 +5813,8 @@ packages:
resolution: {integrity: sha512-WDtdLmJvAuNNPzByAYpRo2rF1Mmradw6gvWsQKf63476DDXmomT9zUiGypLcG4ibIM67vhAj8jJRdbmEws2Aqw==}
engines: {node: '>=6.14.2'}
bunchee@6.2.0:
resolution: {integrity: sha512-kdZrbi+JFFm5ZsOqwXoYFG/783oiJc7gYAOiHrMr1r0NQJdmcDwadX+HHoczti3+VjLKmBqf+lzyvbDruG5f/Q==}
bunchee@6.3.4:
resolution: {integrity: sha512-bMy2/+tdMPXOqBAX+9BI0HTNjOXOZ2TXjgFpp5Prt0ztP15xQQUcsECnU7wuBPpLH+4id3rXakH9icdbBRZHZQ==}
engines: {node: '>= 18.0.0'}
hasBin: true
peerDependencies:
@@ -14388,7 +14399,7 @@ snapshots:
optionalDependencies:
rollup: 4.34.6
'@rollup/plugin-node-resolve@15.3.1(rollup@4.34.6)':
'@rollup/plugin-node-resolve@16.0.0(rollup@4.34.6)':
dependencies:
'@rollup/pluginutils': 5.1.4(rollup@4.34.6)
'@types/resolve': 1.20.2
@@ -16408,18 +16419,18 @@ snapshots:
dependencies:
node-gyp-build: 4.8.4
bunchee@6.2.0(typescript@5.7.2):
bunchee@6.3.4(patch_hash=pavboztthlgni7m5gzw7643oru)(typescript@5.7.2):
dependencies:
'@rollup/plugin-commonjs': 28.0.2(rollup@4.34.6)
'@rollup/plugin-json': 6.1.0(rollup@4.34.6)
'@rollup/plugin-node-resolve': 15.3.1(rollup@4.34.6)
'@rollup/plugin-node-resolve': 16.0.0(rollup@4.34.6)
'@rollup/plugin-replace': 6.0.2(rollup@4.34.6)
'@rollup/plugin-wasm': 6.2.2(rollup@4.34.6)
'@rollup/pluginutils': 5.1.4(rollup@4.34.6)
'@swc/core': 1.10.15(@swc/helpers@0.5.15)
'@swc/helpers': 0.5.15
clean-css: 5.3.3
glob: 11.0.1
fast-glob: 3.3.3
magic-string: 0.30.17
ora: 8.2.0
picomatch: 4.0.2
@@ -16433,18 +16444,18 @@ snapshots:
optionalDependencies:
typescript: 5.7.2
bunchee@6.2.0(typescript@5.7.3):
bunchee@6.3.4(patch_hash=pavboztthlgni7m5gzw7643oru)(typescript@5.7.3):
dependencies:
'@rollup/plugin-commonjs': 28.0.2(rollup@4.34.6)
'@rollup/plugin-json': 6.1.0(rollup@4.34.6)
'@rollup/plugin-node-resolve': 15.3.1(rollup@4.34.6)
'@rollup/plugin-node-resolve': 16.0.0(rollup@4.34.6)
'@rollup/plugin-replace': 6.0.2(rollup@4.34.6)
'@rollup/plugin-wasm': 6.2.2(rollup@4.34.6)
'@rollup/pluginutils': 5.1.4(rollup@4.34.6)
'@swc/core': 1.10.15(@swc/helpers@0.5.15)
'@swc/helpers': 0.5.15
clean-css: 5.3.3
glob: 11.0.1
fast-glob: 3.3.3
magic-string: 0.30.17
ora: 8.2.0
picomatch: 4.0.2