We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
How can I export components from module?
For example, if I don't want to autoimport specific component or if consumer wants to import component explicitly.
I managed to find a way to export like this:
src/runtime/components/index.ts
export { default as Foo } from './foo.vue'
package.json
... "exports": { ... "./components": { "types": "./dist/runtime/components/index.d.ts", "import": "./dist/runtime/components/index.js" } },
But when I import Foo from my package, although its seems to work, the component has type any.
Foo
any
You can check details of my setup in this repo
The text was updated successfully, but these errors were encountered:
I have also had issues with this. I couldn't export any single functions / components without using the addImport / addComponent helpers.
Sorry, something went wrong.
No branches or pull requests
How can I export components from module?
For example, if I don't want to autoimport specific component or if consumer wants to import component explicitly.
I managed to find a way to export like this:
But when I import
Foo
from my package, although its seems to work, the component has typeany
.You can check details of my setup in this repo
The text was updated successfully, but these errors were encountered: