mirror of
https://github.com/grafana/grafana.git
synced 2025-07-29 22:32:24 +08:00
Azure Monitor: build monaco with webpack WIP
This commit is contained in:
6
scripts/webpack/loaders/blobUrl.js
Normal file
6
scripts/webpack/loaders/blobUrl.js
Normal 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)} }` : ''}));`;
|
||||
};
|
Reference in New Issue
Block a user