From a9735bcf2bb5e443f9e11b1c3eaaaa95bfdf274f Mon Sep 17 00:00:00 2001 From: Joel Denning Date: Sun, 22 Sep 2024 17:17:42 -0600 Subject: [PATCH] Fix typescript error in generated root config (#410) --- .changeset/hip-radios-act.md | 5 +++++ .../src/root-config/templates/src/root-config.ejs | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 .changeset/hip-radios-act.md diff --git a/.changeset/hip-radios-act.md b/.changeset/hip-radios-act.md new file mode 100644 index 0000000..26a1781 --- /dev/null +++ b/.changeset/hip-radios-act.md @@ -0,0 +1,5 @@ +--- +"generator-single-spa": patch +--- + +Fix typescript error in generated root configs diff --git a/packages/generator-single-spa/src/root-config/templates/src/root-config.ejs b/packages/generator-single-spa/src/root-config/templates/src/root-config.ejs index 885489c..253975d 100644 --- a/packages/generator-single-spa/src/root-config/templates/src/root-config.ejs +++ b/packages/generator-single-spa/src/root-config/templates/src/root-config.ejs @@ -11,8 +11,11 @@ registerApplication({ // registerApplication({ // name: "@<%- orgName %>/navbar", -// app: () => System.import("@<%- orgName %>/navbar"), -// activeWhen: ["/"] +// app: () => +// System.import<% if (typescript) {%><% } %>( +// "@<%- orgName %>/navbar" +// ), +// activeWhen: ["/"], // }); start({