@rollup/browser
Advanced tools
Comparing version
@@ -247,2 +247,3 @@ import type * as estree from 'estree'; | ||
error: (error: RollupError | string) => never; | ||
fs: RollupFsModule; | ||
getFileName: (fileReferenceId: string) => string; | ||
@@ -675,2 +676,3 @@ getModuleIds: () => IterableIterator<string>; | ||
external?: ExternalOption; | ||
fs?: RollupFsModule; | ||
input?: InputOption; | ||
@@ -704,2 +706,3 @@ jsx?: false | JsxPreset | JsxOptions; | ||
external: IsExternal; | ||
fs: RollupFsModule; | ||
input: string[] | Record<string, string>; | ||
@@ -1109,1 +1112,74 @@ jsx: false | NormalizedJsxOptions; | ||
) => MaybePromise<RollupOptions | RollupOptions[]>; | ||
export interface RollupFsModule { | ||
appendFile( | ||
path: string, | ||
data: string | Uint8Array, | ||
options?: { encoding?: BufferEncoding | null; mode?: string | number; flag?: string | number } | ||
): Promise<void>; | ||
copyFile(source: string, destination: string, mode?: string | number): Promise<void>; | ||
mkdir(path: string, options?: { recursive?: boolean; mode?: string | number }): Promise<void>; | ||
mkdtemp(prefix: string): Promise<string>; | ||
readdir(path: string, options?: { withFileTypes?: false }): Promise<string[]>; | ||
readdir(path: string, options?: { withFileTypes: true }): Promise<RollupDirectoryEntry[]>; | ||
readFile( | ||
path: string, | ||
options?: { encoding?: null; flag?: string | number; signal?: AbortSignal } | ||
): Promise<Uint8Array>; | ||
readFile( | ||
path: string, | ||
options?: { encoding: BufferEncoding; flag?: string | number; signal?: AbortSignal } | ||
): Promise<string>; | ||
realpath(path: string): Promise<string>; | ||
rename(oldPath: string, newPath: string): Promise<void>; | ||
rmdir(path: string, options?: { recursive?: boolean }): Promise<void>; | ||
stat(path: string): Promise<RollupFileStats>; | ||
lstat(path: string): Promise<RollupFileStats>; | ||
unlink(path: string): Promise<void>; | ||
writeFile( | ||
path: string, | ||
data: string | Uint8Array, | ||
options?: { encoding?: BufferEncoding | null; mode?: string | number; flag?: string | number } | ||
): Promise<void>; | ||
} | ||
export type BufferEncoding = | ||
| 'ascii' | ||
| 'utf8' | ||
| 'utf16le' | ||
| 'ucs2' | ||
| 'base64' | ||
| 'base64url' | ||
| 'latin1' | ||
| 'binary' | ||
| 'hex'; | ||
export interface RollupDirectoryEntry { | ||
isFile(): boolean; | ||
isDirectory(): boolean; | ||
isSymbolicLink(): boolean; | ||
name: string; | ||
} | ||
export interface RollupFileStats { | ||
isFile(): boolean; | ||
isDirectory(): boolean; | ||
isSymbolicLink(): boolean; | ||
size: number; | ||
mtime: Date; | ||
ctime: Date; | ||
atime: Date; | ||
birthtime: Date; | ||
} |
{ | ||
"name": "@rollup/browser", | ||
"version": "4.42.0", | ||
"version": "4.43.0", | ||
"description": "Next-generation ES module bundler browser build", | ||
@@ -5,0 +5,0 @@ "main": "dist/rollup.browser.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
6269944
0.16%4162
1.66%