xshell 1.1.19 → 1.1.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/builder.js +15 -4
- package/package.json +1 -1
package/builder.js
CHANGED
|
@@ -386,10 +386,21 @@ export class Bundler {
|
|
|
386
386
|
...target === 'nodejs' ? [
|
|
387
387
|
/Can't resolve '(bufferutil|utf-8-validate)'/,
|
|
388
388
|
// 打包 ali-oss 时可能的报错
|
|
389
|
-
(warning) =>
|
|
390
|
-
(warning
|
|
391
|
-
|
|
392
|
-
|
|
389
|
+
(warning) => {
|
|
390
|
+
if (!warning)
|
|
391
|
+
return false;
|
|
392
|
+
const { message, module } = warning;
|
|
393
|
+
if (!message)
|
|
394
|
+
return false;
|
|
395
|
+
const fp = module?.context?.fp || '';
|
|
396
|
+
if (message.includes('the request of a dependency is an expression'))
|
|
397
|
+
return fp.endsWith('any-promise') ||
|
|
398
|
+
fp.includes('/@sqltools/base-driver/');
|
|
399
|
+
else if (message.includes('require function is used in a way in which dependencies cannot be statically extracted'))
|
|
400
|
+
return fp.includes('/vscode-languageserver-types/');
|
|
401
|
+
else
|
|
402
|
+
return false;
|
|
403
|
+
}
|
|
393
404
|
] : [],
|
|
394
405
|
],
|
|
395
406
|
performance: {
|