@modern-js/server-utils 1.2.11 → 1.2.12-beta.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/dist/js/modern/babel.js +11 -3
- package/dist/js/node/babel.js +12 -4
- package/dist/js/treeshaking/babel.js +11 -3
- package/package.json +3 -2
package/dist/js/modern/babel.js
CHANGED
|
@@ -65,16 +65,24 @@ 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
|
+
},
|
|
68
71
|
loose: true
|
|
69
72
|
})]);
|
|
70
73
|
babelChain.plugin('babel-plugin-transform-typescript-metadata').use(require.resolve('babel-plugin-transform-typescript-metadata'), []);
|
|
71
74
|
babelChain.plugin('@babel/plugin-proposal-decorators').use(require.resolve('@babel/plugin-proposal-decorators'), [{
|
|
72
75
|
legacy: true
|
|
73
76
|
}]); // 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
|
+
// ]);
|
|
74
84
|
|
|
75
|
-
babelChain.plugin('@babel/plugin-
|
|
76
|
-
loose: true
|
|
77
|
-
}]);
|
|
85
|
+
babelChain.plugin('@babel/plugin-syntax-class-properties').use(require.resolve('@babel/plugin-syntax-class-properties'), []);
|
|
78
86
|
|
|
79
87
|
const internalBabelConfig = _objectSpread({}, babelChain.toJSON());
|
|
80
88
|
|
package/dist/js/node/babel.js
CHANGED
|
@@ -103,16 +103,24 @@ 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
|
+
},
|
|
106
109
|
loose: true
|
|
107
110
|
})]);
|
|
108
111
|
babelChain.plugin('babel-plugin-transform-typescript-metadata').use(require.resolve('babel-plugin-transform-typescript-metadata'), []);
|
|
109
112
|
babelChain.plugin('@babel/plugin-proposal-decorators').use(require.resolve('@babel/plugin-proposal-decorators'), [{
|
|
110
113
|
legacy: true
|
|
111
114
|
}]); // resolve "Definitely assigned fields cannot be initialized here, but only in the constructor."
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
115
|
+
// babelChain
|
|
116
|
+
// .plugin('@babel/plugin-proposal-class-properties')
|
|
117
|
+
// .use(require.resolve('@babel/plugin-proposal-class-properties'), [
|
|
118
|
+
// {
|
|
119
|
+
// loose: true,
|
|
120
|
+
// },
|
|
121
|
+
// ]);
|
|
122
|
+
|
|
123
|
+
babelChain.plugin('@babel/plugin-syntax-class-properties').use(require.resolve('@babel/plugin-syntax-class-properties'), []);
|
|
116
124
|
|
|
117
125
|
const internalBabelConfig = _objectSpread({}, babelChain.toJSON());
|
|
118
126
|
|
|
@@ -56,16 +56,24 @@ 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
|
+
},
|
|
59
62
|
loose: true
|
|
60
63
|
})]);
|
|
61
64
|
babelChain.plugin('babel-plugin-transform-typescript-metadata').use(require.resolve('babel-plugin-transform-typescript-metadata'), []);
|
|
62
65
|
babelChain.plugin('@babel/plugin-proposal-decorators').use(require.resolve('@babel/plugin-proposal-decorators'), [{
|
|
63
66
|
legacy: true
|
|
64
67
|
}]); // 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
|
+
// ]);
|
|
65
75
|
|
|
66
|
-
babelChain.plugin('@babel/plugin-
|
|
67
|
-
loose: true
|
|
68
|
-
}]);
|
|
76
|
+
babelChain.plugin('@babel/plugin-syntax-class-properties').use(require.resolve('@babel/plugin-syntax-class-properties'), []);
|
|
69
77
|
|
|
70
78
|
var internalBabelConfig = _objectSpread({}, babelChain.toJSON());
|
|
71
79
|
|
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.12-beta.0",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"types": "./dist/types/index.d.ts",
|
|
17
17
|
"main": "./dist/js/node/index.js",
|
|
@@ -57,7 +57,8 @@
|
|
|
57
57
|
"sideEffects": false,
|
|
58
58
|
"publishConfig": {
|
|
59
59
|
"registry": "https://registry.npmjs.org/",
|
|
60
|
-
"access": "public"
|
|
60
|
+
"access": "public",
|
|
61
|
+
"types": "./dist/types/index.d.ts"
|
|
61
62
|
},
|
|
62
63
|
"wireit": {
|
|
63
64
|
"build": {
|