Skip to content

Commit

Permalink
Export plugin as named export (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
tscpp authored Aug 5, 2023
1 parent d3f0e00 commit 977b17c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/purple-sheep-raise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'vite-plugin-entry-shaking': patch
---

Export plugin as named export
4 changes: 3 additions & 1 deletion packages/core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { transformIfNeeded } from './transform';
import { mergeOptions } from './options';
import EntryAnalyzer from './analyze-entry';

export default async function createEntryShakingPlugin(
export async function createEntryShakingPlugin(
userOptions: PluginOptions,
): Promise<PluginOption> {
const options = mergeOptions(userOptions);
Expand Down Expand Up @@ -44,3 +44,5 @@ export default async function createEntryShakingPlugin(
},
};
}

export default createEntryShakingPlugin;

0 comments on commit 977b17c

Please sign in to comment.