Skip to content

Commit

Permalink
nice
Browse files Browse the repository at this point in the history
  • Loading branch information
aidenybai committed Sep 17, 2023
1 parent 382deef commit f1a6178
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ export const unplugin = createUnplugin((options: Options) => {
return await optimize();

path.replaceWith(functionDeclaration);
console.log('Optimized: ', path.node.id?.name);
addDefault(path, 'react', { nameHint: 'React' });
};
todo!.push(optimize);
Expand Down

0 comments on commit f1a6178

Please sign in to comment.