@rsbuild/shared
Advanced tools
Comparing version 0.6.3 to 0.6.4
@@ -163,2 +163,5 @@ import type { RspackConfig } from '../rspack'; | ||
export type InlineChunkTest = RegExp | InlineChunkTestFunction; | ||
export type EmitAssets = (params: { | ||
target: RsbuildTarget; | ||
}) => boolean; | ||
export interface OutputConfig { | ||
@@ -259,2 +262,7 @@ /** | ||
copy?: CopyPluginOptions | CopyPluginOptions['patterns']; | ||
/** | ||
* Whether to emit static assets such as image, font, etc. | ||
* Return `false` to avoid outputting unnecessary assets for some scenarios such as SSR. | ||
*/ | ||
emitAssets?: EmitAssets; | ||
} | ||
@@ -284,2 +292,3 @@ export type OverrideBrowserslist = string[] | Partial<Record<RsbuildTarget, string[]>>; | ||
}; | ||
emitAssets: EmitAssets; | ||
} |
@@ -9,5 +9,5 @@ export declare const normalizeUrl: (url: string) => string; | ||
export declare const getAddressUrls: ({ protocol, port, host, }: { | ||
protocol?: string | undefined; | ||
protocol?: string; | ||
port: number; | ||
host?: string | undefined; | ||
host?: string; | ||
}) => AddressUrl[]; |
{ | ||
"name": "@rsbuild/shared", | ||
"version": "0.6.3", | ||
"version": "0.6.4", | ||
"description": "The internal shared modules and dependencies of Rsbuild.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://rsbuild.dev", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7610736
22818