@lcap/nasl-unified-frontend-generator 4.0.1-rc.3 → 4.0.1-rc.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -7595,20 +7595,34 @@ var Vue3ClientLazyloadTemplateBuilderPlugin = class {
7595
7595
  buildClientLazyloadTemplate(ir) {
7596
7596
  const isDebug = ir.configs.config.debug;
7597
7597
  const entryScript = this.microFrontendManager.produceScript(ir);
7598
+ const config = ir.configs.config;
7599
+ const staticURL = config.STATIC_URL || "";
7600
+ const preJS = [];
7601
+ const postJS = [];
7602
+ const preCSS = [];
7603
+ const postCSS = [];
7604
+ if (isDebug) {
7605
+ preJS.push(`${staticURL}/packages/@lcap/breakpoint-client@1.0.0/dist/index.js?time=${Date.now()}`);
7606
+ }
7607
+ let code = `const preJS = ${JSON.stringify(preJS, null, 2)};
7608
+ const postJS = ${JSON.stringify(postJS, null, 2)};
7609
+ const preCSS = ${JSON.stringify(preCSS, null, 2)};
7610
+ const postCSS = ${JSON.stringify(postCSS, null, 2)};
7611
+ const entryCode = \`${entryScript}\`;
7612
+
7613
+ module.exports = {
7614
+ preJS,
7615
+ postJS,
7616
+ preCSS,
7617
+ postCSS,
7618
+ entryCode,
7619
+ }`;
7598
7620
  return new ReactFileDescription(
7599
7621
  "../client-lazyload-template.js",
7600
7622
  [],
7601
7623
  [],
7602
7624
  [
7603
- `const extraJS = [];
7604
- const extraCSS = [];
7605
- const entryCode = \`${entryScript}\`;
7606
-
7607
- module.exports = {
7608
- extraJS,
7609
- extraCSS,
7610
- entryCode,
7611
- }`
7625
+ code
7612
7626
  ]
7613
7627
  );
7614
7628
  }