xshell 1.0.186 → 1.0.187
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.d.ts +2 -6
- package/builder.js +1 -22
- package/package.json +1 -1
package/builder.d.ts
CHANGED
|
@@ -75,9 +75,7 @@ export interface BundlerOptions {
|
|
|
75
75
|
assets?: Assets;
|
|
76
76
|
assets_root?: string;
|
|
77
77
|
template?: boolean;
|
|
78
|
-
license?:
|
|
79
|
-
ignores?: string[];
|
|
80
|
-
};
|
|
78
|
+
license?: boolean;
|
|
81
79
|
htmls?: Record<string, HtmlOptions>;
|
|
82
80
|
}
|
|
83
81
|
export declare class Bundler {
|
|
@@ -96,9 +94,7 @@ export declare class Bundler {
|
|
|
96
94
|
template: boolean;
|
|
97
95
|
globals?: BundlerOptions['globals'];
|
|
98
96
|
exclude_modules?: BundlerOptions['exclude_modules'];
|
|
99
|
-
license?:
|
|
100
|
-
ignores?: string[];
|
|
101
|
-
};
|
|
97
|
+
license?: boolean;
|
|
102
98
|
lcompiler: Lock<Webpack.Compiler>;
|
|
103
99
|
/** 通过 webpack 从入口文件打包所有依赖生成单个 index.{mjs,cjs} 文件
|
|
104
100
|
- name: 项目名称
|
package/builder.js
CHANGED
|
@@ -353,6 +353,7 @@ export class Bundler {
|
|
|
353
353
|
},
|
|
354
354
|
ignoreWarnings: [
|
|
355
355
|
/Failed to parse source map/,
|
|
356
|
+
/could not find any license file for .*. Use the licenseTextOverrides option to add the license/,
|
|
356
357
|
...target === 'nodejs' ? [
|
|
357
358
|
/Can't resolve '(bufferutil|utf-8-validate)'/
|
|
358
359
|
] : [],
|
|
@@ -414,32 +415,10 @@ export class Bundler {
|
|
|
414
415
|
})() : [],
|
|
415
416
|
...this.license ? await (async () => {
|
|
416
417
|
const { LicenseWebpackPlugin } = await import('license-webpack-plugin');
|
|
417
|
-
const ignores = new Set([
|
|
418
|
-
'xshell',
|
|
419
|
-
'react-object-model',
|
|
420
|
-
'@ant-design/icons-svg',
|
|
421
|
-
'@ant-design/pro-layout',
|
|
422
|
-
'@ant-design/pro-provider',
|
|
423
|
-
'@ant-design/pro-table',
|
|
424
|
-
'@ant-design/pro-utils',
|
|
425
|
-
'@ant-design/pro-form',
|
|
426
|
-
'@ant-design/pro-card',
|
|
427
|
-
'@ant-design/pro-field',
|
|
428
|
-
'toggle-selection',
|
|
429
|
-
'ahooks',
|
|
430
|
-
'size-sensor',
|
|
431
|
-
'client-only',
|
|
432
|
-
'only',
|
|
433
|
-
'koa-compose',
|
|
434
|
-
'cache-content-type',
|
|
435
|
-
'isarray',
|
|
436
|
-
...this.license.ignores || []
|
|
437
|
-
]);
|
|
438
418
|
return [
|
|
439
419
|
new LicenseWebpackPlugin({
|
|
440
420
|
perChunkOutput: false,
|
|
441
421
|
outputFilename: 'ThirdPartyNotice.txt',
|
|
442
|
-
excludedPackageTest: pkgname => ignores.has(pkgname),
|
|
443
422
|
})
|
|
444
423
|
];
|
|
445
424
|
})() : [],
|