Skip to content

Commit

Permalink
fix: set externalVue to false in nuxt options
Browse files Browse the repository at this point in the history
  • Loading branch information
huang-julien authored Sep 3, 2022
2 parents 65ede25 + 5e90908 commit 6d3680b
Show file tree
Hide file tree
Showing 3 changed files with 1,988 additions and 2,616 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@
"dev:prepare": "nuxt-module-build --stub && nuxi prepare playground"
},
"dependencies": {
"@nuxt/kit": "^3.0.0-rc.6"
"@nuxt/kit": "^3.0.0-rc.9"
},
"devDependencies": {
"@nuxt/module-builder": "latest",
"@nuxtjs/eslint-config-typescript": "latest",
"eslint": "latest",
"nuxt": "^3.0.0-rc.6",
"nuxt": "^3.0.0-rc.9",
"pathe": "^0.3.2"
},
"keywords": [
Expand Down
2 changes: 2 additions & 0 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ export default defineNuxtModule({
'@babel/parser': '@babel/parser'
}

nuxt.options.experimental.externalVue = false

// set vue esm on client
nuxt.hook('vite:extendConfig', (config, { isClient }) => {
if (isClient) {
Expand Down
Loading

0 comments on commit 6d3680b

Please sign in to comment.