@umijs/bundler-utils 4.0.29 → 4.0.30

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/dist/https.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  /// <reference types="node" />
2
+ /// <reference types="node" />
2
3
  import { RequestListener } from 'http';
3
4
  import { HttpsServerOptions } from './types';
4
5
  export type { Server as SpdyServer } from 'spdy';
package/dist/index.js CHANGED
@@ -47,10 +47,16 @@ function parseModuleSync(opts) {
47
47
  }).code;
48
48
  } catch (e) {
49
49
  prettyPrintEsBuildErrors(e.errors, opts);
50
- throw Error(`transform ${opts.path} failed`);
50
+ import_utils.logger.error(`transform ${opts.path} failed`);
51
+ throw e;
51
52
  }
52
53
  }
53
- return (0, import_es_module_lexer.parse)(content);
54
+ try {
55
+ return (0, import_es_module_lexer.parse)(content);
56
+ } catch (e) {
57
+ import_utils.logger.error(`parse ${opts.path} failed`);
58
+ throw e;
59
+ }
54
60
  }
55
61
  function isDepPath(path) {
56
62
  const umiMonorepoPaths = ["umi/packages/", "umi-next/packages/"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umijs/bundler-utils",
3
- "version": "4.0.29",
3
+ "version": "4.0.30",
4
4
  "homepage": "https://github.com/umijs/umi/tree/master/packages/bundler-utils#readme",
5
5
  "bugs": "https://github.com/umijs/umi/issues",
6
6
  "repository": {
@@ -20,7 +20,7 @@
20
20
  "dev": "umi-scripts father dev"
21
21
  },
22
22
  "dependencies": {
23
- "@umijs/utils": "4.0.29",
23
+ "@umijs/utils": "4.0.30",
24
24
  "esbuild": "0.14.49",
25
25
  "regenerate": "^1.4.2",
26
26
  "regenerate-unicode-properties": "10.0.1",