Skip to content

Commit dd8ab2c

Browse files
author
tecvan
committed
chore: fix build warning
1 parent 85e1261 commit dd8ab2c

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@coze/api",
5+
"comment": "fix build warning",
6+
"type": "patch"
7+
}
8+
],
9+
"packageName": "@coze/api",
10+
"email": "[email protected]"
11+
}

packages/coze-js/rslib.config.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,14 @@ export default defineConfig({
3636
getLibShared('esm', false),
3737
getLibShared('cjs', true, 'ws-tools'),
3838
getLibShared('esm', false, 'ws-tools'),
39-
getLibShared('cjs', true, 'ws-tools/speech'),
39+
getLibShared('cjs', false, 'ws-tools/speech'),
4040
getLibShared('esm', false, 'ws-tools/speech'),
4141
],
42+
output: {
43+
externals: {
44+
// Optional ws dependencies - these are native modules for performance optimization
45+
bufferutil: 'bufferutil',
46+
'utf-8-validate': 'utf-8-validate',
47+
},
48+
},
4249
});

0 commit comments

Comments
 (0)