Skip to content

Commit 11f99e0

Browse files
committed
fix: axios build
1 parent ebb1331 commit 11f99e0

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

jest.config.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ module.exports = {
44
preset: 'ts-jest',
55
globals: {
66
__DEV__: true,
7-
__VERSION__: pkg.version,
8-
__JSDOM__: true,
7+
__VERSION__: pkg.version
98
},
109
setupFiles: [
1110
"<rootDir>/__tests__/setupTest.js"

rollup.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function createConfig(format, isDev, minify) {
3636
globals
3737
},
3838
// Indicate here external modules you don't wanna include in your bundle (i.e.: 'lodash')
39-
external: ["vue", "@vue/composition-api"],
39+
external: ["vue", "@vue/composition-api", 'axios'],
4040

4141
watch: {
4242
include: "src/**"

src/web/axios.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { ref, computed, watch } from "@vue/composition-api";
2-
import axios, { AxiosRequestConfig, AxiosResponse } from "axios";
2+
import axios, { AxiosRequestConfig } from "axios";
33
import { usePromise } from "../promise/promise";
44

55
/* istanbul ignore next */

0 commit comments

Comments
 (0)