@modern-js/babel-compiler 1.2.3 → 1.2.4
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 +10 -0
- package/dist/js/modern/buildWatch.js +4 -4
- package/dist/js/node/buildWatch.js +4 -4
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @modern-js/babel-compiler
|
|
2
2
|
|
|
3
|
+
## 1.2.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 0e0537005: fix: unlock @babel/core version
|
|
8
|
+
- 69a728375: fix: remove exports.jsnext:source after publish
|
|
9
|
+
- Updated dependencies [cd7346b0d]
|
|
10
|
+
- Updated dependencies [69a728375]
|
|
11
|
+
- @modern-js/utils@1.7.2
|
|
12
|
+
|
|
3
13
|
## 1.2.3
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
@@ -42,16 +42,16 @@ export const runBuildWatch = async (option, babelConfig = {}, emitter) => {
|
|
|
42
42
|
quiet
|
|
43
43
|
} = option; // 第一次正常构建
|
|
44
44
|
|
|
45
|
-
const
|
|
45
|
+
const firstBuildResult = await build(option, babelConfig);
|
|
46
46
|
const {
|
|
47
47
|
code
|
|
48
|
-
} =
|
|
48
|
+
} = firstBuildResult;
|
|
49
49
|
|
|
50
50
|
if (code === 1) {
|
|
51
|
-
errorResult.init(
|
|
51
|
+
errorResult.init(firstBuildResult);
|
|
52
52
|
emitter.emit(BuildWatchEvent.firstCompiler, errorResult.value);
|
|
53
53
|
} else {
|
|
54
|
-
emitter.emit(BuildWatchEvent.firstCompiler,
|
|
54
|
+
emitter.emit(BuildWatchEvent.firstCompiler, firstBuildResult);
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
return watch(`${watchDir}/**/*.{js,jsx,ts,tsx}`, async ({
|
|
@@ -63,16 +63,16 @@ const runBuildWatch = async (option, babelConfig = {}, emitter) => {
|
|
|
63
63
|
quiet
|
|
64
64
|
} = option; // 第一次正常构建
|
|
65
65
|
|
|
66
|
-
const
|
|
66
|
+
const firstBuildResult = await (0, _build.build)(option, babelConfig);
|
|
67
67
|
const {
|
|
68
68
|
code
|
|
69
|
-
} =
|
|
69
|
+
} = firstBuildResult;
|
|
70
70
|
|
|
71
71
|
if (code === 1) {
|
|
72
|
-
errorResult.init(
|
|
72
|
+
errorResult.init(firstBuildResult);
|
|
73
73
|
emitter.emit(BuildWatchEvent.firstCompiler, errorResult.value);
|
|
74
74
|
} else {
|
|
75
|
-
emitter.emit(BuildWatchEvent.firstCompiler,
|
|
75
|
+
emitter.emit(BuildWatchEvent.firstCompiler, firstBuildResult);
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
return (0, _utils.watch)(`${watchDir}/**/*.{js,jsx,ts,tsx}`, async ({
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "1.2.
|
|
14
|
+
"version": "1.2.4",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"types": "./dist/types/index.d.ts",
|
|
17
17
|
"main": "./dist/js/node/index.js",
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@babel/core": "7.
|
|
31
|
+
"@babel/core": "^7.17.0",
|
|
32
32
|
"@babel/runtime": "^7",
|
|
33
|
-
"@modern-js/utils": "^1.
|
|
33
|
+
"@modern-js/utils": "^1.7.2"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@babel/plugin-transform-classes": "^7.14.9",
|