@vueuse/nuxt 7.0.0-alpha.1 → 7.0.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/module.mjs +7 -1
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  > This is an add-on of [VueUse](https://github.com/vueuse/vueuse), provides Nuxt specific composables and auto-import capabilities.
6
6
 
7
- > Expiremental. **Will NOT follow semvar**.
7
+ > Experimental. **Will NOT follow semvar**.
8
8
 
9
9
  ## Install
10
10
 
package/module.mjs CHANGED
@@ -18,7 +18,7 @@ const disabled = [
18
18
  * // nuxt.config.js
19
19
  * export deafult {
20
20
  * buildModules: [
21
- * '@vueuse/core/nuxt'
21
+ * '@vueuse/nuxt'
22
22
  * ]
23
23
  * }
24
24
  * ```
@@ -44,6 +44,12 @@ export default function() {
44
44
  )
45
45
  })
46
46
 
47
+ // add @vueuse/nuxt to transpile target for alias resolution
48
+ nuxt.options.build = nuxt.options.build || {}
49
+ nuxt.options.build.transpile = nuxt.options.build.transpile || []
50
+ nuxt.options.build.transpile.push('@vueuse/nuxt')
51
+
52
+ // auto Import
47
53
  nuxt.hook('autoImports:sources', (sources) => {
48
54
  if (sources.find(i => i.from === '@vueuse/core' || i.from === '@vueuse/nuxt'))
49
55
  return
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vueuse/nuxt",
3
- "version": "7.0.0-alpha.1",
3
+ "version": "7.0.0-alpha.3",
4
4
  "description": "VueUse Nuxt Module",
5
5
  "keywords": [
6
6
  "vue",
@@ -39,7 +39,7 @@
39
39
  },
40
40
  "homepage": "https://github.com/vueuse/vueuse/tree/main/packages/nuxt#readme",
41
41
  "dependencies": {
42
- "@vueuse/core": "7.1.0",
42
+ "@vueuse/core": "7.1.1",
43
43
  "vue-demi": "*"
44
44
  },
45
45
  "devDependencies": {