mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 17:25:39 +01:00
update deps
This commit is contained in:
parent
251cec6aa4
commit
2edd71ff65
4 changed files with 22 additions and 22 deletions
|
|
@ -39,13 +39,13 @@ function bundleOne(moduleId, exclude) {
|
|||
'vs/language/typescript': REPO_ROOT + '/release/dev'
|
||||
},
|
||||
optimize: 'none'
|
||||
}, function(buildResponse) {
|
||||
}, async function(buildResponse) {
|
||||
const filePath = path.join(REPO_ROOT, 'release/min/' + moduleId + '.js');
|
||||
const fileContents = fs.readFileSync(filePath).toString();
|
||||
console.log();
|
||||
console.log(`Minifying ${filePath}...`);
|
||||
const result = terser.minify(fileContents);
|
||||
console.log(`Done.`);
|
||||
const result = await terser.minify(fileContents);
|
||||
console.log(`Done minifying ${filePath}.`);
|
||||
fs.writeFileSync(filePath, BUNDLED_FILE_HEADER + result.code);
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue