@modern-js/server-utils 1.2.12-beta.0 → 1.15.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 +13 -0
- package/dist/js/modern/babel.js +3 -11
- package/dist/js/node/babel.js +4 -12
- package/dist/js/treeshaking/babel.js +3 -11
- package/package.json +8 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @modern-js/server-utils
|
|
2
2
|
|
|
3
|
+
## 1.15.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [8658a78]
|
|
8
|
+
- Updated dependencies [05d4a4f]
|
|
9
|
+
- Updated dependencies [ad05af9]
|
|
10
|
+
- Updated dependencies [5d53d1c]
|
|
11
|
+
- Updated dependencies [37cd159]
|
|
12
|
+
- @modern-js/utils@1.15.0
|
|
13
|
+
- @modern-js/babel-preset-lib@1.15.0
|
|
14
|
+
- @modern-js/plugin@1.15.0
|
|
15
|
+
|
|
3
16
|
## 1.2.11
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/dist/js/modern/babel.js
CHANGED
|
@@ -65,24 +65,16 @@ export const resolveBabelConfig = (appDirectory, modernConfig, option // FIXME:
|
|
|
65
65
|
});
|
|
66
66
|
const envOptions = babelChain.preset('@babel/preset-env').options();
|
|
67
67
|
babelChain.preset('@babel/preset-env').use(require.resolve('@babel/preset-env'), [_objectSpread(_objectSpread({}, envOptions[0]), {}, {
|
|
68
|
-
targets: {
|
|
69
|
-
node: '12.18.3'
|
|
70
|
-
},
|
|
71
68
|
loose: true
|
|
72
69
|
})]);
|
|
73
70
|
babelChain.plugin('babel-plugin-transform-typescript-metadata').use(require.resolve('babel-plugin-transform-typescript-metadata'), []);
|
|
74
71
|
babelChain.plugin('@babel/plugin-proposal-decorators').use(require.resolve('@babel/plugin-proposal-decorators'), [{
|
|
75
72
|
legacy: true
|
|
76
73
|
}]); // resolve "Definitely assigned fields cannot be initialized here, but only in the constructor."
|
|
77
|
-
// babelChain
|
|
78
|
-
// .plugin('@babel/plugin-proposal-class-properties')
|
|
79
|
-
// .use(require.resolve('@babel/plugin-proposal-class-properties'), [
|
|
80
|
-
// {
|
|
81
|
-
// loose: true,
|
|
82
|
-
// },
|
|
83
|
-
// ]);
|
|
84
74
|
|
|
85
|
-
babelChain.plugin('@babel/plugin-
|
|
75
|
+
babelChain.plugin('@babel/plugin-proposal-class-properties').use(require.resolve('@babel/plugin-proposal-class-properties'), [{
|
|
76
|
+
loose: true
|
|
77
|
+
}]);
|
|
86
78
|
|
|
87
79
|
const internalBabelConfig = _objectSpread({}, babelChain.toJSON());
|
|
88
80
|
|
package/dist/js/node/babel.js
CHANGED
|
@@ -103,24 +103,16 @@ const resolveBabelConfig = (appDirectory, modernConfig, option // FIXME: babel t
|
|
|
103
103
|
});
|
|
104
104
|
const envOptions = babelChain.preset('@babel/preset-env').options();
|
|
105
105
|
babelChain.preset('@babel/preset-env').use(require.resolve('@babel/preset-env'), [_objectSpread(_objectSpread({}, envOptions[0]), {}, {
|
|
106
|
-
targets: {
|
|
107
|
-
node: '12.18.3'
|
|
108
|
-
},
|
|
109
106
|
loose: true
|
|
110
107
|
})]);
|
|
111
108
|
babelChain.plugin('babel-plugin-transform-typescript-metadata').use(require.resolve('babel-plugin-transform-typescript-metadata'), []);
|
|
112
109
|
babelChain.plugin('@babel/plugin-proposal-decorators').use(require.resolve('@babel/plugin-proposal-decorators'), [{
|
|
113
110
|
legacy: true
|
|
114
111
|
}]); // resolve "Definitely assigned fields cannot be initialized here, but only in the constructor."
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
// loose: true,
|
|
120
|
-
// },
|
|
121
|
-
// ]);
|
|
122
|
-
|
|
123
|
-
babelChain.plugin('@babel/plugin-syntax-class-properties').use(require.resolve('@babel/plugin-syntax-class-properties'), []);
|
|
112
|
+
|
|
113
|
+
babelChain.plugin('@babel/plugin-proposal-class-properties').use(require.resolve('@babel/plugin-proposal-class-properties'), [{
|
|
114
|
+
loose: true
|
|
115
|
+
}]);
|
|
124
116
|
|
|
125
117
|
const internalBabelConfig = _objectSpread({}, babelChain.toJSON());
|
|
126
118
|
|
|
@@ -56,24 +56,16 @@ export var resolveBabelConfig = function resolveBabelConfig(appDirectory, modern
|
|
|
56
56
|
});
|
|
57
57
|
var envOptions = babelChain.preset('@babel/preset-env').options();
|
|
58
58
|
babelChain.preset('@babel/preset-env').use(require.resolve('@babel/preset-env'), [_objectSpread(_objectSpread({}, envOptions[0]), {}, {
|
|
59
|
-
targets: {
|
|
60
|
-
node: '12.18.3'
|
|
61
|
-
},
|
|
62
59
|
loose: true
|
|
63
60
|
})]);
|
|
64
61
|
babelChain.plugin('babel-plugin-transform-typescript-metadata').use(require.resolve('babel-plugin-transform-typescript-metadata'), []);
|
|
65
62
|
babelChain.plugin('@babel/plugin-proposal-decorators').use(require.resolve('@babel/plugin-proposal-decorators'), [{
|
|
66
63
|
legacy: true
|
|
67
64
|
}]); // resolve "Definitely assigned fields cannot be initialized here, but only in the constructor."
|
|
68
|
-
// babelChain
|
|
69
|
-
// .plugin('@babel/plugin-proposal-class-properties')
|
|
70
|
-
// .use(require.resolve('@babel/plugin-proposal-class-properties'), [
|
|
71
|
-
// {
|
|
72
|
-
// loose: true,
|
|
73
|
-
// },
|
|
74
|
-
// ]);
|
|
75
65
|
|
|
76
|
-
babelChain.plugin('@babel/plugin-
|
|
66
|
+
babelChain.plugin('@babel/plugin-proposal-class-properties').use(require.resolve('@babel/plugin-proposal-class-properties'), [{
|
|
67
|
+
loose: true
|
|
68
|
+
}]);
|
|
77
69
|
|
|
78
70
|
var internalBabelConfig = _objectSpread({}, babelChain.toJSON());
|
|
79
71
|
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "1.
|
|
14
|
+
"version": "1.15.0",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"types": "./dist/types/index.d.ts",
|
|
17
17
|
"main": "./dist/js/node/index.js",
|
|
@@ -35,16 +35,16 @@
|
|
|
35
35
|
"@babel/preset-env": "^7.18.0",
|
|
36
36
|
"@babel/preset-typescript": "^7.17.12",
|
|
37
37
|
"@babel/runtime": "^7.18.0",
|
|
38
|
-
"@modern-js/babel-preset-lib": "
|
|
39
|
-
"@modern-js/plugin": "
|
|
40
|
-
"@modern-js/utils": "
|
|
38
|
+
"@modern-js/babel-preset-lib": "1.15.0",
|
|
39
|
+
"@modern-js/plugin": "1.15.0",
|
|
40
|
+
"@modern-js/utils": "1.15.0",
|
|
41
41
|
"babel-plugin-module-resolver": "^4.1.0",
|
|
42
42
|
"babel-plugin-transform-typescript-metadata": "^0.3.2"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@modern-js/core": "1.
|
|
46
|
-
"@scripts/build": "
|
|
47
|
-
"@scripts/jest-config": "
|
|
45
|
+
"@modern-js/core": "1.15.0",
|
|
46
|
+
"@scripts/build": "1.15.0",
|
|
47
|
+
"@scripts/jest-config": "1.15.0",
|
|
48
48
|
"@types/babel__core": "^7.1.15",
|
|
49
49
|
"@types/jest": "^27",
|
|
50
50
|
"@types/node": "^14",
|
|
@@ -57,8 +57,7 @@
|
|
|
57
57
|
"sideEffects": false,
|
|
58
58
|
"publishConfig": {
|
|
59
59
|
"registry": "https://registry.npmjs.org/",
|
|
60
|
-
"access": "public"
|
|
61
|
-
"types": "./dist/types/index.d.ts"
|
|
60
|
+
"access": "public"
|
|
62
61
|
},
|
|
63
62
|
"wireit": {
|
|
64
63
|
"build": {
|