Azure Monitor: build monaco with webpack WIP

This commit is contained in:
Alexander Zobnin
2019-01-21 21:22:53 +03:00
parent 44c07eb2e9
commit 00de497663
10 changed files with 289 additions and 116 deletions

View File

@ -0,0 +1,6 @@
const loaderUtils = require('loader-utils');
module.exports = function blobUrl(source) {
const { type } = loaderUtils.getOptions(this) || {};
return `module.exports = URL.createObjectURL(new Blob([${JSON.stringify(source)}]${type ? `, { type: ${JSON.stringify(type)} }` : ''}));`;
};