xshell 1.0.187 → 1.0.189

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.
Files changed (2) hide show
  1. package/builder.js +9 -6
  2. package/package.json +1 -1
package/builder.js CHANGED
@@ -352,14 +352,17 @@ export class Bundler {
352
352
  } : {}
353
353
  },
354
354
  ignoreWarnings: [
355
- /Failed to parse source map/,
356
- /could not find any license file for .*. Use the licenseTextOverrides option to add the license/,
355
+ ...this.source_map ? [/Failed to parse source map/] : [],
356
+ ...this.license ? [
357
+ /** LicenseWebpackPlugin 会添加过时的 string 类型的 warning,无法被正则表达式的逻辑匹配,这里只能手动用函数过滤 */
358
+ (warning) => typeof warning === 'string' && warning.startsWith('license-webpack-plugin: could not find any license ')
359
+ ] : [],
357
360
  ...target === 'nodejs' ? [
358
- /Can't resolve '(bufferutil|utf-8-validate)'/
361
+ /Can't resolve '(bufferutil|utf-8-validate)'/,
362
+ // 打包 ali-oss 时可能的报错
363
+ (warning) => warning.message?.includes('the request of a dependency is an expression') &&
364
+ warning.module?.context?.endsWith('any-promise')
359
365
  ] : [],
360
- // 打包 ali-oss 时可能的报错
361
- warning => warning.message?.includes('the request of a dependency is an expression') &&
362
- warning.module?.context?.endsWith('any-promise')
363
366
  ],
364
367
  performance: {
365
368
  hints: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xshell",
3
- "version": "1.0.187",
3
+ "version": "1.0.189",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "bin": {