@gravity-ui/app-builder 0.30.0 → 0.30.1

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.
Files changed (58) hide show
  1. package/dist/cli.js +20 -15
  2. package/dist/commands/build/build-lib.js +8 -5
  3. package/dist/commands/build/build-service/client.js +6 -3
  4. package/dist/commands/build/build-service/index.js +7 -4
  5. package/dist/commands/build/build-service/server.js +17 -11
  6. package/dist/commands/build/index.js +6 -3
  7. package/dist/commands/dev/client.js +63 -34
  8. package/dist/commands/dev/index.js +50 -21
  9. package/dist/commands/dev/server.js +42 -13
  10. package/dist/common/babel/index.js +4 -1
  11. package/dist/common/babel/ui-preset.d.ts +1 -1
  12. package/dist/common/babel/ui-preset.js +1 -0
  13. package/dist/common/child-process/controllable-script.js +32 -5
  14. package/dist/common/child-process/utils.js +30 -4
  15. package/dist/common/command.js +2 -1
  16. package/dist/common/config.js +49 -19
  17. package/dist/common/env.js +5 -3
  18. package/dist/common/library/babel-plugin-replace-paths.js +4 -2
  19. package/dist/common/library/index.js +95 -66
  20. package/dist/common/logger/colors.js +8 -2
  21. package/dist/common/logger/index.js +24 -17
  22. package/dist/common/logger/log-config.js +6 -3
  23. package/dist/common/logger/pretty-time.js +6 -2
  24. package/dist/common/models/index.d.ts +1 -1
  25. package/dist/common/models/index.js +8 -3
  26. package/dist/common/paths.js +28 -3
  27. package/dist/common/s3-upload/compress.js +12 -8
  28. package/dist/common/s3-upload/create-plugin.js +30 -4
  29. package/dist/common/s3-upload/index.js +9 -3
  30. package/dist/common/s3-upload/s3-client.js +37 -11
  31. package/dist/common/s3-upload/upload.js +38 -9
  32. package/dist/common/s3-upload/webpack-plugin.js +9 -5
  33. package/dist/common/swc/compile.js +12 -9
  34. package/dist/common/swc/index.js +7 -2
  35. package/dist/common/swc/utils.js +13 -6
  36. package/dist/common/swc/watch.js +9 -6
  37. package/dist/common/typescript/compile.js +14 -11
  38. package/dist/common/typescript/diagnostic.js +37 -11
  39. package/dist/common/typescript/transformers.js +29 -3
  40. package/dist/common/typescript/utils.js +18 -8
  41. package/dist/common/typescript/watch.js +13 -10
  42. package/dist/common/utils.js +25 -14
  43. package/dist/common/webpack/compile.js +22 -16
  44. package/dist/common/webpack/config.js +113 -80
  45. package/dist/common/webpack/node-externals.js +34 -5
  46. package/dist/common/webpack/progress-plugin.js +6 -3
  47. package/dist/common/webpack/public-path.d.ts +1 -0
  48. package/dist/common/webpack/public-path.js +1 -0
  49. package/dist/common/webpack/rspack.js +5 -1
  50. package/dist/common/webpack/runtime-versioning-plugin.js +3 -1
  51. package/dist/common/webpack/storybook.js +51 -21
  52. package/dist/common/webpack/utils.js +36 -9
  53. package/dist/common/webpack/worker/public-path.worker.d.ts +1 -0
  54. package/dist/common/webpack/worker/public-path.worker.js +1 -0
  55. package/dist/common/webpack/worker/worker-loader.js +34 -4
  56. package/dist/create-cli.js +48 -19
  57. package/dist/index.js +27 -5
  58. package/package.json +1 -2
@@ -1,17 +1,47 @@
1
- import * as path from 'node:path';
2
- import ReactRefreshWebpackPlugin from '@pmmmwh/react-refresh-webpack-plugin';
3
- import MiniCSSExtractPlugin from 'mini-css-extract-plugin';
4
- import OptimizeCSSAssetsPlugin from 'css-minimizer-webpack-plugin';
5
- import { configureModuleRules, configureOptimization, configureResolve } from './config';
6
- import { getProjectConfig, normalizeConfig } from '../config';
7
- import { isLibraryConfig } from '../models';
8
- import paths from '../paths';
9
- export async function configureServiceWebpackConfig(mode, storybookConfig) {
10
- const serviceConfig = await getProjectConfig(mode === "production" /* WebpackMode.Prod */ ? 'build' : 'dev', {
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __importDefault = (this && this.__importDefault) || function (mod) {
26
+ return (mod && mod.__esModule) ? mod : { "default": mod };
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.configureServiceWebpackConfig = configureServiceWebpackConfig;
30
+ exports.configureWebpackConfigForStorybook = configureWebpackConfigForStorybook;
31
+ const path = __importStar(require("node:path"));
32
+ const react_refresh_webpack_plugin_1 = __importDefault(require("@pmmmwh/react-refresh-webpack-plugin"));
33
+ const mini_css_extract_plugin_1 = __importDefault(require("mini-css-extract-plugin"));
34
+ const css_minimizer_webpack_plugin_1 = __importDefault(require("css-minimizer-webpack-plugin"));
35
+ const config_1 = require("./config");
36
+ const config_2 = require("../config");
37
+ const models_1 = require("../models");
38
+ const paths_1 = __importDefault(require("../paths"));
39
+ async function configureServiceWebpackConfig(mode, storybookConfig) {
40
+ const serviceConfig = await (0, config_2.getProjectConfig)(mode === "production" /* WebpackMode.Prod */ ? 'build' : 'dev', {
11
41
  storybook: true,
12
42
  });
13
43
  let options = {};
14
- if (isLibraryConfig(serviceConfig)) {
44
+ if ((0, models_1.isLibraryConfig)(serviceConfig)) {
15
45
  options = {
16
46
  includes: ['src'],
17
47
  newJsxTransform: serviceConfig.lib?.newJsxTransform,
@@ -66,10 +96,10 @@ export async function configureServiceWebpackConfig(mode, storybookConfig) {
66
96
  },
67
97
  };
68
98
  }
69
- export async function configureWebpackConfigForStorybook(mode, userConfig = {}, storybookModuleRules = []) {
99
+ async function configureWebpackConfigForStorybook(mode, userConfig = {}, storybookModuleRules = []) {
70
100
  const isEnvDevelopment = mode === "development" /* WebpackMode.Dev */;
71
101
  const isEnvProduction = mode === "production" /* WebpackMode.Prod */;
72
- const config = await normalizeConfig({
102
+ const config = await (0, config_2.normalizeConfig)({
73
103
  client: {
74
104
  ...userConfig,
75
105
  // TODO support rspack for storybook
@@ -82,18 +112,18 @@ export async function configureWebpackConfigForStorybook(mode, userConfig = {},
82
112
  isEnvProduction,
83
113
  config: config.client,
84
114
  configType: mode,
85
- buildDirectory: config.client.outputPath || paths.appBuild,
86
- entriesDirectory: paths.appEntry,
115
+ buildDirectory: config.client.outputPath || paths_1.default.appBuild,
116
+ entriesDirectory: paths_1.default.appEntry,
87
117
  isSsr: false,
88
118
  };
89
119
  return {
90
120
  module: {
91
- rules: await configureModuleRules(helperOptions, storybookModuleRules.filter((rule) => rule !== '...')),
121
+ rules: await (0, config_1.configureModuleRules)(helperOptions, storybookModuleRules.filter((rule) => rule !== '...')),
92
122
  },
93
- resolve: configureResolve(helperOptions),
123
+ resolve: (0, config_1.configureResolve)(helperOptions),
94
124
  plugins: configurePlugins(helperOptions),
95
125
  optimization: {
96
- minimizer: configureOptimization(helperOptions).minimizer,
126
+ minimizer: (0, config_1.configureOptimization)(helperOptions).minimizer,
97
127
  },
98
128
  };
99
129
  }
@@ -115,15 +145,15 @@ function configurePlugins({ isEnvDevelopment, isEnvProduction, config }) {
115
145
  }));
116
146
  }
117
147
  if (isEnvDevelopment && config.reactRefresh !== false) {
118
- plugins.push(new ReactRefreshWebpackPlugin(config.reactRefresh({})));
148
+ plugins.push(new react_refresh_webpack_plugin_1.default(config.reactRefresh({})));
119
149
  }
120
150
  if (isEnvProduction) {
121
- plugins.push(new MiniCSSExtractPlugin({
151
+ plugins.push(new mini_css_extract_plugin_1.default({
122
152
  filename: 'css/[name].[contenthash:8].css',
123
153
  chunkFilename: 'css/[name].[contenthash:8].chunk.css',
124
154
  ignoreOrder: true,
125
155
  }));
126
- plugins.push(new OptimizeCSSAssetsPlugin({
156
+ plugins.push(new css_minimizer_webpack_plugin_1.default({
127
157
  minimizerOptions: {
128
158
  preset: [
129
159
  'default',
@@ -1,8 +1,35 @@
1
- import * as path from 'node:path';
2
- import * as ts from 'typescript';
3
- import { prettyTime } from '../logger/pretty-time';
4
- import { getTsProjectConfig } from '../typescript/utils';
5
- export function compilerHandlerFactory(logger, onCompilationEnd) {
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.compilerHandlerFactory = compilerHandlerFactory;
27
+ exports.resolveTsConfigPathsToAlias = resolveTsConfigPathsToAlias;
28
+ const path = __importStar(require("node:path"));
29
+ const ts = __importStar(require("typescript"));
30
+ const pretty_time_1 = require("../logger/pretty-time");
31
+ const utils_1 = require("../typescript/utils");
32
+ function compilerHandlerFactory(logger, onCompilationEnd) {
6
33
  return async (err, stats) => {
7
34
  if (err) {
8
35
  logger.panic(err.message, err);
@@ -28,12 +55,12 @@ export function compilerHandlerFactory(logger, onCompilationEnd) {
28
55
  if (clientStats) {
29
56
  const { startTime = 0, endTime = 0 } = clientStats;
30
57
  const time = endTime - startTime;
31
- logger.success(`Client was successfully compiled in ${prettyTime(BigInt(time) * BigInt(1_000_000))}`);
58
+ logger.success(`Client was successfully compiled in ${(0, pretty_time_1.prettyTime)(BigInt(time) * BigInt(1_000_000))}`);
32
59
  }
33
60
  if (ssrStats) {
34
61
  const { startTime = 0, endTime = 0 } = ssrStats;
35
62
  const time = endTime - startTime;
36
- logger.success(`SSR: Client was successfully compiled in ${prettyTime(BigInt(time) * BigInt(1_000_000))}`);
63
+ logger.success(`SSR: Client was successfully compiled in ${(0, pretty_time_1.prettyTime)(BigInt(time) * BigInt(1_000_000))}`);
37
64
  }
38
65
  if (!clientStats && !ssrStats) {
39
66
  logger.success(`Client was successfully compiled`);
@@ -41,10 +68,10 @@ export function compilerHandlerFactory(logger, onCompilationEnd) {
41
68
  };
42
69
  }
43
70
  const endStarRe = /\/?\*$/;
44
- export function resolveTsConfigPathsToAlias(projectPath, filename = 'tsconfig.json') {
71
+ function resolveTsConfigPathsToAlias(projectPath, filename = 'tsconfig.json') {
45
72
  let parsed;
46
73
  try {
47
- parsed = getTsProjectConfig(ts, projectPath, filename);
74
+ parsed = (0, utils_1.getTsProjectConfig)(ts, projectPath, filename);
48
75
  }
49
76
  catch {
50
77
  return {};
@@ -0,0 +1 @@
1
+ export {};
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
2
  /* eslint-disable no-implicit-globals, camelcase */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
3
4
  // @ts-expect-error
4
5
  __webpack_public_path__ = self.__PUBLIC_PATH__;
@@ -1,8 +1,37 @@
1
- import * as path from 'node:path';
2
- import paths from '../../paths';
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __importDefault = (this && this.__importDefault) || function (mod) {
26
+ return (mod && mod.__esModule) ? mod : { "default": mod };
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.pitch = void 0;
30
+ const path = __importStar(require("node:path"));
31
+ const paths_1 = __importDefault(require("../../paths"));
3
32
  const pluginId = 'APP_BUILDER_WORKER_LOADER';
4
33
  const publicPath = path.resolve(__dirname, 'public-path.worker.js');
5
- export const pitch = function (request) {
34
+ const pitch = function (request) {
6
35
  this.cacheable(false);
7
36
  if (!this._compiler || !this._compilation) {
8
37
  throw new Error('Something went wrong');
@@ -22,7 +51,7 @@ export const pitch = function (request) {
22
51
  chunkFilename,
23
52
  publicPath: compilerOptions.output.publicPath,
24
53
  globalObject: 'self',
25
- devtoolNamespace: path.resolve('/', path.relative(paths.app, this.resource)),
54
+ devtoolNamespace: path.resolve('/', path.relative(paths_1.default.app, this.resource)),
26
55
  };
27
56
  const workerCompiler = this._compilation.createChildCompiler(`worker ${request}`, workerOptions);
28
57
  const { EntryPlugin, node: { NodeTargetPlugin }, web: { FetchCompileWasmPlugin, FetchCompileAsyncWasmPlugin }, webworker: { WebWorkerTemplatePlugin }, } = webpack;
@@ -116,6 +145,7 @@ export const pitch = function (request) {
116
145
  });
117
146
  });
118
147
  };
148
+ exports.pitch = pitch;
119
149
  function configureSourceMap(compiler) {
120
150
  const devtool = compiler.options.devtool;
121
151
  if (devtool) {
@@ -1,11 +1,40 @@
1
- import yargs from 'yargs';
2
- import { hideBin } from 'yargs/helpers';
3
- import * as path from 'node:path';
4
- import logger from './common/logger';
5
- import { getProjectConfig } from './common/config';
6
- import { isLibraryConfig } from './common/models';
7
- export function createCli(argv) {
8
- const cli = yargs().parserConfiguration({
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __importDefault = (this && this.__importDefault) || function (mod) {
26
+ return (mod && mod.__esModule) ? mod : { "default": mod };
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.createCli = createCli;
30
+ const yargs_1 = __importDefault(require("yargs"));
31
+ const helpers_1 = require("yargs/helpers");
32
+ const path = __importStar(require("node:path"));
33
+ const logger_1 = __importDefault(require("./common/logger"));
34
+ const config_1 = require("./common/config");
35
+ const models_1 = require("./common/models");
36
+ function createCli(argv) {
37
+ const cli = (0, yargs_1.default)().parserConfiguration({
9
38
  'boolean-negation': false,
10
39
  });
11
40
  cli.scriptName('app-builder')
@@ -115,7 +144,7 @@ export function createCli(argv) {
115
144
  describe: 'Display final webpack configurations for debugging purposes',
116
145
  }),
117
146
  handler: handlerP(getCommandHandler('dev', (args, cmd) => {
118
- if (isLibraryConfig(args)) {
147
+ if ((0, models_1.isLibraryConfig)(args)) {
119
148
  throw new Error('dev command can be used only for services, but got the library config');
120
149
  }
121
150
  process.env.NODE_ENV = process.env.NODE_ENV || 'development';
@@ -175,7 +204,7 @@ export function createCli(argv) {
175
204
  .strict()
176
205
  .demandCommand(1, `Pass --help to see all available commands and options.`)
177
206
  .recommendCommands()
178
- .parse(hideBin(argv));
207
+ .parse((0, helpers_1.hideBin)(argv));
179
208
  }
180
209
  function getVersionInfo() {
181
210
  const { version } = require('../package.json');
@@ -183,16 +212,16 @@ function getVersionInfo() {
183
212
  }
184
213
  function handlerP(fn) {
185
214
  return (args) => {
186
- Promise.resolve(fn(args)).then(() => process.exit(0), (err) => logger.panic(err));
215
+ Promise.resolve(fn(args)).then(() => process.exit(0), (err) => logger_1.default.panic(err));
187
216
  };
188
217
  }
189
218
  function getCommandHandler(command, handler) {
190
219
  return async (argv) => {
191
- const config = await getProjectConfig(command, argv);
192
- logger.setVerbose(Boolean(config.verbose));
193
- const args = { ...config, logger };
220
+ const config = await (0, config_1.getProjectConfig)(command, argv);
221
+ logger_1.default.setVerbose(Boolean(config.verbose));
222
+ const args = { ...config, logger: logger_1.default };
194
223
  const localCmd = resolveLocalCommand(command);
195
- logger.verbose(`running command: ${command}`);
224
+ logger_1.default.verbose(`running command: ${command}`);
196
225
  return handler ? handler(args, localCmd) : localCmd(args);
197
226
  };
198
227
  }
@@ -200,8 +229,8 @@ function resolveLocalCommand(command) {
200
229
  try {
201
230
  const cmdPath = path.resolve(__dirname, `commands/${command}`);
202
231
  if (!cmdPath)
203
- return logger.panic(`There was a problem loading the ${command} command.`);
204
- logger.verbose(`loading command from: ${cmdPath}`);
232
+ return logger_1.default.panic(`There was a problem loading the ${command} command.`);
233
+ logger_1.default.verbose(`loading command from: ${cmdPath}`);
205
234
  // eslint-disable-next-line security/detect-non-literal-require
206
235
  let cmd = require(cmdPath);
207
236
  if (cmd.__esModule) {
@@ -210,9 +239,9 @@ function resolveLocalCommand(command) {
210
239
  if (typeof cmd === 'function') {
211
240
  return cmd;
212
241
  }
213
- return logger.panic(`Handler for command "${command}" is not a function.`);
242
+ return logger_1.default.panic(`Handler for command "${command}" is not a function.`);
214
243
  }
215
244
  catch (err) {
216
- return logger.panic(`There was a problem loading the "${command}" command.`, err);
245
+ return logger_1.default.panic(`There was a problem loading the "${command}" command.`, err);
217
246
  }
218
247
  }
package/dist/index.js CHANGED
@@ -1,5 +1,27 @@
1
- export { configureWebpackConfigForStorybook, configureServiceWebpackConfig, } from './common/webpack/storybook';
2
- export * from './common/s3-upload';
3
- export { createTransformPathsToLocalModules } from './common/typescript/transformers';
4
- export { defineConfig } from './common/models';
5
- export { babelPreset } from './common/babel';
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.babelPreset = exports.defineConfig = exports.createTransformPathsToLocalModules = exports.configureServiceWebpackConfig = exports.configureWebpackConfigForStorybook = void 0;
18
+ var storybook_1 = require("./common/webpack/storybook");
19
+ Object.defineProperty(exports, "configureWebpackConfigForStorybook", { enumerable: true, get: function () { return storybook_1.configureWebpackConfigForStorybook; } });
20
+ Object.defineProperty(exports, "configureServiceWebpackConfig", { enumerable: true, get: function () { return storybook_1.configureServiceWebpackConfig; } });
21
+ __exportStar(require("./common/s3-upload"), exports);
22
+ var transformers_1 = require("./common/typescript/transformers");
23
+ Object.defineProperty(exports, "createTransformPathsToLocalModules", { enumerable: true, get: function () { return transformers_1.createTransformPathsToLocalModules; } });
24
+ var models_1 = require("./common/models");
25
+ Object.defineProperty(exports, "defineConfig", { enumerable: true, get: function () { return models_1.defineConfig; } });
26
+ var babel_1 = require("./common/babel");
27
+ Object.defineProperty(exports, "babelPreset", { enumerable: true, get: function () { return babel_1.babelPreset; } });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/app-builder",
3
- "version": "0.30.0",
3
+ "version": "0.30.1",
4
4
  "description": "Develop and build your React client-server projects, powered by typescript and webpack",
5
5
  "license": "MIT",
6
6
  "type": "commonjs",
@@ -69,7 +69,6 @@
69
69
  "@babel/preset-typescript": "^7.26.0",
70
70
  "@babel/runtime": "^7.26.0",
71
71
  "@module-federation/enhanced": "^0.18.0",
72
- "@module-federation/sdk": "^0.18.0",
73
72
  "@okikio/sharedworker": "^1.0.7",
74
73
  "@pmmmwh/react-refresh-webpack-plugin": "^0.5.15",
75
74
  "@rsdoctor/rspack-plugin": "^1.0.2",