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

build es module #1039

Closed
wants to merge 1 commit into from
Closed

build es module #1039

wants to merge 1 commit into from

Conversation

lzurbriggen
Copy link
Contributor

What?

Added an ES module build along with the existing commonjs build to @vue/apollo-composable

Why?

I expect many Vue 3 projects will rely on vite instead of webpack as a bundler. Vite famously works with ES modules and is required to get proper named imports (see for example #1029). commonjs imports kind of work with default imports but a proper ES module build will be required in the long run.

@lzurbriggen lzurbriggen marked this pull request as ready for review August 11, 2020 08:19
@longfellowone
Copy link

Is there anyway to get this working with the v4.0.0-alpha.10 release now?

@lzurbriggen
Copy link
Contributor Author

@longfellowone I wasn't aware that it's not working, I'll try to find some time to take a look.

@Akryum
Copy link
Member

Akryum commented Oct 18, 2020

Thanks for your PR! There are now an ESM and Single-File AMD builds on v4 branch.

@Akryum Akryum closed this Oct 18, 2020
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

Successfully merging this pull request may close these issues.

3 participants