mirror of
https://github.com/dream-num/univer.git
synced 2026-09-24 15:32:18 +08:00
chore(build): add WS_NO_BUFFER_UTIL environment variable to avoid optional dependency issue (#6370)
This commit is contained in:
@@ -214,6 +214,8 @@ export async function build(options?: IBuildOptions) {
|
||||
define: {
|
||||
'process.env.NODE_ENV': JSON.stringify('production'),
|
||||
'process.env.BUILD_TIMESTAMP': JSON.stringify(Math.floor(Date.now() / 1000)),
|
||||
// for ws package to avoid optional dependency issue
|
||||
'process.env.WS_NO_BUFFER_UTIL': JSON.stringify(true),
|
||||
},
|
||||
plugins: [
|
||||
trimClassNamePlugin(),
|
||||
|
||||
Reference in New Issue
Block a user