@modern-js/server-utils 2.11.1-alpha.1 → 2.12.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,17 @@
|
|
|
1
1
|
# @modern-js/server-utils
|
|
2
2
|
|
|
3
|
+
## 2.12.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 05493a7: feat: support noEmitOnError for ts compiler & remove assetsByChunkName from RouterPlugin
|
|
8
|
+
feat: 支持 ts 编译器的 noEmitOnError 选项 & 从 RouterPlugin 中移除 assetsByChunkName
|
|
9
|
+
- Updated dependencies [c2ca6c8]
|
|
10
|
+
- Updated dependencies [6d86e34]
|
|
11
|
+
- @modern-js/utils@2.12.0
|
|
12
|
+
- @modern-js/babel-preset-lib@2.12.0
|
|
13
|
+
- @modern-js/babel-compiler@2.12.0
|
|
14
|
+
|
|
3
15
|
## 2.11.0
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -147,7 +147,6 @@ function tsconfigPathsBeforeHookFactory(tsBinary, baseUrl, paths) {
|
|
|
147
147
|
if (tsBinary.isImportDeclaration(node)) {
|
|
148
148
|
newNode = tsBinary.factory.updateImportDeclaration(
|
|
149
149
|
node,
|
|
150
|
-
node.decorators,
|
|
151
150
|
node.modifiers,
|
|
152
151
|
node.importClause,
|
|
153
152
|
moduleSpecifier,
|
|
@@ -156,7 +155,6 @@ function tsconfigPathsBeforeHookFactory(tsBinary, baseUrl, paths) {
|
|
|
156
155
|
} else {
|
|
157
156
|
newNode = tsBinary.factory.updateExportDeclaration(
|
|
158
157
|
node,
|
|
159
|
-
node.decorators,
|
|
160
158
|
node.modifiers,
|
|
161
159
|
node.isTypeOnly,
|
|
162
160
|
node.exportClause,
|
|
@@ -187,9 +187,9 @@ function tsconfigPathsBeforeHookFactory(tsBinary, baseUrl, paths) {
|
|
|
187
187
|
moduleSpecifier.parent = node.moduleSpecifier.parent;
|
|
188
188
|
var newNode;
|
|
189
189
|
if (tsBinary.isImportDeclaration(node)) {
|
|
190
|
-
newNode = tsBinary.factory.updateImportDeclaration(node, node.
|
|
190
|
+
newNode = tsBinary.factory.updateImportDeclaration(node, node.modifiers, node.importClause, moduleSpecifier, node.assertClause);
|
|
191
191
|
} else {
|
|
192
|
-
newNode = tsBinary.factory.updateExportDeclaration(node, node.
|
|
192
|
+
newNode = tsBinary.factory.updateExportDeclaration(node, node.modifiers, node.isTypeOnly, node.exportClause, moduleSpecifier, node.assertClause);
|
|
193
193
|
}
|
|
194
194
|
newNode.flags = node.flags;
|
|
195
195
|
return newNode;
|
|
@@ -238,7 +238,7 @@ function getNotAliasedPath(sf, matcher, text) {
|
|
|
238
238
|
if (packagePath1) {
|
|
239
239
|
return text;
|
|
240
240
|
}
|
|
241
|
-
} catch (
|
|
241
|
+
} catch (e) {}
|
|
242
242
|
}
|
|
243
243
|
var resolvedPath = posix.relative(dirname(sf.fileName), result) || "./";
|
|
244
244
|
return resolvedPath[0] === "." ? resolvedPath : "./".concat(resolvedPath);
|
|
@@ -115,7 +115,6 @@ function tsconfigPathsBeforeHookFactory(tsBinary, baseUrl, paths) {
|
|
|
115
115
|
if (tsBinary.isImportDeclaration(node)) {
|
|
116
116
|
newNode = tsBinary.factory.updateImportDeclaration(
|
|
117
117
|
node,
|
|
118
|
-
node.decorators,
|
|
119
118
|
node.modifiers,
|
|
120
119
|
node.importClause,
|
|
121
120
|
moduleSpecifier,
|
|
@@ -124,7 +123,6 @@ function tsconfigPathsBeforeHookFactory(tsBinary, baseUrl, paths) {
|
|
|
124
123
|
} else {
|
|
125
124
|
newNode = tsBinary.factory.updateExportDeclaration(
|
|
126
125
|
node,
|
|
127
|
-
node.decorators,
|
|
128
126
|
node.modifiers,
|
|
129
127
|
node.isTypeOnly,
|
|
130
128
|
node.exportClause,
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "2.
|
|
14
|
+
"version": "2.12.0",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"types": "./dist/types/index.d.ts",
|
|
17
17
|
"main": "./dist/cjs/index.js",
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
"@babel/runtime": "^7.18.0",
|
|
36
36
|
"babel-plugin-module-resolver": "^4.1.0",
|
|
37
37
|
"babel-plugin-transform-typescript-metadata": "^0.3.2",
|
|
38
|
-
"@modern-js/babel-compiler": "2.
|
|
39
|
-
"@modern-js/babel-preset-lib": "2.
|
|
40
|
-
"@modern-js/utils": "2.
|
|
38
|
+
"@modern-js/babel-compiler": "2.12.0",
|
|
39
|
+
"@modern-js/babel-preset-lib": "2.12.0",
|
|
40
|
+
"@modern-js/utils": "2.12.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/babel__core": "^7.1.15",
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
"jest": "^29",
|
|
47
47
|
"ts-jest": "^29.0.5",
|
|
48
48
|
"typescript": "^4",
|
|
49
|
-
"@modern-js/server-core": "2.
|
|
50
|
-
"@scripts/build": "2.
|
|
51
|
-
"@scripts/jest-config": "2.
|
|
49
|
+
"@modern-js/server-core": "2.12.0",
|
|
50
|
+
"@scripts/build": "2.12.0",
|
|
51
|
+
"@scripts/jest-config": "2.12.0"
|
|
52
52
|
},
|
|
53
53
|
"sideEffects": false,
|
|
54
54
|
"publishConfig": {
|