Skip to content

Commit

Permalink
fix: add type export for plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
nayonglin committed Dec 14, 2023
1 parent a140202 commit b40dba4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/webpack-plugin/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export type PackageJson = {
devDependencies?: Record<string, string>;
};

class QiankunPlugin {
export class QiankunPlugin {
private packageName: string;
private entrySrcPattern: RegExp | null; // 用户提供的正则表达式

Expand Down Expand Up @@ -106,5 +106,3 @@ class QiankunPlugin {
return $.html();
}
}
// module.exports = QiankunPlugin;
export { QiankunPlugin };

0 comments on commit b40dba4

Please sign in to comment.