@gravity-ui/app-builder 0.9.1 → 0.9.3
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.
|
@@ -24,7 +24,10 @@ module.exports = function (_context, options = {}) {
|
|
|
24
24
|
* Can be removed once the issue is fixed and released.
|
|
25
25
|
* @see https://github.com/babel/babel/issues/14289
|
|
26
26
|
*/
|
|
27
|
-
plugins: [
|
|
27
|
+
plugins: [
|
|
28
|
+
require.resolve('@babel/plugin-transform-private-methods'),
|
|
29
|
+
require.resolve('@babel/plugin-transform-class-properties'),
|
|
30
|
+
],
|
|
28
31
|
}),
|
|
29
32
|
],
|
|
30
33
|
// Latest stable ECMAScript features
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type webpack from 'webpack';
|
|
2
2
|
import type { Logger } from '../logger';
|
|
3
|
-
export declare function webpackCompilerHandlerFactory(logger: Logger, onCompilationEnd?: () => void): (err?: Error, stats?: webpack.Stats) => Promise<void>;
|
|
3
|
+
export declare function webpackCompilerHandlerFactory(logger: Logger, onCompilationEnd?: () => void): (err?: Error | null, stats?: webpack.Stats) => Promise<void>;
|
|
4
4
|
export declare function resolveTsconfigPathsToAlias(tsConfigPath: string): {
|
|
5
5
|
aliases: Record<string, string[]>;
|
|
6
6
|
modules: string[];
|
|
@@ -49,8 +49,13 @@ function webpackCompilerHandlerFactory(logger, onCompilationEnd) {
|
|
|
49
49
|
if (onCompilationEnd) {
|
|
50
50
|
await onCompilationEnd();
|
|
51
51
|
}
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
if (stats) {
|
|
53
|
+
const time = stats.endTime - stats.startTime;
|
|
54
|
+
logger.success(`Client was successfully compiled in ${(0, pretty_time_1.prettyTime)(BigInt(time) * BigInt(1000000))}`);
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
logger.success(`Client was successfully compiled`);
|
|
58
|
+
}
|
|
54
59
|
};
|
|
55
60
|
}
|
|
56
61
|
exports.webpackCompilerHandlerFactory = webpackCompilerHandlerFactory;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gravity-ui/app-builder",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.3",
|
|
4
4
|
"description": "Develop and build your React client-server projects, powered by typescript and webpack",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -63,6 +63,7 @@
|
|
|
63
63
|
"@babel/plugin-transform-class-properties": "^7.22.5",
|
|
64
64
|
"@babel/plugin-transform-dynamic-import": "^7.22.0",
|
|
65
65
|
"@babel/plugin-transform-modules-commonjs": "^7.23.4",
|
|
66
|
+
"@babel/plugin-transform-private-methods": "^7.24.1",
|
|
66
67
|
"@babel/plugin-transform-runtime": "^7.22.0",
|
|
67
68
|
"@babel/preset-env": "^7.22.0",
|
|
68
69
|
"@babel/preset-react": "^7.22.0",
|
|
@@ -98,7 +99,7 @@
|
|
|
98
99
|
"get-port": "^7.0.0",
|
|
99
100
|
"lodash": "^4.17.21",
|
|
100
101
|
"mime-types": "^2.1.35",
|
|
101
|
-
"mini-css-extract-plugin": "^2.
|
|
102
|
+
"mini-css-extract-plugin": "^2.8.1",
|
|
102
103
|
"moment-timezone-data-webpack-plugin": "^1.5.1",
|
|
103
104
|
"nodemon": "^3.0.1",
|
|
104
105
|
"p-map": "^4.0.0",
|
|
@@ -120,13 +121,13 @@
|
|
|
120
121
|
"strip-ansi": "^6.0.1",
|
|
121
122
|
"style-loader": "^3.3.3",
|
|
122
123
|
"svgo": "^3.0.2",
|
|
123
|
-
"terser-webpack-plugin": "5.3.
|
|
124
|
-
"ts-node": "10.9.
|
|
124
|
+
"terser-webpack-plugin": "5.3.10",
|
|
125
|
+
"ts-node": "10.9.2",
|
|
125
126
|
"tslib": "^2.6.2",
|
|
126
127
|
"typescript": "^5.3.3",
|
|
127
|
-
"webpack": "^5.
|
|
128
|
-
"webpack-assets-manifest": "^5.1
|
|
129
|
-
"webpack-bundle-analyzer": "^4.
|
|
128
|
+
"webpack": "^5.91.0",
|
|
129
|
+
"webpack-assets-manifest": "^5.2.1",
|
|
130
|
+
"webpack-bundle-analyzer": "^4.10.1",
|
|
130
131
|
"webpack-dev-server": "^4.15.1",
|
|
131
132
|
"webpack-manifest-plugin": "^5.0.0",
|
|
132
133
|
"worker-loader": "^3.0.8",
|