Don't import WeakMap polyfill in deep-map-keys

Changelog-entry: Don't import WeakMap polyfill in deep-map-keys
Change-type: patch
This commit is contained in:
Alexis Svinartchouk 2020-08-04 11:10:03 +02:00
parent 481be42eb5
commit 140f3452ed

View File

@ -137,6 +137,11 @@ const commonConfig = {
test: /\.tsx?$/, test: /\.tsx?$/,
use: 'ts-loader', use: 'ts-loader',
}, },
// don't import WeakMap polyfill in deep-map-keys (required in corvus)
replace(/node_modules\/deep-map-keys\/lib\/deep-map-keys\.js$/, {
search: "var WeakMap = require('es6-weak-map');",
replace: '',
}),
// force axios to use http backend (not xhr) to support streams // force axios to use http backend (not xhr) to support streams
replace(/node_modules\/axios\/lib\/defaults\.js$/, { replace(/node_modules\/axios\/lib\/defaults\.js$/, {
search: './adapters/xhr', search: './adapters/xhr',