@gravity-ui/app-builder 0.5.3 → 0.5.4
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 +7 -0
- package/README.md +1 -1
- package/dist/common/models/index.d.ts +5 -0
- package/dist/common/webpack/config.js +3 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.5.4](https://github.com/gravity-ui/app-builder/compare/v0.5.3...v0.5.4) (2023-07-06)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **ForkTSCheckerWebpackPlugin:** allow overwrite config ([#40](https://github.com/gravity-ui/app-builder/issues/40)) ([7490647](https://github.com/gravity-ui/app-builder/commit/74906477d707973dc885b0050ecc018ad6e43a00))
|
|
9
|
+
|
|
3
10
|
## [0.5.3](https://github.com/gravity-ui/app-builder/compare/v0.5.2...v0.5.3) (2023-06-30)
|
|
4
11
|
|
|
5
12
|
|
package/README.md
CHANGED
|
@@ -187,7 +187,7 @@ With this `{rootDir}/src/ui/tsconfig.json`:
|
|
|
187
187
|
- `svgr` (`SvgrConfig`) — svgr plugin options. [more](https://react-svgr.com/docs/options/)
|
|
188
188
|
- `entryFilter` (`string[]`) — filter used entrypoints.
|
|
189
189
|
- `excludeFromClean` (`string[]`) — do not clean provided paths before build.
|
|
190
|
-
- `
|
|
190
|
+
- `forkTsCheker` (`false | ForkTsCheckerWebpackPluginOptions`) - config for ForkTsCheckerWebpackPlugin [more](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin#options). If `false`, ForkTsCheckerWebpackPlugin will be disabled.
|
|
191
191
|
|
|
192
192
|
##### Dev build
|
|
193
193
|
|
|
@@ -6,6 +6,7 @@ import type { Configuration, ResolveOptions, DefinePlugin } from 'webpack';
|
|
|
6
6
|
import type { ServerConfiguration } from 'webpack-dev-server';
|
|
7
7
|
import type { Options as CircularDependenciesOptions } from 'circular-dependency-plugin';
|
|
8
8
|
import type { Config as SvgrConfig } from '@svgr/core';
|
|
9
|
+
import type { ForkTsCheckerWebpackPluginOptions } from 'fork-ts-checker-webpack-plugin/lib/plugin-options';
|
|
9
10
|
export interface Entities<T> {
|
|
10
11
|
data: Record<string, T>;
|
|
11
12
|
keys: string[];
|
|
@@ -137,7 +138,11 @@ export interface ClientConfig {
|
|
|
137
138
|
* use new JSX Transform
|
|
138
139
|
*/
|
|
139
140
|
newJsxTransform?: boolean;
|
|
141
|
+
/**
|
|
142
|
+
* @deprecated
|
|
143
|
+
* */
|
|
140
144
|
disableForkTsChecker?: boolean;
|
|
145
|
+
forkTsChecker?: false | ForkTsCheckerWebpackPluginOptions;
|
|
141
146
|
disableSourceMapGeneration?: boolean;
|
|
142
147
|
lazyCompilation?: boolean | LazyCompilationConfig;
|
|
143
148
|
polyfill?: {
|
|
@@ -585,8 +585,9 @@ function configurePlugins(options) {
|
|
|
585
585
|
}
|
|
586
586
|
plugins.push(new circular_dependency_plugin_1.default(circularPluginOptions));
|
|
587
587
|
}
|
|
588
|
-
if (!config.disableForkTsChecker) {
|
|
588
|
+
if (!config.disableForkTsChecker && config.forkTsChecker !== false) {
|
|
589
589
|
plugins.push(new fork_ts_checker_webpack_plugin_1.default({
|
|
590
|
+
...config.forkTsChecker,
|
|
590
591
|
typescript: {
|
|
591
592
|
typescriptPath: require.resolve((0, path_1.resolve)(paths_1.default.appNodeModules, 'typescript')),
|
|
592
593
|
configFile: (0, path_1.resolve)(paths_1.default.app, 'src/ui/tsconfig.json'),
|
|
@@ -594,6 +595,7 @@ function configurePlugins(options) {
|
|
|
594
595
|
syntactic: true,
|
|
595
596
|
},
|
|
596
597
|
mode: 'write-references',
|
|
598
|
+
...config.forkTsChecker?.typescript,
|
|
597
599
|
},
|
|
598
600
|
}));
|
|
599
601
|
}
|