Skip to content

Commit 7d7cfb4

Browse files
committed
fix docs:build
1 parent 36c8b57 commit 7d7cfb4

File tree

5 files changed

+87
-471
lines changed

5 files changed

+87
-471
lines changed

docs/.vuepress/config.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1+
const webpack = require("webpack");
2+
13
module.exports = {
4+
define: {
5+
__VUE_2__: true
6+
},
27
title: "vue-composable",
38
description:
49
"Vue composition-api composable components. i18n, validation, pagination, fetch, etc. +30 variable composable functions",
@@ -218,4 +223,23 @@ module.exports = {
218223
}
219224
}
220225
}
226+
227+
// chainWebpack: (config, isServer) => {
228+
// // config is an instance of ChainableConfig
229+
230+
// config.plugin("define").tap((definitions) => {
231+
// definitions[0] = Object.assign(definitions[0], {
232+
// __VUE_2__: true,
233+
// });
234+
// return definitions;
235+
// });
236+
// },
237+
238+
// chainWebpack(config) {
239+
// config.plugin("injections").tap(([options]) => [
240+
// Object.assign(options, {
241+
// __VUE_2__: true,
242+
// }),
243+
// ]);
244+
// },
221245
};

docs/api/axios.api.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@
66
import { AxiosInstance } from "axios";
77
import { AxiosRequestConfig } from "axios";
88
import { AxiosResponse } from "axios";
9-
import { ComputedRef } from "@vue/runtime-core";
109
import { PromiseResultFactory } from "vue-composable";
11-
import { Ref } from "@vue/runtime-core";
10+
import { Ref } from "@vue/composition-api";
1211

1312
// Warning: (ae-forgotten-export) The symbol "AxiosReturn" needs to be exported by the entry point index.d.ts
1413
//

0 commit comments

Comments
 (0)