2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-17 19:21:29 +03:00

Fixed missed minified builds; (#4805)

* Fixed missed minified builds;
Refactored utils.js;
Refactored `utils.isStandardBrowserEnv()` as a `platform/browser` property;
Added builds size log;

* Replaced `rollup-plugin-filesize` with `rollup-plugin-bundle-size`;

Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
Dmitriy Mozgovoy
2022-08-01 20:13:14 +03:00
committed by GitHub
parent d17d9a66c5
commit cd8989a987
8 changed files with 254 additions and 95 deletions
+2 -1
View File
@@ -1,8 +1,9 @@
'use strict';
import utils from './../utils.js';
import platform from '../platform/index.js';
export default utils.isStandardBrowserEnv() ?
export default platform.isStandardBrowserEnv ?
// Standard browser envs support document.cookie
(function standardBrowserEnv() {
+2 -1
View File
@@ -1,8 +1,9 @@
'use strict';
import utils from './../utils.js';
import platform from '../platform/index.js';
export default utils.isStandardBrowserEnv() ?
export default platform.isStandardBrowserEnv ?
// Standard browser envs have full support of the APIs needed to test
// whether the request URL is of the same origin as current location.