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

feat: support rspack #385

Merged
merged 2 commits into from
May 30, 2023
Merged

feat: support rspack #385

merged 2 commits into from
May 30, 2023

Conversation

loilo
Copy link
Contributor

@loilo loilo commented May 29, 2023

Description

This PR adds an rspack export to the package, using unplugin's experimental rspack support.

Linked Issues

This has not been brought up yet.

Additional context

rspack just recently added support for vue-loader. As far as I have tested it, this works flawlessly. Having Vue support in rspack was a good occasion to look for rspack support in some popular build tools that commonly come with Vue projects.

@loilo
Copy link
Contributor Author

loilo commented May 29, 2023

Here's also a basic proof of concept of a Vue app bundled by Rspack, using this PR's branch for auto-importing: https://github.com/loilo/rspack-vue-demo

@antfu antfu merged commit 5e03ad5 into unplugin:main May 30, 2023
import type { Options } from './types'
import unplugin from '.'

// TODO: some upstream lib failed generate invalid dts, remove the any in the future
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you send a PR to unplugin as well? Thank you

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To unimport?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the problem with the type? Isn't it related to unplugin?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh okay, I misunderstood your first question, I'm sorry.

I don't actually know what the problem is. The any typing and the comment are present in all the bundler files (see vite.ts, webpack.ts, rollup.ts, …), but I don't know the reason they've been there in the first place.

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.

None yet

2 participants