Skip to content

Commit 4d214c4

Browse files
Merge branch 'nikolawork-update-axios'
2 parents fbdd246 + 09ef956 commit 4d214c4

File tree

3 files changed

+747
-604
lines changed

3 files changed

+747
-604
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@
2323
"webpack": "^4.0.0"
2424
},
2525
"peerDependencies": {
26-
"webpack": "^3.0.0 || ^4.0.0 || ^5.0.0"
26+
"webpack": "^3.0.0 || ^4.0.0 || ^5.0.0"
2727
},
2828
"dependencies": {
29-
"axios": "^0.21.2"
29+
"axios": "^1.0.0"
3030
},
3131
"publishConfig": {
3232
"access": "public"

src/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import { Compiler, DefinePlugin, compilation } from 'webpack';
22
import { deflateRawSync } from 'zlib';
3-
import { AxiosError } from 'axios';
3+
import axios, { AxiosError } from 'axios';
44
import fs = require('fs');
5-
const { default: axios } = require('axios'); // Temporary replacement for `import * as axios from 'axios';` while https://github.com/axios/axios/issues/1975 isn't in a release
65
import { flareLog, uuidv4, removeQuery } from './util';
76
import path = require('path');
87

0 commit comments

Comments
 (0)