@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/playground.js
CHANGED
|
@@ -9710,20 +9710,34 @@ var Vue3ClientLazyloadTemplateBuilderPlugin = class {
|
|
|
9710
9710
|
buildClientLazyloadTemplate(ir) {
|
|
9711
9711
|
const isDebug = ir.configs.config.debug;
|
|
9712
9712
|
const entryScript = this.microFrontendManager.produceScript(ir);
|
|
9713
|
+
const config2 = ir.configs.config;
|
|
9714
|
+
const staticURL = config2.STATIC_URL || "";
|
|
9715
|
+
const preJS = [];
|
|
9716
|
+
const postJS = [];
|
|
9717
|
+
const preCSS = [];
|
|
9718
|
+
const postCSS = [];
|
|
9719
|
+
if (isDebug) {
|
|
9720
|
+
preJS.push(`${staticURL}/packages/@lcap/breakpoint-client@1.0.0/dist/index.js?time=${Date.now()}`);
|
|
9721
|
+
}
|
|
9722
|
+
let code = `const preJS = ${JSON.stringify(preJS, null, 2)};
|
|
9723
|
+
const postJS = ${JSON.stringify(postJS, null, 2)};
|
|
9724
|
+
const preCSS = ${JSON.stringify(preCSS, null, 2)};
|
|
9725
|
+
const postCSS = ${JSON.stringify(postCSS, null, 2)};
|
|
9726
|
+
const entryCode = \`${entryScript}\`;
|
|
9727
|
+
|
|
9728
|
+
module.exports = {
|
|
9729
|
+
preJS,
|
|
9730
|
+
postJS,
|
|
9731
|
+
preCSS,
|
|
9732
|
+
postCSS,
|
|
9733
|
+
entryCode,
|
|
9734
|
+
}`;
|
|
9713
9735
|
return new ReactFileDescription(
|
|
9714
9736
|
"../client-lazyload-template.js",
|
|
9715
9737
|
[],
|
|
9716
9738
|
[],
|
|
9717
9739
|
[
|
|
9718
|
-
|
|
9719
|
-
const extraCSS = [];
|
|
9720
|
-
const entryCode = \`${entryScript}\`;
|
|
9721
|
-
|
|
9722
|
-
module.exports = {
|
|
9723
|
-
extraJS,
|
|
9724
|
-
extraCSS,
|
|
9725
|
-
entryCode,
|
|
9726
|
-
}`
|
|
9740
|
+
code
|
|
9727
9741
|
]
|
|
9728
9742
|
);
|
|
9729
9743
|
}
|