Add @babel/core support for the new assumptions option (#12219)

- Disallow setting assumptions to `false` in presets (#12498)
This commit is contained in:
Nicolò Ribaudo
2020-12-11 20:05:50 +01:00
parent cb404e4776
commit 7965c15557
11 changed files with 367 additions and 82 deletions

View File

@@ -26,6 +26,9 @@ const apiPolyfills = {
targets: () => () => {
return {};
},
// This is supported starting from Babel 7.13
// TODO(Babel 8): Remove this polyfill
assumption: () => () => {},
};
function copyApiObject(api) {