Skip to content

Commit

Permalink
fix(create-fuse-app): fix typo in rewrite-next file (#143)
Browse files Browse the repository at this point in the history
* fix(create-fuse-app): fix typo in rewrite-next file

* adding changeset

* Update .changeset/forty-seas-march.md

---------

Co-authored-by: Jovi De Croock <decroockjovi@gmail.com>
  • Loading branch information
snlaight and JoviDeCroock committed Feb 5, 2024
1 parent 8542de9 commit 1f225c5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/forty-seas-march.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'create-fuse-app': minor
---

Fix typo in the babel-plugin when rewriting an export default expression
2 changes: 1 addition & 1 deletion packages/create-fuse-app/src/rewrite-next.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const plugin = (
ExportDefaultDeclaration(path) {
if (isMjs) {
const currentDeclaration = path.node.declaration
path.node.declaration = t.callExprssion(
path.node.declaration = t.callExpression(
t.callExpression(t.identifier('nextFusePlugin'), []),
[currentDeclaration],
)
Expand Down

0 comments on commit 1f225c5

Please sign in to comment.