@lcap/nasl-unified-frontend-generator 4.0.1-rc.4 → 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.js +23 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +23 -9
- package/dist/index.mjs.map +1 -1
- package/dist/playground.js +23 -9
- package/dist/playground.js.map +1 -1
- package/dist/playground.mjs +23 -9
- package/dist/playground.mjs.map +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -7555,20 +7555,34 @@ var Vue3ClientLazyloadTemplateBuilderPlugin = class {
|
|
|
7555
7555
|
buildClientLazyloadTemplate(ir) {
|
|
7556
7556
|
const isDebug = ir.configs.config.debug;
|
|
7557
7557
|
const entryScript = this.microFrontendManager.produceScript(ir);
|
|
7558
|
+
const config = ir.configs.config;
|
|
7559
|
+
const staticURL = config.STATIC_URL || "";
|
|
7560
|
+
const preJS = [];
|
|
7561
|
+
const postJS = [];
|
|
7562
|
+
const preCSS = [];
|
|
7563
|
+
const postCSS = [];
|
|
7564
|
+
if (isDebug) {
|
|
7565
|
+
preJS.push(`${staticURL}/packages/@lcap/breakpoint-client@1.0.0/dist/index.js?time=${Date.now()}`);
|
|
7566
|
+
}
|
|
7567
|
+
let code = `const preJS = ${JSON.stringify(preJS, null, 2)};
|
|
7568
|
+
const postJS = ${JSON.stringify(postJS, null, 2)};
|
|
7569
|
+
const preCSS = ${JSON.stringify(preCSS, null, 2)};
|
|
7570
|
+
const postCSS = ${JSON.stringify(postCSS, null, 2)};
|
|
7571
|
+
const entryCode = \`${entryScript}\`;
|
|
7572
|
+
|
|
7573
|
+
module.exports = {
|
|
7574
|
+
preJS,
|
|
7575
|
+
postJS,
|
|
7576
|
+
preCSS,
|
|
7577
|
+
postCSS,
|
|
7578
|
+
entryCode,
|
|
7579
|
+
}`;
|
|
7558
7580
|
return new ReactFileDescription(
|
|
7559
7581
|
"../client-lazyload-template.js",
|
|
7560
7582
|
[],
|
|
7561
7583
|
[],
|
|
7562
7584
|
[
|
|
7563
|
-
|
|
7564
|
-
const extraCSS = [];
|
|
7565
|
-
const entryCode = \`${entryScript}\`;
|
|
7566
|
-
|
|
7567
|
-
module.exports = {
|
|
7568
|
-
extraJS,
|
|
7569
|
-
extraCSS,
|
|
7570
|
-
entryCode,
|
|
7571
|
-
}`
|
|
7585
|
+
code
|
|
7572
7586
|
]
|
|
7573
7587
|
);
|
|
7574
7588
|
}
|