@rspack/core
Advanced tools
Comparing version 1.0.7 to 1.0.8
import { BuiltinPluginName, type JsChunk } from "@rspack/binding"; | ||
import { z } from "../../compiled/zod"; | ||
declare const rule: z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>; | ||
export type Rule = z.infer<typeof rule>; | ||
declare const rules: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, "many">]>; | ||
export type Rules = z.infer<typeof rules>; | ||
declare const bannerFunction: z.ZodFunction<z.ZodTuple<[z.ZodObject<{ | ||
hash: z.ZodString; | ||
chunk: z.ZodType<JsChunk, z.ZodTypeDef, JsChunk>; | ||
filename: z.ZodString; | ||
}, "strip", z.ZodTypeAny, { | ||
filename: string; | ||
export type Rule = string | RegExp; | ||
export type Rules = Rule[] | Rule; | ||
export type BannerFunction = (args: { | ||
hash: string; | ||
chunk: JsChunk; | ||
}, { | ||
filename: string; | ||
hash: string; | ||
chunk: JsChunk; | ||
}>], z.ZodUnknown>, z.ZodString>; | ||
export type BannerFunction = z.infer<typeof bannerFunction>; | ||
declare const bannerContent: z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.ZodObject<{ | ||
hash: z.ZodString; | ||
chunk: z.ZodType<JsChunk, z.ZodTypeDef, JsChunk>; | ||
filename: z.ZodString; | ||
}, "strip", z.ZodTypeAny, { | ||
filename: string; | ||
hash: string; | ||
chunk: JsChunk; | ||
}, { | ||
filename: string; | ||
hash: string; | ||
chunk: JsChunk; | ||
}>], z.ZodUnknown>, z.ZodString>]>; | ||
export type BannerContent = z.infer<typeof bannerContent>; | ||
declare const bannerPluginOptions: z.ZodObject<{ | ||
banner: z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.ZodObject<{ | ||
hash: z.ZodString; | ||
chunk: z.ZodType<JsChunk, z.ZodTypeDef, JsChunk>; | ||
filename: z.ZodString; | ||
}, "strip", z.ZodTypeAny, { | ||
filename: string; | ||
hash: string; | ||
chunk: JsChunk; | ||
}, { | ||
filename: string; | ||
hash: string; | ||
chunk: JsChunk; | ||
}>], z.ZodUnknown>, z.ZodString>]>; | ||
entryOnly: z.ZodOptional<z.ZodBoolean>; | ||
exclude: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, "many">]>>; | ||
include: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, "many">]>>; | ||
raw: z.ZodOptional<z.ZodBoolean>; | ||
footer: z.ZodOptional<z.ZodBoolean>; | ||
stage: z.ZodOptional<z.ZodNumber>; | ||
test: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, "many">]>>; | ||
}, "strict", z.ZodTypeAny, { | ||
banner: string | ((args_0: { | ||
filename: string; | ||
hash: string; | ||
chunk: JsChunk; | ||
}, ...args_1: unknown[]) => string); | ||
entryOnly?: boolean | undefined; | ||
exclude?: string | RegExp | (string | RegExp)[] | undefined; | ||
include?: string | RegExp | (string | RegExp)[] | undefined; | ||
raw?: boolean | undefined; | ||
footer?: boolean | undefined; | ||
stage?: number | undefined; | ||
test?: string | RegExp | (string | RegExp)[] | undefined; | ||
}, { | ||
banner: string | ((args_0: { | ||
filename: string; | ||
hash: string; | ||
chunk: JsChunk; | ||
}, ...args_1: unknown[]) => string); | ||
entryOnly?: boolean | undefined; | ||
exclude?: string | RegExp | (string | RegExp)[] | undefined; | ||
include?: string | RegExp | (string | RegExp)[] | undefined; | ||
raw?: boolean | undefined; | ||
footer?: boolean | undefined; | ||
stage?: number | undefined; | ||
test?: string | RegExp | (string | RegExp)[] | undefined; | ||
}>; | ||
export type BannerPluginOptions = z.infer<typeof bannerPluginOptions>; | ||
declare const bannerPluginArgument: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.ZodObject<{ | ||
hash: z.ZodString; | ||
chunk: z.ZodType<JsChunk, z.ZodTypeDef, JsChunk>; | ||
filename: z.ZodString; | ||
}, "strip", z.ZodTypeAny, { | ||
filename: string; | ||
hash: string; | ||
chunk: JsChunk; | ||
}, { | ||
filename: string; | ||
hash: string; | ||
chunk: JsChunk; | ||
}>], z.ZodUnknown>, z.ZodString>]>, z.ZodObject<{ | ||
banner: z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.ZodObject<{ | ||
hash: z.ZodString; | ||
chunk: z.ZodType<JsChunk, z.ZodTypeDef, JsChunk>; | ||
filename: z.ZodString; | ||
}, "strip", z.ZodTypeAny, { | ||
filename: string; | ||
hash: string; | ||
chunk: JsChunk; | ||
}, { | ||
filename: string; | ||
hash: string; | ||
chunk: JsChunk; | ||
}>], z.ZodUnknown>, z.ZodString>]>; | ||
entryOnly: z.ZodOptional<z.ZodBoolean>; | ||
exclude: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, "many">]>>; | ||
include: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, "many">]>>; | ||
raw: z.ZodOptional<z.ZodBoolean>; | ||
footer: z.ZodOptional<z.ZodBoolean>; | ||
stage: z.ZodOptional<z.ZodNumber>; | ||
test: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, "many">]>>; | ||
}, "strict", z.ZodTypeAny, { | ||
banner: string | ((args_0: { | ||
filename: string; | ||
hash: string; | ||
chunk: JsChunk; | ||
}, ...args_1: unknown[]) => string); | ||
entryOnly?: boolean | undefined; | ||
exclude?: string | RegExp | (string | RegExp)[] | undefined; | ||
include?: string | RegExp | (string | RegExp)[] | undefined; | ||
raw?: boolean | undefined; | ||
footer?: boolean | undefined; | ||
stage?: number | undefined; | ||
test?: string | RegExp | (string | RegExp)[] | undefined; | ||
}, { | ||
banner: string | ((args_0: { | ||
filename: string; | ||
hash: string; | ||
chunk: JsChunk; | ||
}, ...args_1: unknown[]) => string); | ||
entryOnly?: boolean | undefined; | ||
exclude?: string | RegExp | (string | RegExp)[] | undefined; | ||
include?: string | RegExp | (string | RegExp)[] | undefined; | ||
raw?: boolean | undefined; | ||
footer?: boolean | undefined; | ||
stage?: number | undefined; | ||
test?: string | RegExp | (string | RegExp)[] | undefined; | ||
}>]>; | ||
export type BannerPluginArgument = z.infer<typeof bannerPluginArgument>; | ||
}) => string; | ||
export type BannerContent = string | BannerFunction; | ||
export type BannerPluginOptions = { | ||
/** Specifies the banner, it will be wrapped in a comment. */ | ||
banner: BannerContent; | ||
/** If true, the banner will only be added to the entry chunks. */ | ||
entryOnly?: boolean; | ||
/** Exclude all modules matching any of these conditions. */ | ||
exclude?: Rules; | ||
/** Include all modules matching any of these conditions. */ | ||
include?: Rules; | ||
/** If true, banner will not be wrapped in a comment. */ | ||
raw?: boolean; | ||
/** If true, banner will be placed at the end of the output. */ | ||
footer?: boolean; | ||
/** | ||
* The stage of the compilation in which the banner should be injected. | ||
* @default PROCESS_ASSETS_STAGE_ADDITIONS (-100) | ||
*/ | ||
stage?: number; | ||
/** Include all modules that pass test assertion. */ | ||
test?: Rules; | ||
}; | ||
export type BannerPluginArgument = BannerContent | BannerPluginOptions; | ||
export declare const BannerPlugin: { | ||
new (args: string | ((args_0: { | ||
filename: string; | ||
hash: string; | ||
chunk: JsChunk; | ||
}, ...args_1: unknown[]) => string) | { | ||
banner: string | ((args_0: { | ||
filename: string; | ||
hash: string; | ||
chunk: JsChunk; | ||
}, ...args_1: unknown[]) => string); | ||
entryOnly?: boolean | undefined; | ||
exclude?: string | RegExp | (string | RegExp)[] | undefined; | ||
include?: string | RegExp | (string | RegExp)[] | undefined; | ||
raw?: boolean | undefined; | ||
footer?: boolean | undefined; | ||
stage?: number | undefined; | ||
test?: string | RegExp | (string | RegExp)[] | undefined; | ||
}): { | ||
new (args: BannerPluginArgument): { | ||
name: BuiltinPluginName; | ||
_args: [args: string | ((args_0: { | ||
filename: string; | ||
hash: string; | ||
chunk: JsChunk; | ||
}, ...args_1: unknown[]) => string) | { | ||
banner: string | ((args_0: { | ||
filename: string; | ||
hash: string; | ||
chunk: JsChunk; | ||
}, ...args_1: unknown[]) => string); | ||
entryOnly?: boolean | undefined; | ||
exclude?: string | RegExp | (string | RegExp)[] | undefined; | ||
include?: string | RegExp | (string | RegExp)[] | undefined; | ||
raw?: boolean | undefined; | ||
footer?: boolean | undefined; | ||
stage?: number | undefined; | ||
test?: string | RegExp | (string | RegExp)[] | undefined; | ||
}]; | ||
_args: [args: BannerPluginArgument]; | ||
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined; | ||
@@ -188,2 +41,1 @@ raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin; | ||
}; | ||
export {}; |
@@ -5,26 +5,3 @@ "use strict"; | ||
const binding_1 = require("@rspack/binding"); | ||
const zod_1 = require("../../compiled/zod"); | ||
const base_1 = require("./base"); | ||
const rule = zod_1.z.string().or(zod_1.z.instanceof(RegExp)); | ||
const rules = rule.or(rule.array()); | ||
const bannerFunction = zod_1.z | ||
.function() | ||
.args(zod_1.z.object({ | ||
hash: zod_1.z.string(), | ||
chunk: zod_1.z.custom(), | ||
filename: zod_1.z.string() | ||
})) | ||
.returns(zod_1.z.string()); | ||
const bannerContent = zod_1.z.string().or(bannerFunction); | ||
const bannerPluginOptions = zod_1.z.strictObject({ | ||
banner: bannerContent, | ||
entryOnly: zod_1.z.boolean().optional(), | ||
exclude: rules.optional(), | ||
include: rules.optional(), | ||
raw: zod_1.z.boolean().optional(), | ||
footer: zod_1.z.boolean().optional(), | ||
stage: zod_1.z.number().optional(), | ||
test: rules.optional() | ||
}); | ||
const bannerPluginArgument = bannerContent.or(bannerPluginOptions); | ||
exports.BannerPlugin = (0, base_1.create)(binding_1.BuiltinPluginName.BannerPlugin, (args) => { | ||
@@ -31,0 +8,0 @@ if (typeof args === "string" || typeof args === "function") { |
import { BuiltinPluginName, type JsAfterEmitData, type JsAfterTemplateExecutionData, type JsAlterAssetTagGroupsData, type JsAlterAssetTagsData, type JsBeforeAssetTagGenerationData, type JsBeforeEmitData, type JsHtmlPluginTag } from "@rspack/binding"; | ||
import * as liteTapable from "@rspack/lite-tapable"; | ||
import { z } from "../../compiled/zod"; | ||
import { Compilation } from "../Compilation"; | ||
import type { Compiler } from "../Compiler"; | ||
declare const htmlRspackPluginOptions: z.ZodObject<{ | ||
filename: z.ZodOptional<z.ZodString>; | ||
template: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>; | ||
templateContent: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.ZodRecord<z.ZodString, z.ZodAny>], z.ZodUnknown>, z.ZodUnion<[z.ZodString, z.ZodPromise<z.ZodString>]>>]>>; | ||
templateParameters: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodString>, z.ZodBoolean]>, z.ZodFunction<z.ZodTuple<[z.ZodRecord<z.ZodString, z.ZodAny>], z.ZodUnknown>, z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodPromise<z.ZodRecord<z.ZodString, z.ZodAny>>]>>]>>; | ||
inject: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["head", "body"]>, z.ZodBoolean]>>; | ||
publicPath: z.ZodOptional<z.ZodString>; | ||
base: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{ | ||
href: z.ZodOptional<z.ZodString>; | ||
target: z.ZodOptional<z.ZodEnum<["_self", "_blank", "_parent", "_top"]>>; | ||
}, "strict", z.ZodTypeAny, { | ||
target?: "_self" | "_blank" | "_parent" | "_top" | undefined; | ||
href?: string | undefined; | ||
}, { | ||
target?: "_self" | "_blank" | "_parent" | "_top" | undefined; | ||
href?: string | undefined; | ||
}>]>>; | ||
scriptLoading: z.ZodOptional<z.ZodEnum<["blocking", "defer", "module", "systemjs-module"]>>; | ||
chunks: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; | ||
excludeChunks: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; | ||
sri: z.ZodOptional<z.ZodEnum<["sha256", "sha384", "sha512"]>>; | ||
minify: z.ZodOptional<z.ZodBoolean>; | ||
title: z.ZodOptional<z.ZodString>; | ||
favicon: z.ZodOptional<z.ZodString>; | ||
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>>; | ||
hash: z.ZodOptional<z.ZodBoolean>; | ||
}, "strict", z.ZodTypeAny, { | ||
filename?: string | undefined; | ||
publicPath?: string | undefined; | ||
hash?: boolean | undefined; | ||
chunks?: string[] | undefined; | ||
export type TemplateRenderFunction = (params: Record<string, any>) => string | Promise<string>; | ||
export type TemplateParamFunction = (params: Record<string, any>) => Record<string, any> | Promise<Record<string, any>>; | ||
export type HtmlRspackPluginOptions = { | ||
/** The title to use for the generated HTML document. */ | ||
title?: string; | ||
/** | ||
* The file to write the HTML to. You can specify a subdirectory here too (eg: pages/index.html). | ||
* @default 'index.html' | ||
*/ | ||
filename?: string; | ||
/** The template file path. */ | ||
template?: string; | ||
/** | ||
* The template file content, priority is greater than template. | ||
* When using a function, pass in the template parameters and use the returned string as the template content. | ||
*/ | ||
templateContent?: string | TemplateRenderFunction; | ||
/** | ||
* Allows to overwrite the parameters used in the template. | ||
* When using a function, pass in the original template parameters and use the returned object as the final template parameters. | ||
*/ | ||
templateParameters?: Record<string, string> | boolean | TemplateParamFunction; | ||
/** | ||
* The script and link tag inject position in template. Use false to not inject. | ||
* If not specified, it will be automatically determined based on scriptLoading. | ||
*/ | ||
inject?: boolean | "head" | "body"; | ||
/** The publicPath used for script and link tags. */ | ||
publicPath?: string; | ||
/** Inject a [base](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base) tag */ | ||
base?: string | { | ||
target?: "_self" | "_blank" | "_parent" | "_top" | undefined; | ||
href?: string | undefined; | ||
} | undefined; | ||
template?: string | undefined; | ||
templateContent?: string | ((args_0: Record<string, any>, ...args_1: unknown[]) => string | Promise<string>) | undefined; | ||
templateParameters?: boolean | Record<string, string> | ((args_0: Record<string, any>, ...args_1: unknown[]) => Record<string, any> | Promise<Record<string, any>>) | undefined; | ||
inject?: boolean | "head" | "body" | undefined; | ||
scriptLoading?: "module" | "blocking" | "defer" | "systemjs-module" | undefined; | ||
excludeChunks?: string[] | undefined; | ||
sri?: "sha256" | "sha384" | "sha512" | undefined; | ||
minify?: boolean | undefined; | ||
title?: string | undefined; | ||
favicon?: string | undefined; | ||
meta?: Record<string, string | Record<string, string>> | undefined; | ||
}, { | ||
filename?: string | undefined; | ||
publicPath?: string | undefined; | ||
hash?: boolean | undefined; | ||
chunks?: string[] | undefined; | ||
base?: string | { | ||
target?: "_self" | "_blank" | "_parent" | "_top" | undefined; | ||
href?: string | undefined; | ||
} | undefined; | ||
template?: string | undefined; | ||
templateContent?: string | ((args_0: Record<string, any>, ...args_1: unknown[]) => string | Promise<string>) | undefined; | ||
templateParameters?: boolean | Record<string, string> | ((args_0: Record<string, any>, ...args_1: unknown[]) => Record<string, any> | Promise<Record<string, any>>) | undefined; | ||
inject?: boolean | "head" | "body" | undefined; | ||
scriptLoading?: "module" | "blocking" | "defer" | "systemjs-module" | undefined; | ||
excludeChunks?: string[] | undefined; | ||
sri?: "sha256" | "sha384" | "sha512" | undefined; | ||
minify?: boolean | undefined; | ||
title?: string | undefined; | ||
favicon?: string | undefined; | ||
meta?: Record<string, string | Record<string, string>> | undefined; | ||
}>; | ||
export type HtmlRspackPluginOptions = z.infer<typeof htmlRspackPluginOptions>; | ||
href?: string; | ||
target?: "_self" | "_blank" | "_parent" | "_top"; | ||
}; | ||
/** | ||
* Modern browsers support non blocking javascript loading ('defer') to improve the page startup performance. | ||
* Setting to 'module' adds attribute type='module'. | ||
* This also implies 'defer', since modules are automatically deferred. | ||
* @default 'defer' | ||
* */ | ||
scriptLoading?: "blocking" | "defer" | "module" | "systemjs-module"; | ||
/** Allows you to add only some chunks. */ | ||
chunks?: string[]; | ||
/** Allows you to skip some chunks. */ | ||
excludeChunks?: string[]; | ||
/** The sri hash algorithm, disabled by default. */ | ||
sri?: "sha256" | "sha384" | "sha512"; | ||
/** | ||
* Controls whether to minify the output. | ||
* @default false | ||
*/ | ||
minify?: boolean; | ||
/** Adds the given favicon path to the output HTML. */ | ||
favicon?: string; | ||
/** | ||
* If true then append a unique rspack compilation hash to all included scripts and CSS files. | ||
* This is useful for cache busting | ||
* @default false | ||
* */ | ||
meta?: Record<string, string | Record<string, string>>; | ||
/** Inject a base tag */ | ||
hash?: boolean; | ||
}; | ||
type ExtraPluginHookData = { | ||
@@ -98,45 +92,5 @@ plugin: { | ||
declare const HtmlRspackPlugin: { | ||
new (c?: { | ||
filename?: string | undefined; | ||
publicPath?: string | undefined; | ||
hash?: boolean | undefined; | ||
chunks?: string[] | undefined; | ||
base?: string | { | ||
target?: "_self" | "_blank" | "_parent" | "_top" | undefined; | ||
href?: string | undefined; | ||
} | undefined; | ||
template?: string | undefined; | ||
templateContent?: string | ((args_0: Record<string, any>, ...args_1: unknown[]) => string | Promise<string>) | undefined; | ||
templateParameters?: boolean | Record<string, string> | ((args_0: Record<string, any>, ...args_1: unknown[]) => Record<string, any> | Promise<Record<string, any>>) | undefined; | ||
inject?: boolean | "head" | "body" | undefined; | ||
scriptLoading?: "module" | "blocking" | "defer" | "systemjs-module" | undefined; | ||
excludeChunks?: string[] | undefined; | ||
sri?: "sha256" | "sha384" | "sha512" | undefined; | ||
minify?: boolean | undefined; | ||
title?: string | undefined; | ||
favicon?: string | undefined; | ||
meta?: Record<string, string | Record<string, string>> | undefined; | ||
} | undefined): { | ||
new (c?: HtmlRspackPluginOptions | undefined): { | ||
name: BuiltinPluginName; | ||
_args: [c?: { | ||
filename?: string | undefined; | ||
publicPath?: string | undefined; | ||
hash?: boolean | undefined; | ||
chunks?: string[] | undefined; | ||
base?: string | { | ||
target?: "_self" | "_blank" | "_parent" | "_top" | undefined; | ||
href?: string | undefined; | ||
} | undefined; | ||
template?: string | undefined; | ||
templateContent?: string | ((args_0: Record<string, any>, ...args_1: unknown[]) => string | Promise<string>) | undefined; | ||
templateParameters?: boolean | Record<string, string> | ((args_0: Record<string, any>, ...args_1: unknown[]) => Record<string, any> | Promise<Record<string, any>>) | undefined; | ||
inject?: boolean | "head" | "body" | undefined; | ||
scriptLoading?: "module" | "blocking" | "defer" | "systemjs-module" | undefined; | ||
excludeChunks?: string[] | undefined; | ||
sri?: "sha256" | "sha384" | "sha512" | undefined; | ||
minify?: boolean | undefined; | ||
title?: string | undefined; | ||
favicon?: string | undefined; | ||
meta?: Record<string, string | Record<string, string>> | undefined; | ||
} | undefined]; | ||
_args: [c?: HtmlRspackPluginOptions | undefined]; | ||
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined; | ||
@@ -143,0 +97,0 @@ raw(compiler: Compiler): import("@rspack/binding").BuiltinPlugin; |
import { BuiltinPluginName, type RawIgnorePluginOptions } from "@rspack/binding"; | ||
export type IgnorePluginOptions = { | ||
/** A RegExp to test the resource against. */ | ||
resourceRegExp: NonNullable<RawIgnorePluginOptions["resourceRegExp"]>; | ||
/** A RegExp to test the context (directory) against. */ | ||
contextRegExp?: RawIgnorePluginOptions["contextRegExp"]; | ||
} | { | ||
/** A Filter function that receives `resource` and `context` as arguments, must return boolean. */ | ||
checkResource: NonNullable<RawIgnorePluginOptions["checkResource"]>; | ||
@@ -7,0 +10,0 @@ }; |
@@ -167,6 +167,3 @@ /** | ||
], void>; | ||
runtimeRequirementInTree: liteTapable.SyncBailHook<[ | ||
Chunk, | ||
Set<string> | ||
], void>; | ||
runtimeRequirementInTree: liteTapable.HookMap<liteTapable.SyncBailHook<[Chunk, Set<string>], void>>; | ||
runtimeModule: liteTapable.SyncHook<[JsRuntimeModule, Chunk], void>; | ||
@@ -210,2 +207,3 @@ seal: liteTapable.SyncHook<[], void>; | ||
get modules(): ReadonlySet<Module>; | ||
get builtModules(): ReadonlySet<Module>; | ||
get chunks(): ReadonlySet<Chunk>; | ||
@@ -212,0 +210,0 @@ /** |
@@ -163,6 +163,3 @@ "use strict"; | ||
]), | ||
runtimeRequirementInTree: new liteTapable.SyncBailHook([ | ||
"chunk", | ||
"runtimeRequirements" | ||
]), | ||
runtimeRequirementInTree: new liteTapable.HookMap(() => new liteTapable.SyncBailHook(["chunk", "runtimeRequirements"])), | ||
runtimeModule: new liteTapable.SyncHook(["module", "chunk"]), | ||
@@ -228,2 +225,5 @@ seal: new liteTapable.SyncHook([]), | ||
} | ||
get builtModules() { | ||
return new Set(__classPrivateFieldGet(this, _Compilation_inner, "f").builtModules.map(module => Module_1.Module.__from_binding(module, this))); | ||
} | ||
get chunks() { | ||
@@ -457,6 +457,6 @@ return (0, memoize_1.memoizeValue)(() => new Set(this.__internal__getChunks())); | ||
for (const item of proxyMethod) { | ||
const proxyedMethod = new Proxy(errors[item.method], { | ||
const proxiedMethod = new Proxy(errors[item.method], { | ||
apply: item.handler | ||
}); | ||
errors[item.method] = proxyedMethod; | ||
errors[item.method] = proxiedMethod; | ||
} | ||
@@ -520,6 +520,6 @@ return errors; | ||
for (const item of proxyMethod) { | ||
const proxyedMethod = new Proxy(warnings[item.method], { | ||
const proxiedMethod = new Proxy(warnings[item.method], { | ||
apply: item.handler | ||
}); | ||
warnings[item.method] = proxyedMethod; | ||
warnings[item.method] = proxiedMethod; | ||
} | ||
@@ -526,0 +526,0 @@ return warnings; |
@@ -597,5 +597,8 @@ "use strict"; | ||
}), | ||
registerCompilationRuntimeRequirementInTree: __classPrivateFieldGet(this, _Compiler_instances, "m", _Compiler_createHookRegisterTaps).call(this, binding.RegisterJsTapKind.CompilationRuntimeRequirementInTree, () => __classPrivateFieldGet(this, _Compiler_compilation, "f").hooks.runtimeRequirementInTree, queried => ({ chunk, runtimeRequirements }) => { | ||
registerCompilationRuntimeRequirementInTree: __classPrivateFieldGet(this, _Compiler_instances, "m", _Compiler_createHookMapRegisterTaps).call(this, binding.RegisterJsTapKind.CompilationRuntimeRequirementInTree, () => __classPrivateFieldGet(this, _Compiler_compilation, "f").hooks.runtimeRequirementInTree, queried => ({ chunk: rawChunk, runtimeRequirements }) => { | ||
const set = (0, RuntimeGlobals_1.__from_binding_runtime_globals)(runtimeRequirements); | ||
queried.call(Chunk_1.Chunk.__from_binding(chunk, __classPrivateFieldGet(this, _Compiler_compilation, "f")), set); | ||
const chunk = Chunk_1.Chunk.__from_binding(rawChunk, __classPrivateFieldGet(this, _Compiler_compilation, "f")); | ||
for (const r of set) { | ||
queried.for(r).call(chunk, set); | ||
} | ||
return { | ||
@@ -602,0 +605,0 @@ runtimeRequirements: (0, RuntimeGlobals_1.__to_binding_runtime_globals)(set) |
@@ -332,3 +332,4 @@ "use strict"; | ||
}; | ||
loaderContext.importModule = function importModule(request, options, callback) { | ||
loaderContext.importModule = function importModule(request, userOptions, callback) { | ||
const options = userOptions ? userOptions : {}; | ||
if (!callback) { | ||
@@ -335,0 +336,0 @@ return new Promise((resolve, reject) => { |
@@ -31,3 +31,3 @@ import type { JsAddingRuntimeModule } from "@rspack/binding"; | ||
shouldIsolate(): boolean; | ||
generate(compilation: Compilation): string; | ||
generate(): string; | ||
} |
@@ -16,3 +16,3 @@ "use strict"; | ||
stage: module.stage, | ||
generator: () => module.generate(compilation), | ||
generator: module.generate.bind(module), | ||
cacheable: !(module.fullHash || module.dependentHash), | ||
@@ -51,3 +51,3 @@ isolate: module.shouldIsolate() | ||
} | ||
generate(compilation) { | ||
generate() { | ||
throw new Error(`Should implement "generate" method of runtime module "${this.name}"`); | ||
@@ -54,0 +54,0 @@ } |
@@ -10,21 +10,3 @@ /** | ||
*/ | ||
/// <reference types="node" /> | ||
declare const _default: () => { | ||
exports: WebAssembly.Exports & { | ||
init: () => void; | ||
update: (b: number) => void; | ||
memory: WebAssembly.Memory; | ||
final: (b: number) => void; | ||
}; | ||
instancesPool: WebAssembly.Instance[]; | ||
buffered: number; | ||
mem: Buffer; | ||
chunkSize: number; | ||
digestSize: number; | ||
reset(): void; | ||
update(data: string | Buffer, encoding?: BufferEncoding | undefined): any; | ||
_updateWithShortString(data: string, encoding?: BufferEncoding | undefined): void; | ||
_updateWithBuffer(data: Buffer): void; | ||
digest(type: BufferEncoding): string | Buffer; | ||
}; | ||
declare const _default: () => import("./wasm-hash").WasmHash; | ||
export default _default; |
@@ -16,7 +16,13 @@ "use strict"; | ||
const wasm_hash_1 = __importDefault(require("./wasm-hash")); | ||
//#region wasm code: md4 (../../../assembly/hash/md4.asm.ts) --initialMemory 1 | ||
const md4 = new WebAssembly.Module(Buffer.from( | ||
// 2156 bytes | ||
"AGFzbQEAAAABCAJgAX8AYAAAAwUEAQAAAAUDAQABBhoFfwFBAAt/AUEAC38BQQALfwFBAAt/AUEACwciBARpbml0AAAGdXBkYXRlAAIFZmluYWwAAwZtZW1vcnkCAAqLEAQmAEGBxpS6BiQBQYnXtv5+JAJB/rnrxXkkA0H2qMmBASQEQQAkAAvSCgEZfyMBIQUjAiECIwMhAyMEIQQDQCAAIAFLBEAgASgCJCISIAEoAiAiEyABKAIcIgkgASgCGCIIIAEoAhQiByABKAIQIg4gASgCDCIGIAEoAggiDyABKAIEIhAgASgCACIRIAMgBHMgAnEgBHMgBWpqQQN3IgogAiADc3EgA3MgBGpqQQd3IgsgAiAKc3EgAnMgA2pqQQt3IgwgCiALc3EgCnMgAmpqQRN3Ig0gCyAMc3EgC3MgCmpqQQN3IgogDCANc3EgDHMgC2pqQQd3IgsgCiANc3EgDXMgDGpqQQt3IgwgCiALc3EgCnMgDWpqQRN3Ig0gCyAMc3EgC3MgCmpqQQN3IhQgDCANc3EgDHMgC2pqQQd3IRUgASgCLCILIAEoAigiCiAMIA0gDSAUcyAVcXNqakELdyIWIBQgFXNxIBRzIA1qakETdyEXIAEoAjQiGCABKAIwIhkgFSAWcyAXcSAVcyAUampBA3ciFCAWIBdzcSAWcyAVampBB3chFSABKAI8Ig0gASgCOCIMIBQgF3MgFXEgF3MgFmpqQQt3IhYgFCAVc3EgFHMgF2pqQRN3IRcgEyAOIBEgFCAVIBZyIBdxIBUgFnFyampBmfOJ1AVqQQN3IhQgFiAXcnEgFiAXcXIgFWpqQZnzidQFakEFdyIVIBQgF3JxIBQgF3FyIBZqakGZ84nUBWpBCXchFiAPIBggEiAWIAcgFSAQIBQgGSAUIBVyIBZxIBQgFXFyIBdqakGZ84nU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IgJBCGshAyAAIgFBAWohACABQYABOgAAA0AgACACSUEAIABBB3EbBEAgAEEAOgAAIABBAWohAAwBCwsDQCAAIAJJBEAgAEIANwMAIABBCGohAAwBCwsgAyAENwMAIAIQAUEAIwGtIgRC//8DgyAEQoCA/P8Pg0IQhoQiBEL/gYCA8B+DIARCgP6DgIDgP4NCCIaEIgRCj4C8gPCBwAeDQgiGIARC8IHAh4CegPgAg0IEiIQiBEKGjJiw4MCBgwZ8QgSIQoGChIiQoMCAAYNCJ34gBEKw4MCBg4aMmDCEfDcDAEEIIwKtIgRC//8DgyAEQoCA/P8Pg0IQhoQiBEL/gYCA8B+DIARCgP6DgIDgP4NCCIaEIgRCj4C8gPCBwAeDQgiGIARC8IHAh4CegPgAg0IEiIQiBEKGjJiw4MCBgwZ8QgSIQoGChIiQoMCAAYNCJ34gBEKw4MCBg4aMmDCEfDcDAEEQIwOtIgRC//8DgyAEQoCA/P8Pg0IQhoQiBEL/gYCA8B+DIARCgP6DgIDgP4NCCIaEIgRCj4C8gPCBwAeDQgiGIARC8IHAh4CegPgAg0IEiIQiBEKGjJiw4MCBgwZ8QgSIQoGChIiQoMCAAYNCJ34gBEKw4MCBg4aMmDCEfDcDAEEYIwStIgRC//8DgyAEQoCA/P8Pg0IQhoQiBEL/gYCA8B+DIARCgP6DgIDgP4NCCIaEIgRCj4C8gPCBwAeDQgiGIARC8IHAh4CegPgAg0IEiIQiBEKGjJiw4MCBgwZ8QgSIQoGChIiQoMCAAYNCJ34gBEKw4MCBg4aMmDCEfDcDAAs=", "base64")); | ||
//#endregion | ||
exports.default = wasm_hash_1.default.bind(null, md4, [], 64, 32); | ||
let createMd4; | ||
exports.default = () => { | ||
if (!createMd4) { | ||
//#region wasm code: md4 (../../../assembly/hash/md4.asm.ts) --initialMemory 1 | ||
const md4 = new WebAssembly.Module(Buffer.from( | ||
// 2156 bytes | ||
"AGFzbQEAAAABCAJgAX8AYAAAAwUEAQAAAAUDAQABBhoFfwFBAAt/AUEAC38B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4C8gPCBwAeDQgiGIARC8IHAh4CegPgAg0IEiIQiBEKGjJiw4MCBgwZ8QgSIQoGChIiQoMCAAYNCJ34gBEKw4MCBg4aMmDCEfDcDAEEIIwKtIgRC//8DgyAEQoCA/P8Pg0IQhoQiBEL/gYCA8B+DIARCgP6DgIDgP4NCCIaEIgRCj4C8gPCBwAeDQgiGIARC8IHAh4CegPgAg0IEiIQiBEKGjJiw4MCBgwZ8QgSIQoGChIiQoMCAAYNCJ34gBEKw4MCBg4aMmDCEfDcDAEEQIwOtIgRC//8DgyAEQoCA/P8Pg0IQhoQiBEL/gYCA8B+DIARCgP6DgIDgP4NCCIaEIgRCj4C8gPCBwAeDQgiGIARC8IHAh4CegPgAg0IEiIQiBEKGjJiw4MCBgwZ8QgSIQoGChIiQoMCAAYNCJ34gBEKw4MCBg4aMmDCEfDcDAEEYIwStIgRC//8DgyAEQoCA/P8Pg0IQhoQiBEL/gYCA8B+DIARCgP6DgIDgP4NCCIaEIgRCj4C8gPCBwAeDQgiGIARC8IHAh4CegPgAg0IEiIQiBEKGjJiw4MCBgwZ8QgSIQoGChIiQoMCAAYNCJ34gBEKw4MCBg4aMmDCEfDcDAAs=", "base64")); | ||
//#endregion | ||
createMd4 = wasm_hash_1.default.bind(null, md4, [], 64, 32); | ||
} | ||
return createMd4(); | ||
}; |
@@ -18,3 +18,3 @@ /** | ||
}; | ||
declare class WasmHash { | ||
export declare class WasmHash { | ||
exports: Exports; | ||
@@ -21,0 +21,0 @@ instancesPool: WebAssembly.Instance[]; |
@@ -12,3 +12,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.MAX_SHORT_STRING = void 0; | ||
exports.WasmHash = exports.MAX_SHORT_STRING = void 0; | ||
// 65536 is the size of a wasm memory page | ||
@@ -159,2 +159,3 @@ // 64 is the maximum chunk size for every possible wasm hash implementation | ||
} | ||
exports.WasmHash = WasmHash; | ||
const create = (wasmModule, instancesPool, chunkSize, digestSize) => { | ||
@@ -161,0 +162,0 @@ if (instancesPool.length > 0) { |
@@ -10,21 +10,3 @@ /** | ||
*/ | ||
/// <reference types="node" /> | ||
declare const _default: () => { | ||
exports: WebAssembly.Exports & { | ||
init: () => void; | ||
update: (b: number) => void; | ||
memory: WebAssembly.Memory; | ||
final: (b: number) => void; | ||
}; | ||
instancesPool: WebAssembly.Instance[]; | ||
buffered: number; | ||
mem: Buffer; | ||
chunkSize: number; | ||
digestSize: number; | ||
reset(): void; | ||
update(data: string | Buffer, encoding?: BufferEncoding | undefined): any; | ||
_updateWithShortString(data: string, encoding?: BufferEncoding | undefined): void; | ||
_updateWithBuffer(data: Buffer): void; | ||
digest(type: BufferEncoding): string | Buffer; | ||
}; | ||
declare const _default: () => import("./wasm-hash").WasmHash; | ||
export default _default; |
@@ -16,7 +16,13 @@ "use strict"; | ||
const wasm_hash_1 = __importDefault(require("./wasm-hash")); | ||
//#region wasm code: xxhash64 (../../../assembly/hash/xxhash64.asm.ts) --initialMemory 1 | ||
const xxhash64 = new WebAssembly.Module(Buffer.from( | ||
// 1170 bytes | ||
"AGFzbQEAAAABCAJgAX8AYAAAAwQDAQAABQMBAAEGGgV+AUIAC34BQgALfgFCAAt+AUIAC34BQgALByIEBGluaXQAAAZ1cGRhdGUAAQVmaW5hbAACBm1lbW9yeQIACrIIAzAAQtbrgu7q/Yn14AAkAELP1tO+0ser2UIkAUIAJAJC+erQ0OfJoeThACQDQgAkBAvUAQIBfwR+IABFBEAPCyMEIACtfCQEIwAhAiMBIQMjAiEEIwMhBQNAIAIgASkDAELP1tO+0ser2UJ+fEIfiUKHla+vmLbem55/fiECIAMgASkDCELP1tO+0ser2UJ+fEIfiUKHla+vmLbem55/fiEDIAQgASkDEELP1tO+0ser2UJ+fEIfiUKHla+vmLbem55/fiEEIAUgASkDGELP1tO+0ser2UJ+fEIfiUKHla+vmLbem55/fiEFIAAgAUEgaiIBSw0ACyACJAAgAyQBIAQkAiAFJAMLqAYCAX8EfiMEQgBSBH4jACICQgGJIwEiA0IHiXwjAiIEQgyJfCMDIgVCEol8IAJCz9bTvtLHq9lCfkIfiUKHla+vmLbem55/foVCh5Wvr5i23puef35CnaO16oOxjYr6AH0gA0LP1tO+0ser2UJ+Qh+JQoeVr6+Ytt6bnn9+hUKHla+vmLbem55/fkKdo7Xqg7GNivoAfSAEQs/W077Sx6vZQn5CH4lCh5Wvr5i23puef36FQoeVr6+Ytt6bnn9+Qp2jteqDsY2K+gB9IAVCz9bTvtLHq9lCfkIfiUKHla+vmLbem55/foVCh5Wvr5i23puef35CnaO16oOxjYr6AH0FQsXP2bLx5brqJwsjBCAArXx8IQIDQCABQQhqIABNBEAgAiABKQMAQs/W077Sx6vZQn5CH4lCh5Wvr5i23puef36FQhuJQoeVr6+Ytt6bnn9+Qp2jteqDsY2K+gB9IQIgAUEIaiEBDAELCyABQQRqIABNBEAgAiABNQIAQoeVr6+Ytt6bnn9+hUIXiULP1tO+0ser2UJ+Qvnz3fGZ9pmrFnwhAiABQQRqIQELA0AgACABRwRAIAIgATEAAELFz9my8eW66id+hUILiUKHla+vmLbem55/fiECIAFBAWohAQwBCwtBACACIAJCIYiFQs/W077Sx6vZQn4iAkIdiCAChUL5893xmfaZqxZ+IgJCIIggAoUiAkIgiCIDQv//A4NCIIYgA0KAgPz/D4NCEIiEIgNC/4GAgPAfg0IQhiADQoD+g4CA4D+DQgiIhCIDQo+AvIDwgcAHg0IIhiADQvCBwIeAnoD4AINCBIiEIgNChoyYsODAgYMGfEIEiEKBgoSIkKDAgAGDQid+IANCsODAgYOGjJgwhHw3AwBBCCACQv////8PgyICQv//A4NCIIYgAkKAgPz/D4NCEIiEIgJC/4GAgPAfg0IQhiACQoD+g4CA4D+DQgiIhCICQo+AvIDwgcAHg0IIhiACQvCBwIeAnoD4AINCBIiEIgJChoyYsODAgYMGfEIEiEKBgoSIkKDAgAGDQid+IAJCsODAgYOGjJgwhHw3AwAL", "base64")); | ||
//#endregion | ||
exports.default = wasm_hash_1.default.bind(null, xxhash64, [], 32, 16); | ||
let createXxhash64; | ||
exports.default = () => { | ||
if (!createXxhash64) { | ||
//#region wasm code: xxhash64 (../../../assembly/hash/xxhash64.asm.ts) --initialMemory 1 | ||
const xxhash64 = new WebAssembly.Module(Buffer.from( | ||
// 1170 bytes | ||
"AGFzbQEAAAABCAJgAX8AYAAAAwQDAQAABQMBAAEGGgV+AUIAC34BQgALfgFCAAt+AUIAC34BQgALByIEBGluaXQAAAZ1cGRhdGUAAQVmaW5hbAACBm1lbW9yeQIACrIIAzAAQtbrgu7q/Yn14AAkAELP1tO+0ser2UIkAUIAJAJC+erQ0OfJoeThACQDQgAkBAvUAQIBfwR+IABFBEAPCyMEIACtfCQEIwAhAiMBIQMjAiEEIwMhBQNAIAIgASkDAELP1tO+0ser2UJ+fEIfiUKHla+vmLbem55/fiECIAMgASkDCELP1tO+0ser2UJ+fEIfiUKHla+vmLbem55/fiEDIAQgASkDEELP1tO+0ser2UJ+fEIfiUKHla+vmLbem55/fiEEIAUgASkDGELP1tO+0ser2UJ+fEIfiUKHla+vmLbem55/fiEFIAAgAUEgaiIBSw0ACyACJAAgAyQBIAQkAiAFJAMLqAYCAX8EfiMEQgBSBH4jACICQgGJIwEiA0IHiXwjAiIEQgyJfCMDIgVCEol8IAJCz9bTvtLHq9lCfkIfiUKHla+vmLbem55/foVCh5Wvr5i23puef35CnaO16oOxjYr6AH0gA0LP1tO+0ser2UJ+Qh+JQoeVr6+Ytt6bnn9+hUKHla+vmLbem55/fkKdo7Xqg7GNivoAfSAEQs/W077Sx6vZQn5CH4lCh5Wvr5i23puef36FQoeVr6+Ytt6bnn9+Qp2jteqDsY2K+gB9IAVCz9bTvtLHq9lCfkIfiUKHla+vmLbem55/foVCh5Wvr5i23puef35CnaO16oOxjYr6AH0FQsXP2bLx5brqJwsjBCAArXx8IQIDQCABQQhqIABNBEAgAiABKQMAQs/W077Sx6vZQn5CH4lCh5Wvr5i23puef36FQhuJQoeVr6+Ytt6bnn9+Qp2jteqDsY2K+gB9IQIgAUEIaiEBDAELCyABQQRqIABNBEAgAiABNQIAQoeVr6+Ytt6bnn9+hUIXiULP1tO+0ser2UJ+Qvnz3fGZ9pmrFnwhAiABQQRqIQELA0AgACABRwRAIAIgATEAAELFz9my8eW66id+hUILiUKHla+vmLbem55/fiECIAFBAWohAQwBCwtBACACIAJCIYiFQs/W077Sx6vZQn4iAkIdiCAChUL5893xmfaZqxZ+IgJCIIggAoUiAkIgiCIDQv//A4NCIIYgA0KAgPz/D4NCEIiEIgNC/4GAgPAfg0IQhiADQoD+g4CA4D+DQgiIhCIDQo+AvIDwgcAHg0IIhiADQvCBwIeAnoD4AINCBIiEIgNChoyYsODAgYMGfEIEiEKBgoSIkKDAgAGDQid+IANCsODAgYOGjJgwhHw3AwBBCCACQv////8PgyICQv//A4NCIIYgAkKAgPz/D4NCEIiEIgJC/4GAgPAfg0IQhiACQoD+g4CA4D+DQgiIhCICQo+AvIDwgcAHg0IIhiACQvCBwIeAnoD4AINCBIiEIgJChoyYsODAgYMGfEIEiEKBgoSIkKDAgAGDQid+IAJCsODAgYOGjJgwhHw3AwAL", "base64")); | ||
//#endregion | ||
createXxhash64 = wasm_hash_1.default.bind(null, xxhash64, [], 32, 16); | ||
} | ||
return createXxhash64(); | ||
}; |
{ | ||
"name": "@rspack/core", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"webpackVersion": "5.75.0", | ||
@@ -61,5 +61,5 @@ "license": "MIT", | ||
"@module-federation/runtime-tools": "0.5.1", | ||
"@rspack/lite-tapable": "1.0.0", | ||
"@rspack/lite-tapable": "1.0.1", | ||
"caniuse-lite": "^1.0.30001616", | ||
"@rspack/binding": "1.0.7" | ||
"@rspack/binding": "1.0.8" | ||
}, | ||
@@ -66,0 +66,0 @@ "peerDependencies": { |
Sorry, the diff of this file is too big to display
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
2568564
63298
+ Added@rspack/binding@1.0.8(transitive)
+ Added@rspack/binding-darwin-arm64@1.0.8(transitive)
+ Added@rspack/binding-darwin-x64@1.0.8(transitive)
+ Added@rspack/binding-linux-arm64-gnu@1.0.8(transitive)
+ Added@rspack/binding-linux-arm64-musl@1.0.8(transitive)
+ Added@rspack/binding-linux-x64-gnu@1.0.8(transitive)
+ Added@rspack/binding-linux-x64-musl@1.0.8(transitive)
+ Added@rspack/binding-win32-arm64-msvc@1.0.8(transitive)
+ Added@rspack/binding-win32-ia32-msvc@1.0.8(transitive)
+ Added@rspack/binding-win32-x64-msvc@1.0.8(transitive)
+ Added@rspack/lite-tapable@1.0.1(transitive)
- Removed@rspack/binding@1.0.7(transitive)
- Removed@rspack/binding-darwin-arm64@1.0.7(transitive)
- Removed@rspack/binding-darwin-x64@1.0.7(transitive)
- Removed@rspack/binding-linux-arm64-gnu@1.0.7(transitive)
- Removed@rspack/binding-linux-arm64-musl@1.0.7(transitive)
- Removed@rspack/binding-linux-x64-gnu@1.0.7(transitive)
- Removed@rspack/binding-linux-x64-musl@1.0.7(transitive)
- Removed@rspack/binding-win32-arm64-msvc@1.0.7(transitive)
- Removed@rspack/binding-win32-ia32-msvc@1.0.7(transitive)
- Removed@rspack/binding-win32-x64-msvc@1.0.7(transitive)
- Removed@rspack/lite-tapable@1.0.0(transitive)
Updated@rspack/binding@1.0.8
Updated@rspack/lite-tapable@1.0.1