Skip to content

Commit

Permalink
Remove unneeded NodeJS dependencies (#12379)
Browse files Browse the repository at this point in the history
* refactor: replace deprecated crypto test lib

Remove a deprecated library and replace with a native test shim.

    node-webcrypto-ossl has been deprecated. This module was created in
    2015 because at the time the Node team did not feel the need to
    have two crypto interfaces and they already had one before
    WebCrypto was defined

Refs: https://www.npmjs.com/package/node-webcrypto-ossl

Signed-off-by: Mike Fiedler <miketheman@gmail.com>

* chore: remove unnecessary mutationobserver-shim

jsdom 13.2.0 added direct support for MutationObserver, and recommends
removing all workarounds. We're on version 19.0.

Refs: jsdom/jsdom#639 (comment)

Signed-off-by: Mike Fiedler <miketheman@gmail.com>

* chore: remove whatwg-fetch polyfill

With `fetch()` being available to all modern browsers, we no longer need
to provide this polyfill.

Remove related `imports-loader` and `exports-loader` as well.

Signed-off-by: Mike Fiedler <miketheman@gmail.com>

Signed-off-by: Mike Fiedler <miketheman@gmail.com>
Co-authored-by: Ee Durbin <ewdurbin@gmail.com>
  • Loading branch information
miketheman and ewdurbin authored Oct 19, 2022
1 parent 6b0d913 commit de5344f
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 213 deletions.
1 change: 0 additions & 1 deletion Gulpfile.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ let webpackConfig = {
},
plugins: [
new webpack.ProvidePlugin({
"fetch": "imports-loader?this=>global!exports-loader?global.fetch!whatwg-fetch",
"jQuery": "jquery",
"$": "jquery",
}),
Expand Down
Loading

0 comments on commit de5344f

Please sign in to comment.