UNPKG

@zywave/zui-bundle

Version:

ZUI, out of the box, provides ES modules with bare path modifiers (e.g. `import '@zywave/zui-foo-bar'`). This is great as that's the way browsers are _going_, but they aren't there quite yet. Tooling exists to help solve this problem like webpack or rollu

27 lines (21 loc) 701 B
/* eslint-disable */ (function () { "use strict"; const rootPath = getScriptPath(); if (rootPath.includes("-pre") || rootPath.includes("@next")) { alert("zui-loader.js in both ZUI and ZAPI has been removed. See https://booster.zywave.dev/design-system/developers/installation/ for up-to-date instructions."); } else { addScript(rootPath + "bundle.js"); } function getScriptPath() { const src = document.currentScript.src; const dir = src.substring(0, src.lastIndexOf("/")); return dir + "/"; } function addScript(src) { const tag = document.createElement("script"); tag.src = src; tag.type = "module"; document.head.appendChild(tag); } })();