Skip to content

Commit

Permalink
Make option optional 💞
Browse files Browse the repository at this point in the history
  • Loading branch information
willnguyen1312 committed Jan 15, 2024
1 parent b11feca commit f8bc19d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/tender-cups-develop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@namnode/vite-plugin-inspect-react": minor
---

Make option optional 💞
2 changes: 1 addition & 1 deletion packages/vite-plugin-inspect-react/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function parseJSXIdentifier(name: JSXIdentifier | JSXMemberExpression): string {
return `${parseJSXIdentifier(name.object)}.${parseJSXIdentifier(name.property)}`
}

export function inspectReact(options: Options): Plugin {
export function inspectReact(options: Options = {}): Plugin {
if (!options.type) {
options.type = "devtool"
}
Expand Down

0 comments on commit f8bc19d

Please sign in to comment.