UNPKG

@lyra/base

Version:

Lyra plugin containing the base components and roles for a Lyra configuration

21 lines (18 loc) 593 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); /* Output (rougly): * (function(doc, urls) { * urls.forEach(function (src) { * var script = document.createElement('script') * script.src = src * script.async = false * document.head.appendChild(script) * }) * })(document, ['a.js', 'b.js']) */ exports.default = scripts => { const urls = `[${scripts.map(JSON.stringify).join(',')}]`; return `!function(d,l){l.forEach(function(u){var n=d.createElement("script");n.src=u,n.async=!1,d.head.appendChild(n)})}(document,${urls});`; };