xshell 1.3.15 → 1.3.16

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 +10 -6
  2. package/package.json +1 -1
package/builder.js CHANGED
@@ -2,7 +2,7 @@ import { fileURLToPath } from 'node:url';
2
2
  import { not_empty } from "./prototype.js";
3
3
  import { noprint } from "./process.js";
4
4
  import { Lock, filter_values } from "./utils.js";
5
- import { fcopy, fmkdir, fwrite, fread, print_info, ramdisk } from "./file.js";
5
+ import { fcopy, fmkdir, fwrite, print_info, ramdisk } from "./file.js";
6
6
  import { path } from "./path.js";
7
7
  const get_target = (production) => production ? 'production' : 'development';
8
8
  function get_react_js(production, src, map) {
@@ -692,11 +692,15 @@ export class Bundler {
692
692
  .map(fcopy_asset))) : []
693
693
  ]);
694
694
  // antd 需要修复 this, 才能在 module 下正常加载
695
- if (this.single_js && (_dependencies.includes('antd') || _dependencies.includes('antd-icons'))) {
696
- const fp_out = `${fpd_out}vendors/${dependencies.antd[production ? 'productions' : 'devs'][0]}`;
697
- await fwrite(fp_out, (await fread(fp_out, noprint))
698
- .replace(')(this,', ')(globalThis,'), noprint);
699
- }
695
+ // if (this.single_js && (_dependencies.includes('antd') || _dependencies.includes('antd-icons'))) {
696
+ // const fp_out = `${fpd_out}vendors/${dependencies.antd[production ? 'productions' : 'devs'][0]}`
697
+ //
698
+ // await fwrite(
699
+ // fp_out,
700
+ // (await fread(fp_out, noprint))
701
+ // .replace(')(this,', ')(globalThis,'),
702
+ // noprint)
703
+ // }
700
704
  }
701
705
  /** 为空时返回空数组 */
702
706
  resolve_config(config, production) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xshell",
3
- "version": "1.3.15",
3
+ "version": "1.3.16",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "bin": {