Skip to content

Commit

Permalink
refactor(index): Simplify component import statement
Browse files Browse the repository at this point in the history
  • Loading branch information
aidenybai committed Dec 24, 2024
1 parent c4f831c commit 72b14d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kitchen-sink/src/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const PROJECT = "main";
const render = async () => {
const Component = (
await import(
`./${process.env.NODE_ENV !== "production" ? PROJECT : "main"}.jsx`
process.env.NODE_ENV !== "production" ? `./${PROJECT}.jsx` : "./main.jsx"
)
).default;
ReactDOM.createRoot(document.getElementById("root")).render(<Component />);
Expand Down

0 comments on commit 72b14d5

Please sign in to comment.