@@ -28,7 +28,7 @@ import { BuildOptions } from './types';
|
||||
import { resolveBundlingPaths, resolveOptionalBundlingPaths } from './paths';
|
||||
import chalk from 'chalk';
|
||||
import { createDetectedModulesEntryPoint } from './packageDetection';
|
||||
import { createRuntimeSharedDependeciesEntryPoint } from './moduleFederation';
|
||||
import { createRuntimeSharedDependenciesEntryPoint } from './moduleFederation';
|
||||
|
||||
// TODO(Rugvip): Limits from CRA, we might want to tweak these though.
|
||||
const WARN_AFTER_BUNDLE_GZIP_SIZE = 512 * 1024;
|
||||
@@ -66,7 +66,7 @@ export async function buildBundle(options: BuildOptions) {
|
||||
});
|
||||
|
||||
const moduleFederationSharedDependenciesEntryPoint =
|
||||
await createRuntimeSharedDependeciesEntryPoint({
|
||||
await createRuntimeSharedDependenciesEntryPoint({
|
||||
targetPath: paths.targetPath,
|
||||
});
|
||||
|
||||
|
||||
@@ -149,7 +149,7 @@ function resolveSharedDependencyVersions(
|
||||
);
|
||||
}
|
||||
|
||||
export async function createRuntimeSharedDependeciesEntryPoint(options: {
|
||||
export async function createRuntimeSharedDependenciesEntryPoint(options: {
|
||||
targetPath: string;
|
||||
watch?: () => void;
|
||||
}): Promise<string[]> {
|
||||
|
||||
@@ -28,7 +28,7 @@ import { createConfig, resolveBaseUrl, resolveEndpoint } from './config';
|
||||
import { createDetectedModulesEntryPoint } from './packageDetection';
|
||||
import { resolveBundlingPaths, resolveOptionalBundlingPaths } from './paths';
|
||||
import { ServeOptions } from './types';
|
||||
import { createRuntimeSharedDependeciesEntryPoint } from './moduleFederation';
|
||||
import { createRuntimeSharedDependenciesEntryPoint } from './moduleFederation';
|
||||
|
||||
export async function serveBundle(options: ServeOptions) {
|
||||
const paths = resolveBundlingPaths(options);
|
||||
@@ -124,7 +124,7 @@ DEPRECATION WARNING: React Router Beta is deprecated and support for it will be
|
||||
});
|
||||
|
||||
const moduleFederationSharedDependenciesEntryPoint =
|
||||
await createRuntimeSharedDependeciesEntryPoint({
|
||||
await createRuntimeSharedDependenciesEntryPoint({
|
||||
targetPath: paths.targetPath,
|
||||
watch() {
|
||||
triggerReload();
|
||||
|
||||
Reference in New Issue
Block a user