@modern-js/server-utils 1.2.6 → 1.2.9
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/babel.js +4 -0
- package/dist/js/node/babel.js +4 -0
- package/dist/js/treeshaking/babel.js +4 -0
- package/package.json +12 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @modern-js/server-utils
|
|
2
2
|
|
|
3
|
+
## 1.2.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 77917e355: feat: support assign field in decorator
|
|
8
|
+
- Updated dependencies [54fa1dbd6]
|
|
9
|
+
- Updated dependencies [33de0f7ec]
|
|
10
|
+
- @modern-js/plugin@1.3.5
|
|
11
|
+
- @modern-js/utils@1.7.5
|
|
12
|
+
|
|
3
13
|
## 1.2.6
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
package/dist/js/modern/babel.js
CHANGED
|
@@ -70,6 +70,10 @@ export const resolveBabelConfig = (appDirectory, modernConfig, option // FIXME:
|
|
|
70
70
|
babelChain.plugin('babel-plugin-transform-typescript-metadata').use(require.resolve('babel-plugin-transform-typescript-metadata'), []);
|
|
71
71
|
babelChain.plugin('@babel/plugin-proposal-decorators').use(require.resolve('@babel/plugin-proposal-decorators'), [{
|
|
72
72
|
legacy: true
|
|
73
|
+
}]); // resolve "Definitely assigned fields cannot be initialized here, but only in the constructor."
|
|
74
|
+
|
|
75
|
+
babelChain.plugin('@babel/plugin-proposal-class-properties').use(require.resolve('@babel/plugin-proposal-class-properties'), [{
|
|
76
|
+
loose: true
|
|
73
77
|
}]);
|
|
74
78
|
|
|
75
79
|
const internalBabelConfig = _objectSpread({}, babelChain.toJSON());
|
package/dist/js/node/babel.js
CHANGED
|
@@ -108,6 +108,10 @@ const resolveBabelConfig = (appDirectory, modernConfig, option // FIXME: babel t
|
|
|
108
108
|
babelChain.plugin('babel-plugin-transform-typescript-metadata').use(require.resolve('babel-plugin-transform-typescript-metadata'), []);
|
|
109
109
|
babelChain.plugin('@babel/plugin-proposal-decorators').use(require.resolve('@babel/plugin-proposal-decorators'), [{
|
|
110
110
|
legacy: true
|
|
111
|
+
}]); // resolve "Definitely assigned fields cannot be initialized here, but only in the constructor."
|
|
112
|
+
|
|
113
|
+
babelChain.plugin('@babel/plugin-proposal-class-properties').use(require.resolve('@babel/plugin-proposal-class-properties'), [{
|
|
114
|
+
loose: true
|
|
111
115
|
}]);
|
|
112
116
|
|
|
113
117
|
const internalBabelConfig = _objectSpread({}, babelChain.toJSON());
|
|
@@ -61,6 +61,10 @@ export var resolveBabelConfig = function resolveBabelConfig(appDirectory, modern
|
|
|
61
61
|
babelChain.plugin('babel-plugin-transform-typescript-metadata').use(require.resolve('babel-plugin-transform-typescript-metadata'), []);
|
|
62
62
|
babelChain.plugin('@babel/plugin-proposal-decorators').use(require.resolve('@babel/plugin-proposal-decorators'), [{
|
|
63
63
|
legacy: true
|
|
64
|
+
}]); // resolve "Definitely assigned fields cannot be initialized here, but only in the constructor."
|
|
65
|
+
|
|
66
|
+
babelChain.plugin('@babel/plugin-proposal-class-properties').use(require.resolve('@babel/plugin-proposal-class-properties'), [{
|
|
67
|
+
loose: true
|
|
64
68
|
}]);
|
|
65
69
|
|
|
66
70
|
var internalBabelConfig = _objectSpread({}, babelChain.toJSON());
|
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.9",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"types": "./dist/types/index.d.ts",
|
|
17
17
|
"main": "./dist/js/node/index.js",
|
|
@@ -30,28 +30,29 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@babel/compat-data": "^7.15.0",
|
|
32
32
|
"@babel/core": "^7.17.0",
|
|
33
|
+
"@babel/plugin-proposal-class-properties": "^7.12.1",
|
|
33
34
|
"@babel/plugin-proposal-decorators": "^7.15.4",
|
|
34
35
|
"@babel/preset-env": "^7.17.0",
|
|
35
36
|
"@babel/preset-typescript": "^7.15.0",
|
|
36
37
|
"@babel/runtime": "^7",
|
|
37
|
-
"@modern-js/babel-preset-lib": "^1.2.
|
|
38
|
-
"@modern-js/plugin": "^1.3.
|
|
39
|
-
"@modern-js/utils": "^1.7.
|
|
38
|
+
"@modern-js/babel-preset-lib": "^1.2.6",
|
|
39
|
+
"@modern-js/plugin": "^1.3.5",
|
|
40
|
+
"@modern-js/utils": "^1.7.5",
|
|
40
41
|
"babel-plugin-module-resolver": "^4.1.0",
|
|
41
42
|
"babel-plugin-transform-typescript-metadata": "^0.3.2"
|
|
42
43
|
},
|
|
43
44
|
"devDependencies": {
|
|
44
|
-
"@modern-js/core": "1.
|
|
45
|
+
"@modern-js/core": "1.11.0",
|
|
46
|
+
"@scripts/build": "0.0.0",
|
|
47
|
+
"@scripts/jest-config": "0.0.0",
|
|
45
48
|
"@types/babel__core": "^7.1.15",
|
|
46
49
|
"@types/jest": "^27",
|
|
47
50
|
"@types/node": "^14",
|
|
48
51
|
"@types/react": "^17",
|
|
49
52
|
"@types/react-dom": "^17",
|
|
50
|
-
"ts-jest": "^27.0.4",
|
|
51
|
-
"typescript": "^4",
|
|
52
|
-
"@scripts/build": "0.0.0",
|
|
53
53
|
"jest": "^27",
|
|
54
|
-
"
|
|
54
|
+
"ts-jest": "^27.0.4",
|
|
55
|
+
"typescript": "^4"
|
|
55
56
|
},
|
|
56
57
|
"sideEffects": false,
|
|
57
58
|
"publishConfig": {
|
|
@@ -75,7 +76,8 @@
|
|
|
75
76
|
"files": [
|
|
76
77
|
"src/**/*",
|
|
77
78
|
"tsconfig.json",
|
|
78
|
-
"package.json"
|
|
79
|
+
"package.json",
|
|
80
|
+
"tests/**/*"
|
|
79
81
|
],
|
|
80
82
|
"output": []
|
|
81
83
|
}
|