Skip to content

Help to create basic Vue3 plugin with nested components #9436

Closed Answered by uwla
uwla asked this question in Help/Questions
Discussion options

You must be logged in to vote

I solved the issue by migrating from vue-cli-service to vite with rollup.

That is all: vue-cli-service -> vite.

Here is the new package.json:

{
  "name": "vue3-plugin",
  "private": true,
  "version": "0.0.0",
  "type": "module",
  "scripts": {
    "dev": "vite",
    "build": "vue-tsc && vite build",
    "preview": "vite preview"
  },
  "main": "./dist/vue3-plugin.cjs",
  "module": "./dist/vue3-plugin.js",
  "exports": {
    ".": {
      "import": "./dist/vue3-plugin.js",
      "require": "./dist/vue3-plugin.cjs"
    }
  },
  "dependencies": {
    "vue": "^3.3.4"
  },
  "devDependencies": {
    "@vitejs/plugin-vue": "^4.2.3",
    "typescript": "^5.0.2",
    "vite": "^4.4.5",
    "vue-tsc": "

Replies: 5 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@Shyam-Chen
Comment options

@uwla
Comment options

Comment options

You must be logged in to vote
2 replies
@uwla
Comment options

@uwla
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by uwla
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants