Skip to content

Commit

Permalink
refactor: Disable transform-hook-names if devtools aren't enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
rschristian committed Dec 23, 2023
1 parent aa534d6 commit e75e931
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ function preactPlugin({
importSource: jsxImportSource ?? "preact",
},
],
...(config.isProduction ? [] : ["babel-plugin-transform-hook-names"]),
...(devToolsEnabled && !config.isProduction ? ["babel-plugin-transform-hook-names"] : []),
],
sourceMaps: true,
inputSourceMap: false as any,
Expand Down

0 comments on commit e75e931

Please sign in to comment.