@modern-js/node-bundle-require 2.19.0 → 2.20.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 +16 -0
- package/dist/cjs/bundle.js +2 -6
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @modern-js/node-bundle-require
|
|
2
2
|
|
|
3
|
+
## 2.20.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 6b9d90a: chore: remove @babel/runtime. add @swc/helper and enable `externalHelper` config.
|
|
8
|
+
chore: 移除 @babel/runtime 依赖. 增加 @swc/helpers 依赖并且开启 `externalHelpers` 配置
|
|
9
|
+
- Updated dependencies [3c4e0a5]
|
|
10
|
+
- Updated dependencies [6b9d90a]
|
|
11
|
+
- @modern-js/utils@2.20.0
|
|
12
|
+
|
|
13
|
+
## 2.19.1
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- @modern-js/utils@2.19.1
|
|
18
|
+
|
|
3
19
|
## 2.19.0
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/dist/cjs/bundle.js
CHANGED
|
@@ -14,14 +14,10 @@ _export(exports, {
|
|
|
14
14
|
defaultGetOutputFile: () => defaultGetOutputFile,
|
|
15
15
|
bundle: () => bundle
|
|
16
16
|
});
|
|
17
|
-
const
|
|
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)$/;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@modern-js/node-bundle-require",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.20.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
|
-
"@
|
|
49
|
+
"@swc/helpers": "0.5.1",
|
|
50
|
+
"@modern-js/utils": "2.20.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@types/jest": "^29",
|
|
54
54
|
"@types/node": "^14",
|
|
55
55
|
"jest": "^29",
|
|
56
56
|
"typescript": "^4",
|
|
57
|
-
"@scripts/build": "2.
|
|
58
|
-
"@scripts/jest-config": "2.
|
|
57
|
+
"@scripts/build": "2.20.0",
|
|
58
|
+
"@scripts/jest-config": "2.20.0"
|
|
59
59
|
},
|
|
60
60
|
"sideEffects": false,
|
|
61
61
|
"publishConfig": {
|