Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide/support "module" exports #20

Closed
josh-hemphill opened this issue Dec 21, 2022 · 2 comments
Closed

Provide/support "module" exports #20

josh-hemphill opened this issue Dec 21, 2022 · 2 comments

Comments

@josh-hemphill
Copy link

It's a minor inconvenience to have the types break when writing the config file, since you have to finagle the export to get it to work in a "module":true project.

Personally I like the tsup cli tool for single-command config-less TS builders when I need to support both Module and CommonJS exports.

@johnsoncodehk
Copy link
Member

Are you talking about volar.config.js? If so you may want to exclude it in tsconfig.

@johnsoncodehk
Copy link
Member

I'm thinking of refactoring all plugins from export = to export default, I'm not entirely sure what your problem is, but I'm guessing this might handle yours.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants