mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 09:20:10 +01:00
Fixes #1305: avoid pointing to missing source maps
This commit is contained in:
parent
c854d18c35
commit
d3fdf3bfc7
1 changed files with 2 additions and 0 deletions
|
|
@ -317,6 +317,8 @@ function ESM_pluginStream(plugin, destinationPath) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
contents = contents.replace(/\/\/# sourceMappingURL=.*((\r?\n)|$)/g, '');
|
||||||
|
|
||||||
data.contents = Buffer.from(contents);
|
data.contents = Buffer.from(contents);
|
||||||
this.emit('data', data);
|
this.emit('data', data);
|
||||||
}))
|
}))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue