@modern-js/node-bundle-require 2.28.0 → 2.29.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 +15 -0
- package/dist/cjs/bundle.js +1 -1
- package/dist/esm/bundle.js +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @modern-js/node-bundle-require
|
|
2
2
|
|
|
3
|
+
## 2.29.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 99052ea: feat(builder): improve error stacks if dev compilation failed
|
|
8
|
+
|
|
9
|
+
feat(builder): 优化 dev 编译失败时的错误堆栈格式
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [e6b5355]
|
|
12
|
+
- Updated dependencies [93db783]
|
|
13
|
+
- Updated dependencies [cba7675]
|
|
14
|
+
- Updated dependencies [99052ea]
|
|
15
|
+
- Updated dependencies [1d71d2e]
|
|
16
|
+
- @modern-js/utils@2.29.0
|
|
17
|
+
|
|
3
18
|
## 2.28.0
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/dist/cjs/bundle.js
CHANGED
|
@@ -46,7 +46,7 @@ async function isTypeModulePkg(cwd) {
|
|
|
46
46
|
}
|
|
47
47
|
return false;
|
|
48
48
|
}
|
|
49
|
-
const defaultGetOutputFile = async (filepath) => _path.default.resolve(_utils.CONFIG_CACHE_DIR, `${filepath
|
|
49
|
+
const defaultGetOutputFile = async (filepath) => _path.default.resolve(_utils.CONFIG_CACHE_DIR, `${filepath.replace(/\.(js|ts)/, "")}.${(0, _utils.nanoid)(8)}.cjs`);
|
|
50
50
|
async function bundle(filepath, options) {
|
|
51
51
|
var _options, _options1, _options2, _options3;
|
|
52
52
|
if (!JS_EXT_RE.test(filepath)) {
|
package/dist/esm/bundle.js
CHANGED
|
@@ -23,7 +23,7 @@ async function isTypeModulePkg(cwd) {
|
|
|
23
23
|
}
|
|
24
24
|
return false;
|
|
25
25
|
}
|
|
26
|
-
export const defaultGetOutputFile = async (filepath) => path.resolve(CONFIG_CACHE_DIR, `${filepath
|
|
26
|
+
export const defaultGetOutputFile = async (filepath) => path.resolve(CONFIG_CACHE_DIR, `${filepath.replace(/\.(js|ts)/, "")}.${nanoid(8)}.cjs`);
|
|
27
27
|
export async function bundle(filepath, options) {
|
|
28
28
|
var _options, _options1, _options2, _options3;
|
|
29
29
|
if (!JS_EXT_RE.test(filepath)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@modern-js/node-bundle-require",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.29.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",
|
|
@@ -47,15 +47,15 @@
|
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"esbuild": "0.17.19",
|
|
49
49
|
"@swc/helpers": "0.5.1",
|
|
50
|
-
"@modern-js/utils": "2.
|
|
50
|
+
"@modern-js/utils": "2.29.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@types/jest": "^29",
|
|
54
54
|
"@types/node": "^14",
|
|
55
55
|
"jest": "^29",
|
|
56
56
|
"typescript": "^5",
|
|
57
|
-
"@scripts/
|
|
58
|
-
"@scripts/
|
|
57
|
+
"@scripts/build": "2.29.0",
|
|
58
|
+
"@scripts/jest-config": "2.29.0"
|
|
59
59
|
},
|
|
60
60
|
"sideEffects": false,
|
|
61
61
|
"publishConfig": {
|