Socket
Book a DemoInstallSign in
Socket

@rspack/core

Package Overview
Dependencies
Maintainers
2
Versions
1160
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rspack/core - npm Package Compare versions

Comparing version

to
1.5.1

18

dist/builtin-plugin/lazy-compilation/lazyCompilation.d.ts
import type { Module } from "../../Module";
export declare const BuiltinLazyCompilationPlugin: {
new (module: (args: {
module: string;
path: string;
}) => {
active: boolean;
data: string;
client: string;
}, cacheable: boolean, entries: boolean, imports: boolean, test?: RegExp | ((module: Module) => boolean) | undefined): {
new (currentActiveModules: () => Set<string>, entries: boolean, imports: boolean, client: string, test?: RegExp | ((module: Module) => boolean) | undefined): {
name: string;
_args: [module: (args: {
module: string;
path: string;
}) => {
active: boolean;
data: string;
client: string;
}, cacheable: boolean, entries: boolean, imports: boolean, test?: RegExp | ((module: Module) => boolean) | undefined];
_args: [currentActiveModules: () => Set<string>, entries: boolean, imports: boolean, client: string, test?: RegExp | ((module: Module) => boolean) | undefined];
affectedHooks: "done" | "compilation" | "run" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;

@@ -21,0 +7,0 @@ raw(compiler: import("../..").Compiler): import("@rspack/binding").BuiltinPlugin;

28

dist/config/adapterRuleUse.d.ts

@@ -325,4 +325,28 @@ import type { AssetInfo, RawModuleRuleUse, RawOptions } from "@rspack/binding";

}
export type LoaderDefinitionFunction<OptionsType = {}, ContextAdditions = {}> = (this: LoaderContext<OptionsType> & ContextAdditions, content: string, sourceMap?: string | SourceMap, additionalData?: AdditionalData) => string | void | Buffer | Promise<string | Buffer>;
export type PitchLoaderDefinitionFunction<OptionsType = {}, ContextAdditions = {}> = (this: LoaderContext<OptionsType> & ContextAdditions, remainingRequest: string, previousRequest: string, data: object) => string | void | Buffer | Promise<string | Buffer>;
export type LoaderDefinitionFunction<OptionsType = {}, ContextAdditions = {}> = (this: LoaderContext<OptionsType> & ContextAdditions, content: string, sourceMap?: string | SourceMap, additionalData?: AdditionalData) => string | void | Buffer | Promise<string | Buffer | void>;
export type PitchLoaderDefinitionFunction<OptionsType = {}, ContextAdditions = {}> = (this: LoaderContext<OptionsType> & ContextAdditions, remainingRequest: string, previousRequest: string, data: object) => string | void | Buffer | Promise<string | Buffer | void>;
/**
* Defines a loader for Rspack.
* A loader is a transformer that converts various types of modules into Rspack
* supported types. By using different kinds of loaders, you can extend Rspack to
* process additional module types, including JSX, Markdown, Sass, Less, and more.
*
* @template OptionsType - The type of options that the loader accepts
* @template ContextAdditions - Additional properties to add to the loader context
*
* @example
* ```ts
* import type { LoaderDefinition } from '@rspack/core';
*
* type MyLoaderOptions = {
* foo: string;
* };
*
* const myLoader: LoaderDefinition<MyLoaderOptions> = function(source) {
* return someOperation(source);
* };
*
* export default myLoader;
* ```
*/
export type LoaderDefinition<OptionsType = {}, ContextAdditions = {}> = LoaderDefinitionFunction<OptionsType, ContextAdditions> & {

@@ -329,0 +353,0 @@ raw?: false;

@@ -21,3 +21,3 @@ /**

constructor(watchings: Watching[], compiler: MultiCompiler);
invalidate(callback: Callback<Error, void>): void;
invalidate(callback?: Callback<Error, void>): void;
invalidateWithChangesAndRemovals(changedFiles?: Set<string>, removedFiles?: Set<string>, callback?: Callback<Error, void>): void;

@@ -24,0 +24,0 @@ close(callback: Callback<Error, void>): void;

@@ -119,2 +119,3 @@ // @ts-ignore

treatConstEnumAsEnum: z.ZodOptional<z.ZodBoolean>;
tsEnumIsMutable: z.ZodOptional<z.ZodBoolean>;
useDefineForClassFields: z.ZodOptional<z.ZodBoolean>;

@@ -121,0 +122,0 @@ verbatimModuleSyntax: z.ZodOptional<z.ZodBoolean>;

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

var urlBase = decodeURIComponent(__resourceQuery.slice(1));

@@ -19,3 +17,3 @@

).request(
urlBase + data,
urlBase + encodeURIComponent(data),
{

@@ -22,0 +20,0 @@ agent: false,

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

if (typeof EventSource !== "function") {

@@ -19,3 +17,6 @@ throw new Error(

activeEventSource = new EventSource(
urlBase + Array.from(compiling).join("@")
urlBase +
Array.from(compiling, function (module) {
return encodeURIComponent(module);
}).join("@")
);

@@ -22,0 +23,0 @@ /**

{
"name": "@rspack/core",
"version": "1.5.0",
"version": "1.5.1",
"webpackVersion": "5.75.0",

@@ -63,3 +63,3 @@ "license": "MIT",

"@rspack/lite-tapable": "1.0.1",
"@rspack/binding": "1.5.0"
"@rspack/binding": "1.5.1"
},

@@ -66,0 +66,0 @@ "peerDependencies": {

Sorry, the diff of this file is too big to display