@pinegrow/astro-module 3.0.0-beta.95 → 3.0.0-beta.97

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.
package/dist/index.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }// src/index.ts
2
+ var _path = require('path'); var _path2 = _interopRequireDefault(_path);
2
3
  var _vite = require('unplugin-vue-components/vite'); var _vite2 = _interopRequireDefault(_vite);
3
4
  var _vite3 = require('unplugin-auto-import/vite'); var _vite4 = _interopRequireDefault(_vite3);
4
- var _path = require('path'); var _path2 = _interopRequireDefault(_path);
5
5
  async function getViteConfiguration(moduleOptions) {
6
6
  var _a, _b, _c, _d;
7
7
  let vitePlugin;
@@ -56,7 +56,13 @@ async function getViteConfiguration(moduleOptions) {
56
56
  _vite4.default.call(void 0,
57
57
  mergeConfig(
58
58
  {
59
- imports: ["vue"],
59
+ include: [
60
+ /\.[tj]sx?$/,
61
+ /\.vue$/,
62
+ /\.vue\?vue/,
63
+ /\.md$/
64
+ ],
65
+ imports: ["vue", "vue-router"],
60
66
  dirs: [],
61
67
  vueTemplate: true,
62
68
  cache: true
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  // src/index.ts
2
+ import path from "path";
2
3
  import autoImportComponents from "unplugin-vue-components/vite";
3
4
  import autoImportAPIs from "unplugin-auto-import/vite";
4
- import path from "path";
5
5
  async function getViteConfiguration(moduleOptions) {
6
6
  var _a, _b, _c, _d;
7
7
  let vitePlugin;
@@ -56,7 +56,13 @@ async function getViteConfiguration(moduleOptions) {
56
56
  autoImportAPIs(
57
57
  mergeConfig(
58
58
  {
59
- imports: ["vue"],
59
+ include: [
60
+ /\.[tj]sx?$/,
61
+ /\.vue$/,
62
+ /\.vue\?vue/,
63
+ /\.md$/
64
+ ],
65
+ imports: ["vue", "vue-router"],
60
66
  dirs: [],
61
67
  vueTemplate: true,
62
68
  cache: true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pinegrow/astro-module",
3
- "version": "3.0.0-beta.95",
3
+ "version": "3.0.0-beta.97",
4
4
  "description": "Pinegrow Astro Module",
5
5
  "author": "Pinegrow (http://pinegrow.com/)",
6
6
  "license": "MIT",
@@ -31,7 +31,7 @@
31
31
  "increment-beta-version": "npm version prerelease --preid=beta"
32
32
  },
33
33
  "dependencies": {
34
- "@pinegrow/vite-plugin": "3.0.0-beta.95",
34
+ "@pinegrow/vite-plugin": "3.0.0-beta.97",
35
35
  "unplugin-vue-components": "^0.24.1",
36
36
  "unplugin-auto-import": "^0.15.2"
37
37
  },