@gravity-ui/app-builder 0.34.0 → 0.35.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.
@@ -3,7 +3,7 @@ import type { EditorFeature } from 'monaco-editor-webpack-plugin/out/features';
3
3
  import type { IFeatureDefinition } from 'monaco-editor-webpack-plugin/out/types';
4
4
  import type { Options as MomentTzOptions } from 'moment-timezone-data-webpack-plugin';
5
5
  import type { Configuration, DefinePlugin, FileCacheOptions, MemoryCacheOptions } from 'webpack';
6
- import type { LightningCssMinimizerRspackPluginOptions, Configuration as RspackConfiguration, SwcJsMinimizerRspackPluginOptions } from '@rspack/core';
6
+ import type { LazyCompilationOptions, LightningCssMinimizerRspackPluginOptions, Configuration as RspackConfiguration, SwcJsMinimizerRspackPluginOptions } from '@rspack/core';
7
7
  import type * as Babel from '@babel/core';
8
8
  import type * as Swc from '@swc/core';
9
9
  import type { ServerConfiguration } from 'webpack-dev-server';
@@ -52,13 +52,8 @@ export interface LibraryConfig {
52
52
  };
53
53
  verbose?: boolean;
54
54
  }
55
- interface LazyCompilationConfig {
55
+ interface LazyCompilationConfig extends Pick<LazyCompilationOptions, 'imports' | 'entries' | 'test'> {
56
56
  port?: number;
57
- /**
58
- * @default true
59
- * disable lazy compilation for entries
60
- */
61
- entries?: boolean;
62
57
  }
63
58
  export type ModuleFederationConfig = Omit<moduleFederationPlugin.ModuleFederationPluginOptions, 'name' | 'remotes'> & {
64
59
  /**
@@ -310,6 +310,7 @@ function configureRspackExperiments(options) {
310
310
  entries: false,
311
311
  imports: true,
312
312
  prefix: '/build/lazy-',
313
+ test: config.lazyCompilation?.test ?? undefined,
313
314
  };
314
315
  }
315
316
  const filesystemCacheOptions = typeof config.cache === 'object' && config.cache.type === 'filesystem'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/app-builder",
3
- "version": "0.34.0",
3
+ "version": "0.35.0",
4
4
  "description": "Develop and build your React client-server projects, powered by typescript and webpack",
5
5
  "license": "MIT",
6
6
  "type": "commonjs",