Skip to content

Commit c9c6486

Browse files
authored
fix(mcp): fix bundle (#1001)
1 parent 5ac8b69 commit c9c6486

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

packages/mcp/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@
3838
"zod": "3.24.3"
3939
},
4040
"dependencies": {
41-
"puppeteer": "24.2.0"
41+
"puppeteer": "24.2.0",
42+
"sharp": "0.33.5"
4243
},
4344
"license": "MIT"
4445
}

packages/mcp/rslib.config.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,19 @@ export default defineConfig({
4141
},
4242
output: {
4343
copy: [{ from: path.join(__dirname, '../../apps/site/docs/en/api.mdx') }],
44+
externals: [
45+
(data, cb) => {
46+
if (
47+
data.context?.includes('/node_modules/ws/lib') &&
48+
['bufferutil', 'utf-8-validate'].includes(data.request as string)
49+
) {
50+
cb(undefined, data.request);
51+
}
52+
cb();
53+
},
54+
'@silvia-odwyer/photon',
55+
'@silvia-odwyer/photon-node',
56+
],
4457
},
4558
lib: [
4659
{

pnpm-lock.yaml

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)