mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 17:25:39 +01:00
Fixed typos and other improvements per code review
This commit is contained in:
parent
292108c5ee
commit
6c73d7f708
4 changed files with 22 additions and 14 deletions
|
|
@ -58,9 +58,8 @@ function bundleOne(moduleId, exclude) {
|
|||
}
|
||||
|
||||
function updateImports(moduleId) {
|
||||
console.log(`ESM: updating relative imports paths for ${moduleId}...`);
|
||||
const filePath = path.join(REPO_ROOT, 'release/esm/' + moduleId + '.js');
|
||||
var fileContents = fs.readFileSync(filePath).toString();
|
||||
let fileContents = fs.readFileSync(filePath).toString();
|
||||
fileContents = fileContents.replace(/vs\/basic-languages\//g, "../../basic-languages/");
|
||||
fs.writeFileSync(filePath, fileContents);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue