Open
Description
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
Labels
No labels