Skip to content

Commit

Permalink
fix: optimizeJs should be based off transformResult.code
Browse files Browse the repository at this point in the history
  • Loading branch information
astahmer committed Apr 9, 2024
1 parent bab9a97 commit fdac578
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/silly-oranges-remain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@pandabox/unplugin": patch
---

fix: optimizeJs should be based off transformResult.code
2 changes: 1 addition & 1 deletion packages/unplugin/src/plugin/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ export const unpluginFactory: UnpluginFactory<PandaPluginOptions | undefined> =
}

const result = tranformPanda(ctx, {
code,
code: transformResult.code,
id,
sourceFile,
parserResult,
Expand Down

0 comments on commit fdac578

Please sign in to comment.