@tramvai/cli 5.53.80 → 6.62.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.
- package/bin/spawn.js +8 -2
- package/lib/api/start/application.experimental.d.ts +7 -0
- package/lib/api/start/application.experimental.d.ts.map +1 -0
- package/lib/api/start/application.experimental.js +275 -0
- package/lib/api/start/application.experimental.js.map +1 -0
- package/lib/api/start/index.d.ts +1 -0
- package/lib/api/start/index.d.ts.map +1 -1
- package/lib/api/start/index.js +17 -6
- package/lib/api/start/index.js.map +1 -1
- package/lib/builder/webpack/devServer/setup.d.ts.map +1 -1
- package/lib/builder/webpack/devServer/setup.js +3 -1
- package/lib/builder/webpack/devServer/setup.js.map +1 -1
- package/lib/builder/webpack/providers/analyze/shared.d.ts.map +1 -1
- package/lib/builder/webpack/providers/analyze/shared.js +5 -9
- package/lib/builder/webpack/providers/analyze/shared.js.map +1 -1
- package/lib/builder/webpack/providers/client.d.ts.map +1 -1
- package/lib/builder/webpack/providers/client.js +10 -9
- package/lib/builder/webpack/providers/client.js.map +1 -1
- package/lib/builder/webpack/providers/server.d.ts.map +1 -1
- package/lib/builder/webpack/providers/server.js +10 -9
- package/lib/builder/webpack/providers/server.js.map +1 -1
- package/lib/cli/CLI.d.ts +1 -1
- package/lib/cli/CLI.d.ts.map +1 -1
- package/lib/cli/CLI.js.map +1 -1
- package/lib/cli/bin-init.js +0 -2
- package/lib/cli/bin-init.js.map +1 -1
- package/lib/cli/index.d.ts.map +1 -1
- package/lib/cli/index.js +1 -12
- package/lib/cli/index.js.map +1 -1
- package/lib/cli/runCLI.d.ts.map +1 -1
- package/lib/cli/runCLI.js.map +1 -1
- package/lib/commands/add/command.d.ts +1 -4
- package/lib/commands/add/command.d.ts.map +1 -1
- package/lib/commands/add/command.js +3 -2
- package/lib/commands/add/command.js.map +1 -1
- package/lib/commands/analyze/command.d.ts +1 -1
- package/lib/commands/analyze/command.d.ts.map +1 -1
- package/lib/commands/analyze/command.js +11 -13
- package/lib/commands/analyze/command.js.map +1 -1
- package/lib/commands/benchmark/command.d.ts +1 -1
- package/lib/commands/benchmark/command.d.ts.map +1 -1
- package/lib/commands/benchmark/command.js +8 -9
- package/lib/commands/benchmark/command.js.map +1 -1
- package/lib/commands/build/build.d.ts.map +1 -1
- package/lib/commands/build/build.js +1 -0
- package/lib/commands/build/build.js.map +1 -1
- package/lib/commands/build/command.d.ts +1 -1
- package/lib/commands/build/command.d.ts.map +1 -1
- package/lib/commands/build/command.js +12 -15
- package/lib/commands/build/command.js.map +1 -1
- package/lib/commands/generate/command.d.ts +1 -1
- package/lib/commands/generate/command.d.ts.map +1 -1
- package/lib/commands/generate/command.js +3 -2
- package/lib/commands/generate/command.js.map +1 -1
- package/lib/commands/lint/command.d.ts +1 -1
- package/lib/commands/lint/command.d.ts.map +1 -1
- package/lib/commands/lint/command.js +3 -2
- package/lib/commands/lint/command.js.map +1 -1
- package/lib/commands/new/command.d.ts +0 -1
- package/lib/commands/new/command.d.ts.map +1 -1
- package/lib/commands/new/command.js +0 -1
- package/lib/commands/new/command.js.map +1 -1
- package/lib/commands/new/steps/installDependencies.js +3 -3
- package/lib/commands/new/steps/installDependencies.js.map +1 -1
- package/lib/commands/start/command.d.ts +1 -1
- package/lib/commands/start/command.d.ts.map +1 -1
- package/lib/commands/start/command.js +18 -15
- package/lib/commands/start/command.js.map +1 -1
- package/lib/commands/start-prod/command.d.ts +1 -1
- package/lib/commands/start-prod/command.d.ts.map +1 -1
- package/lib/commands/start-prod/command.js +11 -13
- package/lib/commands/start-prod/command.js.map +1 -1
- package/lib/commands/static/command.d.ts +1 -1
- package/lib/commands/static/command.d.ts.map +1 -1
- package/lib/commands/static/command.js +7 -3
- package/lib/commands/static/command.js.map +1 -1
- package/lib/commands/update/command.d.ts +1 -4
- package/lib/commands/update/command.d.ts.map +1 -1
- package/lib/commands/update/command.js +3 -2
- package/lib/commands/update/command.js.map +1 -1
- package/lib/external/config.d.ts.map +1 -1
- package/lib/external/config.js.map +1 -1
- package/lib/library/babel/index.d.ts +3 -9
- package/lib/library/babel/index.d.ts.map +1 -1
- package/lib/library/babel/index.js +3 -132
- package/lib/library/babel/index.js.map +1 -1
- package/lib/library/swc/index.d.ts +3 -3
- package/lib/library/swc/index.d.ts.map +1 -1
- package/lib/library/swc/index.js +4 -114
- package/lib/library/swc/index.js.map +1 -1
- package/lib/library/webpack/application/client/common.d.ts.map +1 -1
- package/lib/library/webpack/application/client/common.js +10 -9
- package/lib/library/webpack/application/client/common.js.map +1 -1
- package/lib/library/webpack/application/common.d.ts.map +1 -1
- package/lib/library/webpack/application/common.js +3 -4
- package/lib/library/webpack/application/common.js.map +1 -1
- package/lib/library/webpack/blocks/pwa/client.d.ts.map +1 -1
- package/lib/library/webpack/blocks/pwa/client.js +9 -58
- package/lib/library/webpack/blocks/pwa/client.js.map +1 -1
- package/lib/library/webpack/blocks/resolve.d.ts.map +1 -1
- package/lib/library/webpack/blocks/resolve.js +1 -0
- package/lib/library/webpack/blocks/resolve.js.map +1 -1
- package/lib/library/webpack/child-app/client/common.d.ts.map +1 -1
- package/lib/library/webpack/child-app/client/common.js +2 -2
- package/lib/library/webpack/child-app/client/common.js.map +1 -1
- package/lib/library/webpack/child-app/common.d.ts.map +1 -1
- package/lib/library/webpack/child-app/common.js +3 -4
- package/lib/library/webpack/child-app/common.js.map +1 -1
- package/lib/library/webpack/utils/threadLoader.d.ts.map +1 -1
- package/lib/library/webpack/utils/threadLoader.js +20 -3
- package/lib/library/webpack/utils/threadLoader.js.map +1 -1
- package/lib/library/webpack/utils/transpiler.js +1 -1
- package/lib/library/webpack/utils/transpiler.js.map +1 -1
- package/lib/models/analytics/utils.d.ts +2 -1
- package/lib/models/analytics/utils.d.ts.map +1 -1
- package/lib/models/analytics/utils.js +3 -0
- package/lib/models/analytics/utils.js.map +1 -1
- package/lib/models/command.d.ts +1 -1
- package/lib/models/command.d.ts.map +1 -1
- package/lib/models/command.js +1 -1
- package/lib/models/command.js.map +1 -1
- package/lib/models/context.d.ts +1 -1
- package/lib/models/context.d.ts.map +1 -1
- package/lib/models/logger.d.ts +0 -1
- package/lib/models/logger.d.ts.map +1 -1
- package/lib/models/logger.js +2 -3
- package/lib/models/logger.js.map +1 -1
- package/lib/schema/autogeneratedSchema.json +15 -15
- package/lib/typings/configEntry/application.d.ts +1 -1
- package/lib/typings/configEntry/application.d.ts.map +1 -1
- package/lib/typings/public.d.ts +0 -1
- package/lib/typings/public.d.ts.map +1 -1
- package/lib/typings/public.js +0 -2
- package/lib/typings/public.js.map +1 -1
- package/lib/utils/cpu-profile.d.ts.map +1 -1
- package/lib/utils/cpu-profile.js +0 -1
- package/lib/utils/cpu-profile.js.map +1 -1
- package/package.json +23 -27
- package/schema.json +15 -15
- package/src/api/start/__integration__/start.test.ts +8 -0
- package/src/api/start/application.experimental.ts +305 -0
- package/src/api/start/index.ts +20 -4
- package/src/builder/webpack/devServer/setup.ts +1 -0
- package/src/builder/webpack/providers/analyze/shared.ts +6 -10
- package/src/builder/webpack/providers/client.ts +15 -10
- package/src/builder/webpack/providers/server.ts +15 -10
- package/src/cli/CLI.ts +1 -1
- package/src/cli/bin-init.ts +0 -2
- package/src/cli/index.ts +4 -11
- package/src/cli/runCLI.ts +0 -1
- package/src/commands/add/command.ts +3 -2
- package/src/commands/analyze/command.ts +12 -14
- package/src/commands/benchmark/command.ts +9 -10
- package/src/commands/build/build.ts +2 -0
- package/src/commands/build/command.ts +13 -16
- package/src/commands/generate/command.ts +3 -2
- package/src/commands/lint/command.ts +3 -2
- package/src/commands/new/command.ts +0 -2
- package/src/commands/new/steps/installDependencies.ts +3 -3
- package/src/commands/new/templates/shared/_prettierrc.js.hbs +1 -1
- package/src/commands/start/command.ts +20 -16
- package/src/commands/start-prod/command.ts +12 -14
- package/src/commands/static/command.ts +7 -3
- package/src/commands/update/command.ts +3 -2
- package/src/external/config.ts +1 -0
- package/src/library/babel/index.ts +3 -160
- package/src/library/swc/__integration__/__snapshots__/swc.build.test.ts.snap +46 -28
- package/src/library/swc/__integration__/__snapshots__/swc.start.test.ts.snap +12 -8
- package/src/library/swc/__integration__/swc.start.test.ts +4 -4
- package/src/library/swc/index.ts +3 -139
- package/src/library/webpack/application/client/common.ts +12 -7
- package/src/library/webpack/application/common.ts +8 -4
- package/src/library/webpack/blocks/pwa/client.ts +13 -64
- package/src/library/webpack/blocks/resolve.ts +1 -0
- package/src/library/webpack/child-app/client/common.ts +2 -2
- package/src/library/webpack/child-app/common.ts +7 -5
- package/src/library/webpack/utils/threadLoader.ts +21 -0
- package/src/library/webpack/utils/transpiler.ts +2 -2
- package/src/models/analytics/utils.ts +6 -2
- package/src/models/command.ts +3 -4
- package/src/models/context.ts +1 -1
- package/src/models/logger.ts +1 -3
- package/src/schema/autogeneratedSchema.json +15 -15
- package/src/typings/configEntry/application.ts +5 -1
- package/src/typings/public.ts +0 -2
- package/src/utils/cpu-profile.ts +0 -1
- package/lib/library/babel/plugins/create-token-pure.d.ts +0 -7
- package/lib/library/babel/plugins/create-token-pure.d.ts.map +0 -1
- package/lib/library/babel/plugins/create-token-pure.js +0 -39
- package/lib/library/babel/plugins/create-token-pure.js.map +0 -1
- package/lib/library/babel/plugins/fill-action-name.d.ts +0 -3
- package/lib/library/babel/plugins/fill-action-name.d.ts.map +0 -1
- package/lib/library/babel/plugins/fill-action-name.js +0 -107
- package/lib/library/babel/plugins/fill-action-name.js.map +0 -1
- package/lib/library/babel/plugins/fill-declare-action-name.d.ts +0 -6
- package/lib/library/babel/plugins/fill-declare-action-name.d.ts.map +0 -1
- package/lib/library/babel/plugins/fill-declare-action-name.js +0 -94
- package/lib/library/babel/plugins/fill-declare-action-name.js.map +0 -1
- package/lib/library/babel/plugins/lazy-component/lazy-component.d.ts +0 -7
- package/lib/library/babel/plugins/lazy-component/lazy-component.d.ts.map +0 -1
- package/lib/library/babel/plugins/lazy-component/lazy-component.js +0 -75
- package/lib/library/babel/plugins/lazy-component/lazy-component.js.map +0 -1
- package/lib/library/babel/plugins/lazy-component/legacy-universal-replace.d.ts +0 -14
- package/lib/library/babel/plugins/lazy-component/legacy-universal-replace.d.ts.map +0 -1
- package/lib/library/babel/plugins/lazy-component/legacy-universal-replace.js +0 -53
- package/lib/library/babel/plugins/lazy-component/legacy-universal-replace.js.map +0 -1
- package/lib/library/babel/plugins/lazy-component/properties/chunkName.d.ts +0 -3
- package/lib/library/babel/plugins/lazy-component/properties/chunkName.d.ts.map +0 -1
- package/lib/library/babel/plugins/lazy-component/properties/chunkName.js +0 -133
- package/lib/library/babel/plugins/lazy-component/properties/chunkName.js.map +0 -1
- package/lib/library/babel/plugins/lazy-component/properties/importAsync.d.ts +0 -3
- package/lib/library/babel/plugins/lazy-component/properties/importAsync.d.ts.map +0 -1
- package/lib/library/babel/plugins/lazy-component/properties/importAsync.js +0 -11
- package/lib/library/babel/plugins/lazy-component/properties/importAsync.js.map +0 -1
- package/lib/library/babel/plugins/lazy-component/properties/isReady.d.ts +0 -3
- package/lib/library/babel/plugins/lazy-component/properties/isReady.d.ts.map +0 -1
- package/lib/library/babel/plugins/lazy-component/properties/isReady.js +0 -14
- package/lib/library/babel/plugins/lazy-component/properties/isReady.js.map +0 -1
- package/lib/library/babel/plugins/lazy-component/properties/requireAsync.d.ts +0 -3
- package/lib/library/babel/plugins/lazy-component/properties/requireAsync.d.ts.map +0 -1
- package/lib/library/babel/plugins/lazy-component/properties/requireAsync.js +0 -15
- package/lib/library/babel/plugins/lazy-component/properties/requireAsync.js.map +0 -1
- package/lib/library/babel/plugins/lazy-component/properties/requireSync.d.ts +0 -3
- package/lib/library/babel/plugins/lazy-component/properties/requireSync.d.ts.map +0 -1
- package/lib/library/babel/plugins/lazy-component/properties/requireSync.js +0 -16
- package/lib/library/babel/plugins/lazy-component/properties/requireSync.js.map +0 -1
- package/lib/library/babel/plugins/lazy-component/properties/resolve.d.ts +0 -3
- package/lib/library/babel/plugins/lazy-component/properties/resolve.d.ts.map +0 -1
- package/lib/library/babel/plugins/lazy-component/properties/resolve.js +0 -14
- package/lib/library/babel/plugins/lazy-component/properties/resolve.js.map +0 -1
- package/lib/library/babel/plugins/lazy-component/properties/types.d.ts +0 -14
- package/lib/library/babel/plugins/lazy-component/properties/types.d.ts.map +0 -1
- package/lib/library/babel/plugins/lazy-component/properties/types.js +0 -3
- package/lib/library/babel/plugins/lazy-component/properties/types.js.map +0 -1
- package/lib/library/babel/plugins/lazy-component/properties/utils/webpackComments.d.ts +0 -14
- package/lib/library/babel/plugins/lazy-component/properties/utils/webpackComments.d.ts.map +0 -1
- package/lib/library/babel/plugins/lazy-component/properties/utils/webpackComments.js +0 -57
- package/lib/library/babel/plugins/lazy-component/properties/utils/webpackComments.js.map +0 -1
- package/lib/library/babel/plugins/provider-stack.d.ts +0 -4
- package/lib/library/babel/plugins/provider-stack.d.ts.map +0 -1
- package/lib/library/babel/plugins/provider-stack.js +0 -63
- package/lib/library/babel/plugins/provider-stack.js.map +0 -1
- package/lib/library/babel/plugins/react-compiler.d.ts +0 -13
- package/lib/library/babel/plugins/react-compiler.d.ts.map +0 -1
- package/lib/library/babel/plugins/react-compiler.js +0 -27
- package/lib/library/babel/plugins/react-compiler.js.map +0 -1
- package/lib/library/babel/plugins/react-element-info-unique.d.ts +0 -26
- package/lib/library/babel/plugins/react-element-info-unique.d.ts.map +0 -1
- package/lib/library/babel/plugins/react-element-info-unique.js +0 -112
- package/lib/library/babel/plugins/react-element-info-unique.js.map +0 -1
- package/lib/library/babel/plugins/types.h.d.ts +0 -7
- package/lib/library/babel/plugins/types.h.d.ts.map +0 -1
- package/lib/library/babel/plugins/types.h.js +0 -3
- package/lib/library/babel/plugins/types.h.js.map +0 -1
- package/lib/library/webpack/plugins/AssetsIntegritiesPlugin.d.ts +0 -8
- package/lib/library/webpack/plugins/AssetsIntegritiesPlugin.d.ts.map +0 -1
- package/lib/library/webpack/plugins/AssetsIntegritiesPlugin.js +0 -29
- package/lib/library/webpack/plugins/AssetsIntegritiesPlugin.js.map +0 -1
- package/lib/library/webpack/plugins/AutoPublicPathPlugin.d.ts +0 -4
- package/lib/library/webpack/plugins/AutoPublicPathPlugin.d.ts.map +0 -1
- package/lib/library/webpack/plugins/AutoPublicPathPlugin.js +0 -23
- package/lib/library/webpack/plugins/AutoPublicPathPlugin.js.map +0 -1
- package/lib/library/webpack/plugins/ModuleFederationFixRange.d.ts +0 -24
- package/lib/library/webpack/plugins/ModuleFederationFixRange.d.ts.map +0 -1
- package/lib/library/webpack/plugins/ModuleFederationFixRange.js +0 -127
- package/lib/library/webpack/plugins/ModuleFederationFixRange.js.map +0 -1
- package/lib/library/webpack/plugins/ModuleFederationIgnoreEntries.d.ts +0 -15
- package/lib/library/webpack/plugins/ModuleFederationIgnoreEntries.d.ts.map +0 -1
- package/lib/library/webpack/plugins/ModuleFederationIgnoreEntries.js +0 -49
- package/lib/library/webpack/plugins/ModuleFederationIgnoreEntries.js.map +0 -1
- package/lib/library/webpack/plugins/PolyfillCondition.d.ts +0 -8
- package/lib/library/webpack/plugins/PolyfillCondition.d.ts.map +0 -1
- package/lib/library/webpack/plugins/PolyfillCondition.js +0 -46
- package/lib/library/webpack/plugins/PolyfillCondition.js.map +0 -1
- package/lib/library/webpack/plugins/PurifyStatsPlugin.d.ts +0 -15
- package/lib/library/webpack/plugins/PurifyStatsPlugin.d.ts.map +0 -1
- package/lib/library/webpack/plugins/PurifyStatsPlugin.js +0 -47
- package/lib/library/webpack/plugins/PurifyStatsPlugin.js.map +0 -1
- package/lib/library/webpack/plugins/PwaIconsPlugin.d.ts +0 -12
- package/lib/library/webpack/plugins/PwaIconsPlugin.d.ts.map +0 -1
- package/lib/library/webpack/plugins/PwaIconsPlugin.js +0 -78
- package/lib/library/webpack/plugins/PwaIconsPlugin.js.map +0 -1
- package/lib/library/webpack/plugins/WebManifestPlugin.d.ts +0 -13
- package/lib/library/webpack/plugins/WebManifestPlugin.d.ts.map +0 -1
- package/lib/library/webpack/plugins/WebManifestPlugin.js +0 -47
- package/lib/library/webpack/plugins/WebManifestPlugin.js.map +0 -1
- package/lib/library/webpack/utils/polyfills/const.d.ts +0 -3
- package/lib/library/webpack/utils/polyfills/const.d.ts.map +0 -1
- package/lib/library/webpack/utils/polyfills/const.js +0 -49
- package/lib/library/webpack/utils/polyfills/const.js.map +0 -1
- package/lib/library/webpack/utils/polyfills/polyfillCondition.d.ts +0 -8
- package/lib/library/webpack/utils/polyfills/polyfillCondition.d.ts.map +0 -1
- package/lib/library/webpack/utils/polyfills/polyfillCondition.js +0 -51
- package/lib/library/webpack/utils/polyfills/polyfillCondition.js.map +0 -1
- package/lib/library/webpack/utils/polyfills/specToFeature.d.ts +0 -7
- package/lib/library/webpack/utils/polyfills/specToFeature.d.ts.map +0 -1
- package/lib/library/webpack/utils/polyfills/specToFeature.js +0 -207
- package/lib/library/webpack/utils/polyfills/specToFeature.js.map +0 -1
- package/lib/models/analytics/analytics.d.ts +0 -156
- package/lib/models/analytics/analytics.d.ts.map +0 -1
- package/lib/models/analytics/analytics.js +0 -259
- package/lib/models/analytics/analytics.js.map +0 -1
- package/lib/models/analytics/analytics.worker.d.ts +0 -5
- package/lib/models/analytics/analytics.worker.d.ts.map +0 -1
- package/lib/models/analytics/analytics.worker.js +0 -87
- package/lib/models/analytics/analytics.worker.js.map +0 -1
- package/lib/typings/pwa/index.d.ts +0 -80
- package/lib/typings/pwa/index.d.ts.map +0 -1
- package/lib/typings/pwa/index.js +0 -3
- package/lib/typings/pwa/index.js.map +0 -1
- package/lib/utils/errors.d.ts +0 -7
- package/lib/utils/errors.d.ts.map +0 -1
- package/lib/utils/errors.js +0 -43
- package/lib/utils/errors.js.map +0 -1
- package/lib/utils/memoryUsage.d.ts +0 -20
- package/lib/utils/memoryUsage.d.ts.map +0 -1
- package/lib/utils/memoryUsage.js +0 -51
- package/lib/utils/memoryUsage.js.map +0 -1
- package/lib/utils/sentry.d.ts +0 -2
- package/lib/utils/sentry.d.ts.map +0 -1
- package/lib/utils/sentry.js +0 -27
- package/lib/utils/sentry.js.map +0 -1
- package/src/library/babel/plugins/__fixtures__/create-token-pure/already-has-comment.ts +0 -5
- package/src/library/babel/plugins/__fixtures__/create-token-pure/do-nothing.ts +0 -10
- package/src/library/babel/plugins/__fixtures__/create-token-pure/from-core.ts +0 -5
- package/src/library/babel/plugins/__fixtures__/create-token-pure/from-dippy.ts +0 -5
- package/src/library/babel/plugins/__fixtures__/create-token-pure/many-imports.ts +0 -9
- package/src/library/babel/plugins/__fixtures__/fill-declare-action-name/import-mixed.ts +0 -17
- package/src/library/babel/plugins/__fixtures__/fill-declare-action-name/import-with-name.ts +0 -28
- package/src/library/babel/plugins/__fixtures__/fill-declare-action-name/import-without-name.ts +0 -25
- package/src/library/babel/plugins/__fixtures__/fill-declare-action-name/require-with-name.ts +0 -21
- package/src/library/babel/plugins/__fixtures__/fill-declare-action-name/require-without-name.ts +0 -19
- package/src/library/babel/plugins/__fixtures__/lazy-component/base.ts +0 -3
- package/src/library/babel/plugins/__fixtures__/lazy-component/cmp.tsx +0 -7
- package/src/library/babel/plugins/__fixtures__/lazy-component/comments.ts +0 -7
- package/src/library/babel/plugins/__fixtures__/lazy-component/dynamic.ts +0 -3
- package/src/library/babel/plugins/__fixtures__/lazy-component/inner/first.tsx +0 -7
- package/src/library/babel/plugins/__fixtures__/lazy-component/inner/path/cmp.tsx +0 -7
- package/src/library/babel/plugins/__fixtures__/lazy-component/inner/second.tsx +0 -7
- package/src/library/babel/plugins/__fixtures__/lazy-component/inner/third.tsx +0 -7
- package/src/library/babel/plugins/__fixtures__/lazy-component/lazy+hmr.ts +0 -3
- package/src/library/babel/plugins/__fixtures__/lazy-component/long-import.ts +0 -3
- package/src/library/babel/plugins/__fixtures__/lazy-component/not-lazy-import.ts +0 -7
- package/src/library/babel/plugins/__fixtures__/lazy-component/not-lazy.ts +0 -8
- package/src/library/babel/plugins/__fixtures__/legacy-universal-replace/cmp.tsx +0 -7
- package/src/library/babel/plugins/__fixtures__/legacy-universal-replace/not-universal.ts +0 -8
- package/src/library/babel/plugins/__fixtures__/legacy-universal-replace/platform-legacy.ts +0 -5
- package/src/library/babel/plugins/__fixtures__/legacy-universal-replace/react-universal.ts +0 -3
- package/src/library/babel/plugins/__fixtures__/legacy-universal-replace/tramvai/react/index.es.ts +0 -3
- package/src/library/babel/plugins/__fixtures__/provider-stack/add-stack.ts +0 -22
- package/src/library/babel/plugins/__fixtures__/provider-stack/check-function-name.ts +0 -10
- package/src/library/babel/plugins/__fixtures__/provider-stack/do-nothing.ts +0 -16
- package/src/library/babel/plugins/__fixtures__/provider-stack/error-in-scope.ts +0 -24
- package/src/library/babel/plugins/__fixtures__/provider-stack/inside-await.ts +0 -12
- package/src/library/babel/plugins/__fixtures__/provider-stack/module-decorator.ts +0 -27
- package/src/library/babel/plugins/__snapshots__/create-token-pure.spec.ts.snap +0 -108
- package/src/library/babel/plugins/__snapshots__/fill-declare-action-name.spec.ts.snap +0 -264
- package/src/library/babel/plugins/__snapshots__/provider-stack.spec.ts.snap +0 -362
- package/src/library/babel/plugins/create-token-pure.spec.ts +0 -39
- package/src/library/babel/plugins/create-token-pure.ts +0 -47
- package/src/library/babel/plugins/fill-action-name.ts +0 -126
- package/src/library/babel/plugins/fill-declare-action-name.spec.ts +0 -37
- package/src/library/babel/plugins/fill-declare-action-name.ts +0 -110
- package/src/library/babel/plugins/lazy-component/__snapshots__/lazy-component.spec.ts.snap +0 -313
- package/src/library/babel/plugins/lazy-component/__snapshots__/legacy-universal-replace.spec.ts.snap +0 -114
- package/src/library/babel/plugins/lazy-component/lazy-component.spec.ts +0 -46
- package/src/library/babel/plugins/lazy-component/lazy-component.ts +0 -91
- package/src/library/babel/plugins/lazy-component/legacy-universal-replace.spec.ts +0 -33
- package/src/library/babel/plugins/lazy-component/legacy-universal-replace.ts +0 -88
- package/src/library/babel/plugins/lazy-component/properties/chunkName.ts +0 -185
- package/src/library/babel/plugins/lazy-component/properties/importAsync.ts +0 -8
- package/src/library/babel/plugins/lazy-component/properties/isReady.ts +0 -19
- package/src/library/babel/plugins/lazy-component/properties/requireAsync.ts +0 -20
- package/src/library/babel/plugins/lazy-component/properties/requireSync.ts +0 -21
- package/src/library/babel/plugins/lazy-component/properties/resolve.ts +0 -21
- package/src/library/babel/plugins/lazy-component/properties/types.ts +0 -20
- package/src/library/babel/plugins/lazy-component/properties/utils/webpackComments.ts +0 -61
- package/src/library/babel/plugins/provider-stack.spec.ts +0 -55
- package/src/library/babel/plugins/provider-stack.ts +0 -88
- package/src/library/babel/plugins/react-compiler.ts +0 -39
- package/src/library/babel/plugins/react-element-info-unique.ts +0 -144
- package/src/library/babel/plugins/types.h.ts +0 -8
- package/src/library/webpack/plugins/AssetsIntegritiesPlugin.ts +0 -34
- package/src/library/webpack/plugins/AutoPublicPathPlugin.ts +0 -23
- package/src/library/webpack/plugins/ModuleFederationFixRange.ts +0 -181
- package/src/library/webpack/plugins/ModuleFederationIgnoreEntries.ts +0 -59
- package/src/library/webpack/plugins/PolyfillCondition.ts +0 -62
- package/src/library/webpack/plugins/PurifyStatsPlugin.ts +0 -57
- package/src/library/webpack/plugins/PwaIconsPlugin.ts +0 -94
- package/src/library/webpack/plugins/WebManifestPlugin.ts +0 -62
- package/src/library/webpack/utils/polyfills/__integration__/__snapshots__/condition.test.ts.snap +0 -1348
- package/src/library/webpack/utils/polyfills/__integration__/condition.test.ts +0 -128
- package/src/library/webpack/utils/polyfills/const.ts +0 -46
- package/src/library/webpack/utils/polyfills/polyfillCondition.ts +0 -63
- package/src/library/webpack/utils/polyfills/specToFeature.ts +0 -243
- package/src/models/analytics/analytics.ts +0 -488
- package/src/models/analytics/analytics.worker.ts +0 -102
- package/src/typings/pwa/index.ts +0 -83
- package/src/utils/errors.ts +0 -39
- package/src/utils/memoryUsage.ts +0 -58
- package/src/utils/sentry.ts +0 -25
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
// @ts-ignore
|
|
2
|
-
// eslint-disable-next-line import/no-unresolved
|
|
3
|
-
import { Provider, Scope } from '@tramvai/core';
|
|
4
|
-
|
|
5
|
-
export const providers: Provider[] = [
|
|
6
|
-
{
|
|
7
|
-
provide: 'a',
|
|
8
|
-
useValue: 1,
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
provide: 'b',
|
|
12
|
-
multi: true,
|
|
13
|
-
deps: {},
|
|
14
|
-
useFactory: () => {},
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
provide: 'c',
|
|
18
|
-
scope: Scope.SINGLETON,
|
|
19
|
-
// eslint-disable-next-line @typescript-eslint/no-extraneous-class
|
|
20
|
-
useClass: class {},
|
|
21
|
-
},
|
|
22
|
-
];
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
// @ts-ignore
|
|
2
|
-
// eslint-disable-next-line import/no-unresolved
|
|
3
|
-
import { Provider, Scope, Error } from '@tramvai/core';
|
|
4
|
-
|
|
5
|
-
export const providers: Provider[] = [
|
|
6
|
-
{
|
|
7
|
-
provide: 'a',
|
|
8
|
-
useValue: 1,
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
provide: 'b',
|
|
12
|
-
multi: true,
|
|
13
|
-
deps: {},
|
|
14
|
-
useFactory: () => {
|
|
15
|
-
console.log(Error);
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
provide: 'c',
|
|
20
|
-
scope: Scope.SINGLETON,
|
|
21
|
-
// eslint-disable-next-line @typescript-eslint/no-extraneous-class
|
|
22
|
-
useClass: class {},
|
|
23
|
-
},
|
|
24
|
-
];
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
// @ts-ignore
|
|
2
|
-
// eslint-disable-next-line import/no-unresolved
|
|
3
|
-
import { module, Scope } from '@tramvai/core';
|
|
4
|
-
|
|
5
|
-
@module({
|
|
6
|
-
providers: [
|
|
7
|
-
{
|
|
8
|
-
provide: 'provide',
|
|
9
|
-
// eslint-disable-next-line @typescript-eslint/no-extraneous-class
|
|
10
|
-
useClass: class {},
|
|
11
|
-
multi: true,
|
|
12
|
-
deps: {},
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
provide: 'test',
|
|
16
|
-
useFactory: () => {},
|
|
17
|
-
multi: false,
|
|
18
|
-
scope: Scope.SINGLETON,
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
provide: 'abc',
|
|
22
|
-
useValue: 3,
|
|
23
|
-
},
|
|
24
|
-
],
|
|
25
|
-
})
|
|
26
|
-
// eslint-disable-next-line @typescript-eslint/no-extraneous-class
|
|
27
|
-
export class ClassModule {}
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`create-token-pure add pure annotation when createToken from @tinkoff/dippy: add pure annotation when createToken from @tinkoff/dippy 1`] = `
|
|
4
|
-
|
|
5
|
-
// @ts-ignore
|
|
6
|
-
// eslint-disable-next-line import/no-unresolved
|
|
7
|
-
import { createToken } from '@tinkoff/dippy';
|
|
8
|
-
|
|
9
|
-
export const TOKEN = createToken('token');
|
|
10
|
-
|
|
11
|
-
↓ ↓ ↓ ↓ ↓ ↓
|
|
12
|
-
|
|
13
|
-
// @ts-ignore
|
|
14
|
-
// eslint-disable-next-line import/no-unresolved
|
|
15
|
-
import { createToken } from '@tinkoff/dippy';
|
|
16
|
-
export const TOKEN = /*#__PURE__*/ createToken('token');
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
`;
|
|
20
|
-
|
|
21
|
-
exports[`create-token-pure add pure annotation when createToken from @tramvai/core: add pure annotation when createToken from @tramvai/core 1`] = `
|
|
22
|
-
|
|
23
|
-
// @ts-ignore
|
|
24
|
-
// eslint-disable-next-line import/no-unresolved
|
|
25
|
-
import { createToken } from '@tramvai/core';
|
|
26
|
-
|
|
27
|
-
export const TOKEN = createToken('token');
|
|
28
|
-
|
|
29
|
-
↓ ↓ ↓ ↓ ↓ ↓
|
|
30
|
-
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
// eslint-disable-next-line import/no-unresolved
|
|
33
|
-
import { createToken } from '@tramvai/core';
|
|
34
|
-
export const TOKEN = /*#__PURE__*/ createToken('token');
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
`;
|
|
38
|
-
|
|
39
|
-
exports[`create-token-pure do not annotate more again: do not annotate more again 1`] = `
|
|
40
|
-
|
|
41
|
-
// @ts-ignore
|
|
42
|
-
// eslint-disable-next-line import/no-unresolved
|
|
43
|
-
import { createToken } from '@tinkoff/dippy';
|
|
44
|
-
|
|
45
|
-
export const TOKEN = /* #__PURE__*/ createToken('token');
|
|
46
|
-
|
|
47
|
-
↓ ↓ ↓ ↓ ↓ ↓
|
|
48
|
-
|
|
49
|
-
// @ts-ignore
|
|
50
|
-
// eslint-disable-next-line import/no-unresolved
|
|
51
|
-
import { createToken } from '@tinkoff/dippy';
|
|
52
|
-
export const TOKEN = /* #__PURE__*/ createToken('token');
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
`;
|
|
56
|
-
|
|
57
|
-
exports[`create-token-pure do not miss createToken on many imports: do not miss createToken on many imports 1`] = `
|
|
58
|
-
|
|
59
|
-
// @ts-ignore
|
|
60
|
-
// eslint-disable-next-line import/no-unresolved
|
|
61
|
-
import { createToken } from '@tinkoff/dippy';
|
|
62
|
-
import { Module } from '@tramvai/core'
|
|
63
|
-
|
|
64
|
-
export const TOKEN = createToken('token');
|
|
65
|
-
const module = Module({
|
|
66
|
-
providers: []
|
|
67
|
-
});
|
|
68
|
-
|
|
69
|
-
↓ ↓ ↓ ↓ ↓ ↓
|
|
70
|
-
|
|
71
|
-
// @ts-ignore
|
|
72
|
-
// eslint-disable-next-line import/no-unresolved
|
|
73
|
-
import { createToken } from '@tinkoff/dippy';
|
|
74
|
-
import { Module } from '@tramvai/core';
|
|
75
|
-
export const TOKEN = /*#__PURE__*/ createToken('token');
|
|
76
|
-
const module = Module({
|
|
77
|
-
providers: [],
|
|
78
|
-
});
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
`;
|
|
82
|
-
|
|
83
|
-
exports[`create-token-pure do nothing: do nothing 1`] = `
|
|
84
|
-
|
|
85
|
-
// @ts-ignore
|
|
86
|
-
// eslint-disable-next-line import/no-unresolved
|
|
87
|
-
import { createApp } from '@tramvai/core';
|
|
88
|
-
import { Container } from '@tinkoff/dippy';
|
|
89
|
-
|
|
90
|
-
const di = new Container();
|
|
91
|
-
|
|
92
|
-
createApp({
|
|
93
|
-
name: 'test'
|
|
94
|
-
});
|
|
95
|
-
|
|
96
|
-
↓ ↓ ↓ ↓ ↓ ↓
|
|
97
|
-
|
|
98
|
-
// @ts-ignore
|
|
99
|
-
// eslint-disable-next-line import/no-unresolved
|
|
100
|
-
import { createApp } from '@tramvai/core';
|
|
101
|
-
import { Container } from '@tinkoff/dippy';
|
|
102
|
-
const di = new Container();
|
|
103
|
-
createApp({
|
|
104
|
-
name: 'test',
|
|
105
|
-
});
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
`;
|
|
@@ -1,264 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`fill-declare-action-name import: do nothing: import: do nothing 1`] = `
|
|
4
|
-
|
|
5
|
-
import { declareAction } from '@tramvai/core';
|
|
6
|
-
|
|
7
|
-
const action = declareAction({
|
|
8
|
-
name: 'action',
|
|
9
|
-
fn: () => {
|
|
10
|
-
console.log('action');
|
|
11
|
-
},
|
|
12
|
-
});
|
|
13
|
-
|
|
14
|
-
const secondAction = declareAction({
|
|
15
|
-
name: 'secondAction',
|
|
16
|
-
fn: () => {
|
|
17
|
-
console.log('second action');
|
|
18
|
-
},
|
|
19
|
-
conditions: {
|
|
20
|
-
onlyBrowser: true,
|
|
21
|
-
},
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
export default declareAction({
|
|
25
|
-
name: 'anonymousAction',
|
|
26
|
-
fn: () => {
|
|
27
|
-
console.log('anonymous action');
|
|
28
|
-
},
|
|
29
|
-
conditions: {
|
|
30
|
-
onlyBrowser: true,
|
|
31
|
-
},
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
↓ ↓ ↓ ↓ ↓ ↓
|
|
35
|
-
|
|
36
|
-
import { declareAction } from '@tramvai/core';
|
|
37
|
-
const action = declareAction({
|
|
38
|
-
name: 'action',
|
|
39
|
-
fn: () => {
|
|
40
|
-
console.log('action');
|
|
41
|
-
},
|
|
42
|
-
});
|
|
43
|
-
const secondAction = declareAction({
|
|
44
|
-
name: 'secondAction',
|
|
45
|
-
fn: () => {
|
|
46
|
-
console.log('second action');
|
|
47
|
-
},
|
|
48
|
-
conditions: {
|
|
49
|
-
onlyBrowser: true,
|
|
50
|
-
},
|
|
51
|
-
});
|
|
52
|
-
export default declareAction({
|
|
53
|
-
name: 'anonymousAction',
|
|
54
|
-
fn: () => {
|
|
55
|
-
console.log('anonymous action');
|
|
56
|
-
},
|
|
57
|
-
conditions: {
|
|
58
|
-
onlyBrowser: true,
|
|
59
|
-
},
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
`;
|
|
64
|
-
|
|
65
|
-
exports[`fill-declare-action-name import: fill absent name: import: fill absent name 1`] = `
|
|
66
|
-
|
|
67
|
-
import { declareAction } from '@tramvai/core';
|
|
68
|
-
|
|
69
|
-
const action = declareAction({
|
|
70
|
-
name: 'action',
|
|
71
|
-
fn: () => {
|
|
72
|
-
console.log('action');
|
|
73
|
-
},
|
|
74
|
-
});
|
|
75
|
-
|
|
76
|
-
const secondAction = declareAction({
|
|
77
|
-
fn: () => {
|
|
78
|
-
console.log('second action');
|
|
79
|
-
},
|
|
80
|
-
conditions: {
|
|
81
|
-
onlyBrowser: true,
|
|
82
|
-
},
|
|
83
|
-
});
|
|
84
|
-
|
|
85
|
-
↓ ↓ ↓ ↓ ↓ ↓
|
|
86
|
-
|
|
87
|
-
import { declareAction } from '@tramvai/core';
|
|
88
|
-
const action = declareAction({
|
|
89
|
-
name: 'action',
|
|
90
|
-
fn: () => {
|
|
91
|
-
console.log('action');
|
|
92
|
-
},
|
|
93
|
-
});
|
|
94
|
-
const secondAction = declareAction({
|
|
95
|
-
name: 'secondAction__-5f0ssw',
|
|
96
|
-
fn: () => {
|
|
97
|
-
console.log('second action');
|
|
98
|
-
},
|
|
99
|
-
conditions: {
|
|
100
|
-
onlyBrowser: true,
|
|
101
|
-
},
|
|
102
|
-
});
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
`;
|
|
106
|
-
|
|
107
|
-
exports[`fill-declare-action-name import: fill all actions: import: fill all actions 1`] = `
|
|
108
|
-
|
|
109
|
-
import { declareAction } from '@tramvai/core';
|
|
110
|
-
|
|
111
|
-
const action = declareAction({
|
|
112
|
-
fn: () => {
|
|
113
|
-
console.log('action');
|
|
114
|
-
},
|
|
115
|
-
});
|
|
116
|
-
|
|
117
|
-
const secondAction = declareAction({
|
|
118
|
-
fn: () => {
|
|
119
|
-
console.log('second action');
|
|
120
|
-
},
|
|
121
|
-
conditions: {
|
|
122
|
-
onlyBrowser: true,
|
|
123
|
-
},
|
|
124
|
-
});
|
|
125
|
-
|
|
126
|
-
export default declareAction({
|
|
127
|
-
fn: () => {
|
|
128
|
-
console.log('anonymous action');
|
|
129
|
-
},
|
|
130
|
-
conditions: {
|
|
131
|
-
onlyBrowser: true,
|
|
132
|
-
},
|
|
133
|
-
});
|
|
134
|
-
|
|
135
|
-
↓ ↓ ↓ ↓ ↓ ↓
|
|
136
|
-
|
|
137
|
-
import { declareAction } from '@tramvai/core';
|
|
138
|
-
const action = declareAction({
|
|
139
|
-
name: 'action__n5c5ae',
|
|
140
|
-
fn: () => {
|
|
141
|
-
console.log('action');
|
|
142
|
-
},
|
|
143
|
-
});
|
|
144
|
-
const secondAction = declareAction({
|
|
145
|
-
name: 'secondAction__n5fz8b',
|
|
146
|
-
fn: () => {
|
|
147
|
-
console.log('second action');
|
|
148
|
-
},
|
|
149
|
-
conditions: {
|
|
150
|
-
onlyBrowser: true,
|
|
151
|
-
},
|
|
152
|
-
});
|
|
153
|
-
export default declareAction({
|
|
154
|
-
name: 'import-without-name.ts__797bng',
|
|
155
|
-
fn: () => {
|
|
156
|
-
console.log('anonymous action');
|
|
157
|
-
},
|
|
158
|
-
conditions: {
|
|
159
|
-
onlyBrowser: true,
|
|
160
|
-
},
|
|
161
|
-
});
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
`;
|
|
165
|
-
|
|
166
|
-
exports[`fill-declare-action-name require: do nothing: require: do nothing 1`] = `
|
|
167
|
-
|
|
168
|
-
// @ts-ignore
|
|
169
|
-
const { declareAction } = require('@tramvai/core');
|
|
170
|
-
|
|
171
|
-
// @ts-ignore
|
|
172
|
-
const action = declareAction({
|
|
173
|
-
name: 'action',
|
|
174
|
-
fn: () => {
|
|
175
|
-
console.log('action');
|
|
176
|
-
},
|
|
177
|
-
});
|
|
178
|
-
|
|
179
|
-
// @ts-ignore
|
|
180
|
-
const secondAction = declareAction({
|
|
181
|
-
name: 'secondAction',
|
|
182
|
-
fn: () => {
|
|
183
|
-
console.log('second action');
|
|
184
|
-
},
|
|
185
|
-
conditions: {
|
|
186
|
-
onlyBrowser: true,
|
|
187
|
-
},
|
|
188
|
-
});
|
|
189
|
-
|
|
190
|
-
↓ ↓ ↓ ↓ ↓ ↓
|
|
191
|
-
|
|
192
|
-
// @ts-ignore
|
|
193
|
-
const { declareAction } = require('@tramvai/core');
|
|
194
|
-
|
|
195
|
-
// @ts-ignore
|
|
196
|
-
const action = declareAction({
|
|
197
|
-
name: 'action',
|
|
198
|
-
fn: () => {
|
|
199
|
-
console.log('action');
|
|
200
|
-
},
|
|
201
|
-
});
|
|
202
|
-
|
|
203
|
-
// @ts-ignore
|
|
204
|
-
const secondAction = declareAction({
|
|
205
|
-
name: 'secondAction',
|
|
206
|
-
fn: () => {
|
|
207
|
-
console.log('second action');
|
|
208
|
-
},
|
|
209
|
-
conditions: {
|
|
210
|
-
onlyBrowser: true,
|
|
211
|
-
},
|
|
212
|
-
});
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
`;
|
|
216
|
-
|
|
217
|
-
exports[`fill-declare-action-name require: fill all actions: require: fill all actions 1`] = `
|
|
218
|
-
|
|
219
|
-
// @ts-ignore
|
|
220
|
-
const { declareAction } = require('@tramvai/core');
|
|
221
|
-
|
|
222
|
-
// @ts-ignore
|
|
223
|
-
const action = declareAction({
|
|
224
|
-
fn: () => {
|
|
225
|
-
console.log('action');
|
|
226
|
-
},
|
|
227
|
-
});
|
|
228
|
-
|
|
229
|
-
// @ts-ignore
|
|
230
|
-
const secondAction = declareAction({
|
|
231
|
-
fn: () => {
|
|
232
|
-
console.log('second action');
|
|
233
|
-
},
|
|
234
|
-
conditions: {
|
|
235
|
-
onlyBrowser: true,
|
|
236
|
-
},
|
|
237
|
-
});
|
|
238
|
-
|
|
239
|
-
↓ ↓ ↓ ↓ ↓ ↓
|
|
240
|
-
|
|
241
|
-
// @ts-ignore
|
|
242
|
-
const { declareAction } = require('@tramvai/core');
|
|
243
|
-
|
|
244
|
-
// @ts-ignore
|
|
245
|
-
const action = declareAction({
|
|
246
|
-
name: 'action__l6frq0',
|
|
247
|
-
fn: () => {
|
|
248
|
-
console.log('action');
|
|
249
|
-
},
|
|
250
|
-
});
|
|
251
|
-
|
|
252
|
-
// @ts-ignore
|
|
253
|
-
const secondAction = declareAction({
|
|
254
|
-
name: 'secondAction__h789zd',
|
|
255
|
-
fn: () => {
|
|
256
|
-
console.log('second action');
|
|
257
|
-
},
|
|
258
|
-
conditions: {
|
|
259
|
-
onlyBrowser: true,
|
|
260
|
-
},
|
|
261
|
-
});
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
`;
|