Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Missing Bundle type #18

Open
benmccann opened this issue Nov 4, 2022 · 1 comment
Open

Missing Bundle type #18

benmccann opened this issue Nov 4, 2022 · 1 comment

Comments

@benmccann
Copy link

I tried to convert rollup to use magic-string-rs, but got the error:

Module '"@napi-rs/magic-string"' has no exported member 'Bundle'

Here's the type as provided by magic-string:

export class Bundle {
  constructor(options?: BundleOptions);
  addSource(source: MagicString | { filename?: string, content: MagicString }): Bundle;
  append(str: string, options?: BundleOptions): Bundle;
  clone(): Bundle;
  generateMap(options?: SourceMapOptions): SourceMap;
  generateDecodedMap(options?: SourceMapOptions): DecodedSourceMap;
  getIndentString(): string;
  indent(indentStr?: string): Bundle;
  indentExclusionRanges: ExclusionRange | Array<ExclusionRange>;
  prepend(str: string): Bundle;
  toString(): string;
  trimLines(): Bundle;
  trim(charType?: string): Bundle;
  trimStart(charType?: string): Bundle;
  trimEnd(charType?: string): Bundle;
  isEmpty(): boolean;
  length(): number;
}
@h-a-n-a
Copy link
Owner

h-a-n-a commented Nov 7, 2022

Source concatenation is not supported currently

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants