@gravity-ui/app-builder 0.6.9 → 0.6.11
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 +14 -0
- package/README.md +1 -0
- package/dist/common/config.js +1 -1
- package/dist/common/models/index.d.ts +2 -0
- package/dist/common/webpack/config.js +4 -0
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.6.11](https://github.com/gravity-ui/app-builder/compare/v0.6.10...v0.6.11) (2023-10-02)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **config:** set explicitly verbose false by default ([#83](https://github.com/gravity-ui/app-builder/issues/83)) ([368a69d](https://github.com/gravity-ui/app-builder/commit/368a69d7bff6fe4ed1b3dda745c880c5628480bb))
|
|
9
|
+
|
|
10
|
+
## [0.6.10](https://github.com/gravity-ui/app-builder/compare/v0.6.9...v0.6.10) (2023-09-22)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* **build:** support sentry webpack plugin ([#80](https://github.com/gravity-ui/app-builder/issues/80)) ([d7932d8](https://github.com/gravity-ui/app-builder/commit/d7932d8d7df389aa4c7a0fbd30a3fe9fba0d1b8c))
|
|
16
|
+
|
|
3
17
|
## [0.6.9](https://github.com/gravity-ui/app-builder/compare/v0.6.8...v0.6.9) (2023-09-18)
|
|
4
18
|
|
|
5
19
|
|
package/README.md
CHANGED
|
@@ -223,6 +223,7 @@ With this `{rootDir}/src/ui/tsconfig.json`:
|
|
|
223
223
|
- `endpoint` (`string`) - cdn host to upload files
|
|
224
224
|
- `compress` (`boolean`) - upload also gzip and brotli compressed versions of files
|
|
225
225
|
- `additionalPattern` (`string[]`) — patterns for uploading additional files. By default, only files generated by webpack are loaded.
|
|
226
|
+
- `sentryConfig` (`Options`) — `@sentry/webpack-plugin` [configuration options](https://www.npmjs.com/package/@sentry/webpack-plugin/v/2.7.1).
|
|
226
227
|
|
|
227
228
|
##### Optimization
|
|
228
229
|
|
package/dist/common/config.js
CHANGED
|
@@ -92,7 +92,7 @@ async function getProjectConfig(command, { env, storybook, ...argv }) {
|
|
|
92
92
|
inspect: argv.inspect,
|
|
93
93
|
inspectBrk: argv.inspectBrk,
|
|
94
94
|
};
|
|
95
|
-
const config = { ...(await cfg?.config) };
|
|
95
|
+
const config = { verbose: false, ...(await cfg?.config) };
|
|
96
96
|
if ((0, models_1.isLibraryConfig)(config)) {
|
|
97
97
|
return normalizeConfig({
|
|
98
98
|
...config,
|
|
@@ -8,6 +8,7 @@ import type { Options as CircularDependenciesOptions } from 'circular-dependency
|
|
|
8
8
|
import type { Config as SvgrConfig } from '@svgr/core';
|
|
9
9
|
import type { ForkTsCheckerWebpackPluginOptions } from 'fork-ts-checker-webpack-plugin/lib/plugin-options';
|
|
10
10
|
import type { Options as StatoscopeOptions } from '@statoscope/webpack-plugin';
|
|
11
|
+
import type { SentryWebpackPluginOptions } from '@sentry/webpack-plugin';
|
|
11
12
|
export interface Entities<T> {
|
|
12
13
|
data: Record<string, T>;
|
|
13
14
|
keys: string[];
|
|
@@ -169,6 +170,7 @@ export interface ClientConfig {
|
|
|
169
170
|
cache?: boolean | FileCacheOptions | MemoryCacheOptions;
|
|
170
171
|
/** Use [Lighting CSS](https://lightningcss.dev) to transform and minimize css instead of PostCSS and cssnano*/
|
|
171
172
|
transformCssWithLightningCss?: boolean;
|
|
173
|
+
sentryConfig?: SentryWebpackPluginOptions;
|
|
172
174
|
}
|
|
173
175
|
interface CdnUploadConfig {
|
|
174
176
|
bucket: string;
|
|
@@ -42,6 +42,7 @@ const react_refresh_webpack_plugin_1 = __importDefault(require("@pmmmwh/react-re
|
|
|
42
42
|
const moment_timezone_data_webpack_plugin_1 = __importDefault(require("moment-timezone-data-webpack-plugin"));
|
|
43
43
|
const webpack_plugin_1 = __importDefault(require("@statoscope/webpack-plugin"));
|
|
44
44
|
const circular_dependency_plugin_1 = __importDefault(require("circular-dependency-plugin"));
|
|
45
|
+
const webpack_plugin_2 = require("@sentry/webpack-plugin");
|
|
45
46
|
const paths_1 = __importDefault(require("../paths"));
|
|
46
47
|
const tempData_1 = __importDefault(require("../tempData"));
|
|
47
48
|
const babel_1 = require("../babel");
|
|
@@ -635,6 +636,9 @@ function configurePlugins(options) {
|
|
|
635
636
|
chunkFilename: 'css/[name].[contenthash:8].chunk.css',
|
|
636
637
|
ignoreOrder: true,
|
|
637
638
|
}));
|
|
639
|
+
if (config.sentryConfig) {
|
|
640
|
+
plugins.push((0, webpack_plugin_2.sentryWebpackPlugin)({ ...config.sentryConfig }));
|
|
641
|
+
}
|
|
638
642
|
if (config.analyzeBundle === 'true') {
|
|
639
643
|
plugins.push(new webpack_bundle_analyzer_1.BundleAnalyzerPlugin({
|
|
640
644
|
openAnalyzer: false,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gravity-ui/app-builder",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.11",
|
|
4
4
|
"description": "Develop and build your React client-server projects, powered by typescript and webpack",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -68,6 +68,7 @@
|
|
|
68
68
|
"@babel/preset-typescript": "^7.22.0",
|
|
69
69
|
"@babel/runtime": "^7.22.0",
|
|
70
70
|
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.11",
|
|
71
|
+
"@sentry/webpack-plugin": "^2.7.1",
|
|
71
72
|
"@statoscope/webpack-plugin": "^5.27.0",
|
|
72
73
|
"@svgr/core": "^8.1.0",
|
|
73
74
|
"@svgr/plugin-jsx": "^8.1.0",
|