Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add @babel/core support for the new "assumptions" option
- Loading branch information
1 parent
1f501e0
commit 8f16324
Showing
9 changed files
with
363 additions
and
77 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// @flow | ||
|
||
import type { Targets } from "@babel/helper-compilation-targets"; | ||
|
||
import type { ConfigContext } from "./config-chain"; | ||
import type { CallerMetadata } from "./validation/options"; | ||
|
||
export type { ConfigContext as FullConfig }; | ||
|
||
export type FullPreset = { | ||
...ConfigContext, | ||
targets: Targets, | ||
}; | ||
export type FullPlugin = { | ||
...FullPreset, | ||
assumptions: { [name: string]: boolean }, | ||
}; | ||
|
||
// Context not including filename since it is used in places that cannot | ||
// process 'ignore'/'only' and other filename-based logic. | ||
export type SimpleConfig = { | ||
envName: string, | ||
caller: CallerMetadata | void, | ||
}; | ||
export type SimplePreset = { | ||
...SimpleConfig, | ||
targets: Targets, | ||
}; | ||
export type SimplePlugin = { | ||
...SimplePreset, | ||
assumptions: { [name: string]: boolean }, | ||
}; |
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
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
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
Oops, something went wrong.