@modern-js/node-bundle-require 2.19.1 → 2.21.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,31 @@
1
1
  # @modern-js/node-bundle-require
2
2
 
3
+ ## 2.21.0
4
+
5
+ ### Patch Changes
6
+
7
+ - 26dcf3a: chore: bump typescript to v5 in devDependencies
8
+
9
+ chore: 升级 devDependencies 中的 typescript 版本到 v5
10
+
11
+ - Updated dependencies [e81eeaf]
12
+ - Updated dependencies [26dcf3a]
13
+ - Updated dependencies [056627f]
14
+ - Updated dependencies [0fc15ca]
15
+ - Updated dependencies [43b4e83]
16
+ - Updated dependencies [ad78387]
17
+ - @modern-js/utils@2.21.0
18
+
19
+ ## 2.20.0
20
+
21
+ ### Patch Changes
22
+
23
+ - 6b9d90a: chore: remove @babel/runtime. add @swc/helper and enable `externalHelper` config.
24
+ chore: 移除 @babel/runtime 依赖. 增加 @swc/helpers 依赖并且开启 `externalHelpers` 配置
25
+ - Updated dependencies [3c4e0a5]
26
+ - Updated dependencies [6b9d90a]
27
+ - @modern-js/utils@2.20.0
28
+
3
29
  ## 2.19.1
4
30
 
5
31
  ### Patch Changes
@@ -14,14 +14,10 @@ _export(exports, {
14
14
  defaultGetOutputFile: () => defaultGetOutputFile,
15
15
  bundle: () => bundle
16
16
  });
17
- const _path = /* @__PURE__ */ _interop_require_default(require("path"));
17
+ const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
18
+ const _path = /* @__PURE__ */ _interop_require_default._(require("path"));
18
19
  const _utils = require("@modern-js/utils");
19
20
  const _esbuild = require("esbuild");
20
- function _interop_require_default(obj) {
21
- return obj && obj.__esModule ? obj : {
22
- default: obj
23
- };
24
- }
25
21
  const debug = (0, _utils.createDebugger)("node-bundle");
26
22
  const JS_EXT_RE = /\.(mjs|cjs|ts|js|tsx|jsx)$/;
27
23
  const BUNDLED_EXT_RE = /\.(ts|mts|cts|tsx|mjs)$/;
@@ -10,23 +10,19 @@ export interface Options {
10
10
  /**
11
11
  * esbuild options
12
12
  */
13
-
14
13
  esbuildOptions?: BuildOptions;
15
14
  /**
16
15
  * esbuild plugin
17
16
  */
18
-
19
17
  esbuildPlugins?: Plugin[];
20
18
  /**
21
19
  * Get the path to the output file
22
20
  * By default we simply replace the extension with `.bundled.cjs`
23
21
  */
24
-
25
22
  getOutputFile?: (filepath: string) => Promise<string>;
26
23
  /**
27
24
  * auto clear bundle file
28
25
  */
29
-
30
26
  autoClear?: boolean;
31
27
  }
32
28
  export declare const defaultGetOutputFile: (filepath: string) => Promise<string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modern-js/node-bundle-require",
3
- "version": "2.19.1",
3
+ "version": "2.21.0",
4
4
  "description": "A Progressive React Framework for modern web development.",
5
5
  "homepage": "https://modernjs.dev",
6
6
  "bugs": "https://github.com/web-infra-dev/modern.js/issues",
@@ -45,17 +45,17 @@
45
45
  }
46
46
  },
47
47
  "dependencies": {
48
- "@babel/runtime": "^7.18.0",
49
48
  "esbuild": "0.15.7",
50
- "@modern-js/utils": "2.19.1"
49
+ "@swc/helpers": "0.5.1",
50
+ "@modern-js/utils": "2.21.0"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@types/jest": "^29",
54
54
  "@types/node": "^14",
55
55
  "jest": "^29",
56
- "typescript": "^4",
57
- "@scripts/build": "2.19.1",
58
- "@scripts/jest-config": "2.19.1"
56
+ "typescript": "^5",
57
+ "@scripts/build": "2.21.0",
58
+ "@scripts/jest-config": "2.21.0"
59
59
  },
60
60
  "sideEffects": false,
61
61
  "publishConfig": {