mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-19 09:16:38 +00:00
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:
parent
481be42eb5
commit
140f3452ed
@ -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',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user