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({