-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Daniel Spitzer
committed
Apr 22, 2018
1 parent
14e78d5
commit e1c0f45
Showing
3 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Hack babel to build for IE11 instead of IE9 | ||
module.exports = babelConfig => { | ||
const presets = babelConfig.presets; | ||
presets.forEach((preset, i) => { | ||
if (!Array.isArray(preset)) { | ||
return; | ||
} | ||
preset.forEach((p, j) => { | ||
if (p.targets && p.targets.ie) { | ||
presets[i][j].ie = 11; | ||
} | ||
}); | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters