Skip to content

Commit

Permalink
fix(template): fixed an error that prevented wrapping when using defa…
Browse files Browse the repository at this point in the history
…ult templates
  • Loading branch information
imjuni committed Mar 18, 2024
1 parent 96a787a commit 4866e21
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
export const defaultAliasNamedStarDefaultTemplate = `
<%- if (it.statement.default != null && it.statement.named.length > 0) { -%>
export { <%= it.statement.default.isPureType ? 'type ' : '' %>default as <%= it.statement.default.identifier.alias %> } from
export { <%= it.statement.default.isPureType ? 'type ' : '' %>default as <%= it.statement.default.identifier.alias %> } from
<%-= it.options.quote %><%= it.statement.importPath %><%= it.statement.extname.render %><%= it.options.quote %>
<%- if (it.options.useSemicolon) { -%><%-= ";" -%><%- } -%>
<%- if (it.options.useSemicolon) { -%><%-= ";\\n" -%><%- } else { -%><%-= "\\n" -%><%- } -%>
export * from <%= it.options.quote %><%= it.statement.importPath %><%= it.statement.extname.render %><%= it.options.quote %>
<%- if (it.options.useSemicolon) { -%><%-= ";" -%><%- } -%>
<%- } else if (it.statement.default != null) { -%>
export { <%= it.statement.default.isPureType ? 'type ' : '' %>default as <%= it.statement.default.identifier.alias %> } from
export { <%= it.statement.default.isPureType ? 'type ' : '' %>default as <%= it.statement.default.identifier.alias %> } from
<%-= it.options.quote %><%= it.statement.importPath %><%= it.statement.extname.render %><%= it.options.quote %>
<%- if (it.options.useSemicolon) { -%><%-= ";" -%><%- } -%>
Expand Down

0 comments on commit 4866e21

Please sign in to comment.