Skip to content

Commit

Permalink
fix: fix export bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangweiye committed Mar 14, 2024
1 parent 0baf1d0 commit 0bbe426
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 243 deletions.
243 changes: 2 additions & 241 deletions dist/index.cjs.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ import { PluginAPI, ProjectOptions } from '@vue/cli-service';

declare function alias(api: PluginAPI, options: ProjectOptions): void;

export { alias as default };
export = alias;
4 changes: 3 additions & 1 deletion tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ export default defineConfig({
js: `.${format}.js`
};
},
splitting: true,
cjsInterop: true,
dts: true,
target: ['node8'],
format: ['cjs'],
minify: false,
minify: true,
clean: true,
tsconfig: path.resolve(__dirname, './tsconfig.json')
});
Expand Down

0 comments on commit 0bbe426

Please sign in to comment.