Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@rsbuild/shared

Package Overview
Dependencies
Maintainers
3
Versions
193
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rsbuild/shared - npm Package Compare versions

Comparing version 0.0.27 to 0.0.28

dist/types/config/server.d.ts

7

dist/apply/basic.js

@@ -36,2 +36,9 @@ "use strict";

});
if (!isProd) {
chain.watchOptions({
// The default aggregateTimeout of WatchPack is 200ms,
// using smaller values can improve hmr performance
aggregateTimeout: 5
});
}
});

@@ -38,0 +45,0 @@ }

3

dist/config.d.ts

@@ -1,3 +0,4 @@

import type { BundlerChainRule, RsbuildConfig, InspectConfigOptions, CreateRsbuildOptions, NormalizedDevConfig, NormalizedHtmlConfig, NormalizedOutputConfig, NormalizedSourceConfig, NormalizedSecurityConfig, NormalizedPerformanceConfig, NormalizedToolsConfig, NormalizedConfig } from './types';
import type { BundlerChainRule, RsbuildConfig, InspectConfigOptions, CreateRsbuildOptions, NormalizedServerConfig, NormalizedDevConfig, NormalizedHtmlConfig, NormalizedOutputConfig, NormalizedSourceConfig, NormalizedSecurityConfig, NormalizedPerformanceConfig, NormalizedToolsConfig, NormalizedConfig } from './types';
export declare const getDefaultDevConfig: () => NormalizedDevConfig;
export declare const getDefaultServerConfig: () => NormalizedServerConfig;
export declare const getDefaultSourceConfig: () => NormalizedSourceConfig;

@@ -4,0 +5,0 @@ export declare const getDefaultHtmlConfig: () => NormalizedHtmlConfig;

@@ -37,2 +37,3 @@ "use strict";

getDefaultSecurityConfig: () => getDefaultSecurityConfig,
getDefaultServerConfig: () => getDefaultServerConfig,
getDefaultSourceConfig: () => getDefaultSourceConfig,

@@ -65,2 +66,3 @@ getDefaultStyledComponentsConfig: () => getDefaultStyledComponentsConfig,

});
const getDefaultServerConfig = () => ({});
const getDefaultSourceConfig = () => ({

@@ -246,2 +248,3 @@ alias: {},

"dev",
"server",
"html",

@@ -264,2 +267,3 @@ "tools",

getDefaultSecurityConfig,
getDefaultServerConfig,
getDefaultSourceConfig,

@@ -266,0 +270,0 @@ getDefaultStyledComponentsConfig,

@@ -1,2 +0,2 @@

import type { RsbuildConfig, Context, OnAfterStartDevServerFn, OnBeforeStartDevServerFn, CompilerTapFn, DevConfig, RsbuildEntry, Routes } from './types';
import type { RsbuildConfig, Context, OnAfterStartDevServerFn, OnBeforeStartDevServerFn, CompilerTapFn, RsbuildEntry, Routes } from './types';
import { Logger } from './logger';

@@ -20,3 +20,43 @@ import { createAsyncHook } from './createHook';

port: number;
}) => DevConfig;
}) => {
hmr?: boolean | undefined;
port?: number | undefined;
https?: import("./types").DevServerHttpsOptions | undefined;
startUrl?: string | boolean | string[] | undefined;
beforeStartUrl?: import("./types").ArrayOrNot<() => void | Promise<void>> | undefined;
assetPrefix?: string | boolean | undefined;
progressBar?: boolean | import("./types").ProgressBarConfig | undefined;
host?: string | undefined;
client?: {
path?: string | undefined;
port?: string | undefined;
host?: string | undefined;
protocol?: string | undefined;
} | undefined;
compress?: boolean | undefined;
devMiddleware?: {
writeToDisk?: boolean | ((filename: string) => boolean) | undefined;
outputFileSystem?: Record<string, any> | undefined;
} | undefined;
proxy?: import("./types").RsbuildProxyOptions | undefined;
historyApiFallback?: boolean | {
index?: string | undefined;
verbose?: boolean | undefined;
logger?: {
(...data: any[]): void;
(message?: any, ...optionalParams: any[]): void;
} | undefined;
htmlAcceptHeaders?: string[] | undefined;
disableDotRule?: true | undefined;
rewrites?: {
from: RegExp;
to: string | Function | RegExp;
}[] | undefined;
} | undefined;
setupMiddlewares?: ((middlewares: {
unshift: (...handlers: import("./types").RequestHandler[]) => void;
push: (...handlers: import("./types").RequestHandler[]) => void;
}, server: import("./types").ExposeServerApis) => void)[] | undefined;
headers?: Record<string, string | string[]> | undefined;
};
export declare const getDevOptions: ({

@@ -31,3 +71,43 @@ rsbuildConfig,

}) => Promise<{
devServerConfig: DevConfig;
devServerConfig: {
hmr?: boolean | undefined;
port?: number | undefined;
https?: import("./types").DevServerHttpsOptions | undefined;
startUrl?: string | boolean | string[] | undefined;
beforeStartUrl?: import("./types").ArrayOrNot<() => void | Promise<void>> | undefined;
assetPrefix?: string | boolean | undefined;
progressBar?: boolean | import("./types").ProgressBarConfig | undefined;
host?: string | undefined;
client?: {
path?: string | undefined;
port?: string | undefined;
host?: string | undefined;
protocol?: string | undefined;
} | undefined;
compress?: boolean | undefined;
devMiddleware?: {
writeToDisk?: boolean | ((filename: string) => boolean) | undefined;
outputFileSystem?: Record<string, any> | undefined;
} | undefined;
proxy?: import("./types").RsbuildProxyOptions | undefined;
historyApiFallback?: boolean | {
index?: string | undefined;
verbose?: boolean | undefined;
logger?: {
(...data: any[]): void;
(message?: any, ...optionalParams: any[]): void;
} | undefined;
htmlAcceptHeaders?: string[] | undefined;
disableDotRule?: true | undefined;
rewrites?: {
from: RegExp;
to: string | Function | RegExp;
}[] | undefined;
} | undefined;
setupMiddlewares?: ((middlewares: {
unshift: (...handlers: import("./types").RequestHandler[]) => void;
push: (...handlers: import("./types").RequestHandler[]) => void;
}, server: import("./types").ExposeServerApis) => void)[] | undefined;
headers?: Record<string, string | string[]> | undefined;
};
port: number;

@@ -34,0 +114,0 @@ host: string;

@@ -98,3 +98,6 @@ "use strict";

devServerConfig.port = port;
return devServerConfig;
return {
...rsbuildConfig.server,
...devServerConfig
};
};

@@ -101,0 +104,0 @@ const getDevOptions = async ({

@@ -73,3 +73,2 @@ /// <reference types="node" />

proxy?: RsbuildProxyOptions;
headers?: Record<string, string | string[]>;
/** see https://github.com/bripkens/connect-history-api-fallback */

@@ -76,0 +75,0 @@ historyApiFallback?: boolean | {

import type { DevConfig, NormalizedDevConfig } from './dev';
import type { ServerConfig, NormalizedServerConfig } from './server';
import type { HtmlConfig, NormalizedHtmlConfig } from './html';

@@ -16,2 +17,3 @@ import type { OutputConfig, NormalizedOutputConfig } from './output';

dev?: DevConfig;
server?: ServerConfig;
html?: HtmlConfig;

@@ -27,2 +29,3 @@ tools?: ToolsConfig;

dev: NormalizedDevConfig;
server: NormalizedServerConfig;
html: NormalizedHtmlConfig;

@@ -37,2 +40,3 @@ tools: NormalizedToolsConfig;

export * from './dev';
export * from './server';
export * from './html';

@@ -39,0 +43,0 @@ export * from './output';

@@ -19,2 +19,3 @@ "use strict";

__reExport(config_exports, require("./dev"), module.exports);
__reExport(config_exports, require("./server"), module.exports);
__reExport(config_exports, require("./html"), module.exports);

@@ -29,2 +30,3 @@ __reExport(config_exports, require("./output"), module.exports);

...require("./dev"),
...require("./server"),
...require("./html"),

@@ -31,0 +33,0 @@ ...require("./output"),

{
"name": "@rsbuild/shared",
"version": "0.0.27",
"version": "0.0.28",
"description": "The internal shared modules and dependencies of Rsbuild.",

@@ -5,0 +5,0 @@ "homepage": "https://rsbuild.dev",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc