@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.
@@ -9833,20 +9833,34 @@ var Vue3ClientLazyloadTemplateBuilderPlugin = class {
9833
9833
  buildClientLazyloadTemplate(ir) {
9834
9834
  const isDebug = ir.configs.config.debug;
9835
9835
  const entryScript = this.microFrontendManager.produceScript(ir);
9836
+ const config2 = ir.configs.config;
9837
+ const staticURL = config2.STATIC_URL || "";
9838
+ const preJS = [];
9839
+ const postJS = [];
9840
+ const preCSS = [];
9841
+ const postCSS = [];
9842
+ if (isDebug) {
9843
+ preJS.push(`${staticURL}/packages/@lcap/breakpoint-client@1.0.0/dist/index.js?time=${Date.now()}`);
9844
+ }
9845
+ let code = `const preJS = ${JSON.stringify(preJS, null, 2)};
9846
+ const postJS = ${JSON.stringify(postJS, null, 2)};
9847
+ const preCSS = ${JSON.stringify(preCSS, null, 2)};
9848
+ const postCSS = ${JSON.stringify(postCSS, null, 2)};
9849
+ const entryCode = \`${entryScript}\`;
9850
+
9851
+ module.exports = {
9852
+ preJS,
9853
+ postJS,
9854
+ preCSS,
9855
+ postCSS,
9856
+ entryCode,
9857
+ }`;
9836
9858
  return new ReactFileDescription(
9837
9859
  "../client-lazyload-template.js",
9838
9860
  [],
9839
9861
  [],
9840
9862
  [
9841
- `const extraJS = [];
9842
- const extraCSS = [];
9843
- const entryCode = \`${entryScript}\`;
9844
-
9845
- module.exports = {
9846
- extraJS,
9847
- extraCSS,
9848
- entryCode,
9849
- }`
9863
+ code
9850
9864
  ]
9851
9865
  );
9852
9866
  }