mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 12:45:39 +01:00
* Uses rollup for ESM build and d.ts bundling.
Moves monaco.languages.{typescript, json, html, css} to monaco.*.
Moves monaco.editor.createWebWorker to monaco.createWebWorker.
* Adds excluded files from dist, as they needed to be patched.
25 lines
942 B
TypeScript
25 lines
942 B
TypeScript
import MagicString from "magic-string";
|
|
import type { RenderedChunk } from "rollup";
|
|
import { OutputOptions, KeepCssImportsPluginContext } from "./types";
|
|
interface ChunkDetails {
|
|
chunk: RenderedChunk;
|
|
bundleOutDir: string;
|
|
moduleRoot: string;
|
|
}
|
|
export declare class ImportUpdater {
|
|
private _outputOptions;
|
|
private _pluginContext;
|
|
constructor(pluginContext: KeepCssImportsPluginContext, outputOptions: OutputOptions);
|
|
getMagicId(id: string): string;
|
|
updateImports(code: string, chunk: RenderedChunk, bundleOutDir: string, moduleRoot: string): {
|
|
code: string;
|
|
map: import("magic-string").SourceMap;
|
|
};
|
|
updateMatchedImport(m: RegExpMatchArray, magicString: MagicString, chunkDetails: ChunkDetails): void;
|
|
private addImportAndGetNewId;
|
|
private updateChunk;
|
|
private saveAndGetUpdatedImportPath;
|
|
private shouldAddPrefixCurrentDir;
|
|
private resolveOutputPath;
|
|
}
|
|
export {};
|