@modern-js/server-utils 2.21.1 → 2.22.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 +10 -0
- package/dist/cjs/common/index.js +6 -2
- package/dist/cjs/compilers/babel/index.js +15 -5
- package/dist/cjs/compilers/typescript/index.js +3 -1
- package/dist/cjs/compilers/typescript/tsconfigPathsPlugin.js +3 -1
- package/dist/cjs/compilers/typescript/typescriptLoader.js +3 -1
- package/dist/cjs/index.js +3 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @modern-js/server-utils
|
|
2
2
|
|
|
3
|
+
## 2.22.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [3d48836]
|
|
8
|
+
- Updated dependencies [5050e8e]
|
|
9
|
+
- @modern-js/utils@2.22.0
|
|
10
|
+
- @modern-js/babel-preset-lib@2.22.0
|
|
11
|
+
- @modern-js/babel-compiler@2.22.0
|
|
12
|
+
|
|
3
13
|
## 2.21.1
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
package/dist/cjs/common/index.js
CHANGED
|
@@ -10,8 +10,12 @@ function _export(target, all) {
|
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
_export(exports, {
|
|
13
|
-
FILE_EXTENSIONS: ()
|
|
14
|
-
|
|
13
|
+
FILE_EXTENSIONS: function() {
|
|
14
|
+
return FILE_EXTENSIONS;
|
|
15
|
+
},
|
|
16
|
+
compile: function() {
|
|
17
|
+
return compile;
|
|
18
|
+
}
|
|
15
19
|
});
|
|
16
20
|
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
17
21
|
const _path = /* @__PURE__ */ _interop_require_wildcard._(require("path"));
|
|
@@ -10,11 +10,21 @@ function _export(target, all) {
|
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
_export(exports, {
|
|
13
|
-
readTsConfig: ()
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
readTsConfig: function() {
|
|
14
|
+
return readTsConfig;
|
|
15
|
+
},
|
|
16
|
+
existTsConfigFile: function() {
|
|
17
|
+
return existTsConfigFile;
|
|
18
|
+
},
|
|
19
|
+
getBabelConfig: function() {
|
|
20
|
+
return getBabelConfig;
|
|
21
|
+
},
|
|
22
|
+
resolveBabelConfig: function() {
|
|
23
|
+
return resolveBabelConfig;
|
|
24
|
+
},
|
|
25
|
+
compileByBabel: function() {
|
|
26
|
+
return compileByBabel;
|
|
27
|
+
}
|
|
18
28
|
});
|
|
19
29
|
const _export_star = require("@swc/helpers/_/_export_star");
|
|
20
30
|
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
Object.defineProperty(exports, "compileByTs", {
|
|
6
6
|
enumerable: true,
|
|
7
|
-
get: ()
|
|
7
|
+
get: function() {
|
|
8
|
+
return compileByTs;
|
|
9
|
+
}
|
|
8
10
|
});
|
|
9
11
|
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
10
12
|
const _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
Object.defineProperty(exports, "tsconfigPathsBeforeHookFactory", {
|
|
6
6
|
enumerable: true,
|
|
7
|
-
get: ()
|
|
7
|
+
get: function() {
|
|
8
|
+
return tsconfigPathsBeforeHookFactory;
|
|
9
|
+
}
|
|
8
10
|
});
|
|
9
11
|
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
10
12
|
const _os = /* @__PURE__ */ _interop_require_wildcard._(require("os"));
|
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
Object.defineProperty(exports, "TypescriptLoader", {
|
|
6
6
|
enumerable: true,
|
|
7
|
-
get: ()
|
|
7
|
+
get: function() {
|
|
8
|
+
return TypescriptLoader;
|
|
9
|
+
}
|
|
8
10
|
});
|
|
9
11
|
const _define_property = require("@swc/helpers/_/_define_property");
|
|
10
12
|
class TypescriptLoader {
|
package/dist/cjs/index.js
CHANGED
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
Object.defineProperty(exports, "compile", {
|
|
6
6
|
enumerable: true,
|
|
7
|
-
get: ()
|
|
7
|
+
get: function() {
|
|
8
|
+
return _common.compile;
|
|
9
|
+
}
|
|
8
10
|
});
|
|
9
11
|
const _export_star = require("@swc/helpers/_/_export_star");
|
|
10
12
|
_export_star._(require("./compilers/babel"), exports);
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "2.
|
|
18
|
+
"version": "2.22.0",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"types": "./dist/types/index.d.ts",
|
|
21
21
|
"main": "./dist/cjs/index.js",
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
"babel-plugin-module-resolver": "^4.1.0",
|
|
40
40
|
"babel-plugin-transform-typescript-metadata": "^0.3.2",
|
|
41
41
|
"@swc/helpers": "0.5.1",
|
|
42
|
-
"@modern-js/babel-compiler": "2.
|
|
43
|
-
"@modern-js/babel-preset-lib": "2.
|
|
44
|
-
"@modern-js/utils": "2.
|
|
42
|
+
"@modern-js/babel-compiler": "2.22.0",
|
|
43
|
+
"@modern-js/babel-preset-lib": "2.22.0",
|
|
44
|
+
"@modern-js/utils": "2.22.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@types/babel__core": "^7.20.0",
|
|
@@ -50,9 +50,9 @@
|
|
|
50
50
|
"jest": "^29",
|
|
51
51
|
"ts-jest": "^29.1.0",
|
|
52
52
|
"typescript": "^5",
|
|
53
|
-
"@modern-js/server-core": "2.
|
|
54
|
-
"@scripts/
|
|
55
|
-
"@scripts/
|
|
53
|
+
"@modern-js/server-core": "2.22.0",
|
|
54
|
+
"@scripts/build": "2.22.0",
|
|
55
|
+
"@scripts/jest-config": "2.22.0"
|
|
56
56
|
},
|
|
57
57
|
"sideEffects": false,
|
|
58
58
|
"publishConfig": {
|