Commit Graph

14 Commits

Author SHA1 Message Date
Jay
ef3711d1b3
feat: implement prettier and fix all issues (#7385)
* feat: implement prettier and fix all issues

* fix: failing tests

* fix: implement feedback from codel, ai etc

* chore: dont throw in trim function

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>

* fix: incorrect fix

---------

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2026-02-14 16:59:48 +02:00
Parth Banathia
25a5669739
fix: removed unused imports (#4914)
Co-authored-by: parth0105pluang <98079965+parth0105pluang@users.noreply.github.com>
Co-authored-by: Jay <jasonsaayman@gmail.com>
2022-09-28 20:57:06 +02:00
Jay
1d82af1a50 Fixing issues with bundle sizes 2022-04-26 14:23:05 +02:00
Paweł Szymański
e52cd3ac64
Add globalObject: 'this' to webpack config (#3176)
This should solve the issue of undefined `this` when importing from an ES6 module.
I've put steps to reproduce in [this comment](https://github.com/axios/axios/issues/1861#issuecomment-669832435).

Co-authored-by: Jay <jasonsaayman@gmail.com>
2021-09-16 21:08:40 +02:00
Daniel Lopretto
59ab559386
Update dev dependencies (#3401)
- Everything still works as expected.
  - Remove bundlesize
    - It still uses libtorb which is deprecated and broken on Win and
      requires a full suite of build tools on Mac. Keeping it in the
      package makes it difficult for anyone filing issues to run tests.
    - See: #3396
  - Update grunt and it's plugins
  - Update karma to v4...so much faster!
    - Changed the karma config. Better changes: #3394
  - Update Webpack
    - Uses terser over uglify
  - Update eslint
    - Caused an error in util.js from the `global` directive so the
      directive is removed (it was not needed).
  - Update typescript
    - The old version of tsc didn't know about new features in
      @types/node (like `asserts value`).

Co-authored-by: Jay <jasonsaayman@gmail.com>
2020-12-16 10:25:06 +02:00
Felipe Martins
097948698a
Revert "Update Webpack + deps, remove now unnecessary polyfills" (#2479)
* Revert "Update Webpack + deps, remove now unnecessary polyfills (#2410)"

This reverts commit 189b34c45a.

* Fix build (#2496)

* Change syntax to see if build passes

* Test commit

* Test with node 10

* Test adding all browsers in travis

* remove other browsers when running on travis
2019-10-25 11:34:47 -03:00
Avindra Goolcharan
189b34c45a Update Webpack + deps, remove now unnecessary polyfills (#2410)
* Update deps

 * handles webpack 1 -> 4 migration

* remove promise helpers from dev files

assume `Promise` is available, or polyfilled by
the consumer

* Remove isArray util. `isArray` has good coverage, even
   in IE9. So lets remove the custom polyfill.

 https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray

also resolves a few lint issues

* Remove trim util

String.protoype.trim has good coverage (including IE9)

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/Trim

Also, the http adapter already uses the native method.
2019-10-21 15:56:29 -03:00
Nick Uraltsev
81e566b905 Fixing UMD build 2016-10-14 23:24:59 -07:00
Matt Zabriskie
4d2f9c21d4 Gettings tests passing for IE9 2016-03-09 16:17:10 -07:00
Jorik Tangelder
025620a895 Don't include a process shim in the build 2015-10-26 10:39:33 +01:00
mzabriskie
2abe8eb04e Converting to UMD 2015-08-10 19:00:27 -06:00
mzabriskie
5ab9c2f05e Stupid typo 2015-03-18 19:39:27 -06:00
mzabriskie
dd2aa791e6 Cleanup 2015-03-13 17:08:22 -06:00
mzabriskie
7b05902b3c Moving webpack config to it's own file 2015-01-23 01:29:05 -07:00