Project Init

This commit is contained in:
Muluhabt
2026-05-29 15:23:46 +03:00
commit 2fbc557aac
67387 changed files with 6063341 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
import type { Compiler } from "..";
import type { InfrastructureLogging } from "../config";
export interface NodeEnvironmentPluginOptions {
infrastructureLogging: InfrastructureLogging;
}
export default class NodeEnvironmentPlugin {
options: NodeEnvironmentPluginOptions;
constructor(options: NodeEnvironmentPluginOptions);
apply(compiler: Compiler): void;
}

View File

@@ -0,0 +1,18 @@
/**
* The following code is modified based on
* https://github.com/webpack/webpack/blob/4b4ca3b/lib/node/NodeTemplatePlugin.js
*
* MIT Licensed
* Author Tobias Koppers @sokra
* Copyright (c) JS Foundation and other contributors
* https://github.com/webpack/webpack/blob/main/LICENSE
*/
import type { Compiler } from "../Compiler";
export type NodeTemplatePluginOptions = {
asyncChunkLoading?: boolean;
};
export default class NodeTemplatePlugin {
private _options;
constructor(_options?: NodeTemplatePluginOptions);
apply(compiler: Compiler): void;
}

View File

@@ -0,0 +1,18 @@
/**
* The following code is modified based on
* https://github.com/webpack/webpack/blob/4b4ca3b/lib/node/NodeWatchFileSystem.js
*
* MIT Licensed
* Author Tobias Koppers @sokra
* Copyright (c) JS Foundation and other contributors
* https://github.com/webpack/webpack/blob/main/LICENSE
*/
import type Watchpack from "../../compiled/watchpack";
import type { FileSystemInfoEntry, InputFileSystem, Watcher, WatchFileSystem } from "../util/fs";
export default class NodeWatchFileSystem implements WatchFileSystem {
inputFileSystem: InputFileSystem;
watcherOptions: Watchpack.WatchOptions;
watcher?: Watchpack;
constructor(inputFileSystem: InputFileSystem);
watch(files: Iterable<string>, directories: Iterable<string>, missing: Iterable<string>, startTime: number, options: Watchpack.WatchOptions, callback: (error: Error | null, fileTimeInfoEntries: Map<string, FileSystemInfoEntry | "ignore">, contextTimeInfoEntries: Map<string, FileSystemInfoEntry | "ignore">, changedFiles: Set<string>, removedFiles: Set<string>) => void, callbackUndelayed: (fileName: string, changeTime: number) => void): Watcher;
}

15
node_modules/@rspack/core/dist/node/nodeConsole.d.ts generated vendored Normal file
View File

@@ -0,0 +1,15 @@
/**
* The following code is modified based on
* https://github.com/webpack/webpack/blob/4b4ca3b/lib/node/nodeConsole.js
*
* MIT Licensed
* Author Tobias Koppers @sokra
* Copyright (c) JS Foundation and other contributors
* https://github.com/webpack/webpack/blob/main/LICENSE
*/
import type { LoggerConsole } from "../logging/createConsoleLogger";
export default function ({ colors, appendOnly, stream }: {
colors?: boolean;
appendOnly?: boolean;
stream: NodeJS.WritableStream;
}): LoggerConsole;