Skip to content

Bump source-map dependency #140

Open
@BlueskyFR

Description

@BlueskyFR

Hi!

I am trying to locally upgrade the source-map dependency.
As of now, the following code is initializing it:

public static get consumer(): SourceMapConsumer {
  if (this._consumer == null) {
    this._consumer = new SourceMapConsumer(require("main.js.map"));
  }

  return this._consumer;
}

However, the new SourceMapConsumer now returns a promise, which makes the source-map parsing asynchronous.
The problem is that a getter cannot be async.

How can I handle this?
I am considering doing a PR after I resolve this.

Thanks in advance for your help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions