UNPKG

uint8array-loader

Version:

babel loader to return content as a unit8array

9 lines (6 loc) 225 B
'use strict'; module.exports = function(content) { this.cacheable && this.cacheable(); return 'module.exports = Uint8Array.from(' + JSON.stringify(Array.from(content.values())) + ');'; }; module.exports.raw = true;