forked from babel/babel
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
1 parent
3c7199e
commit 1aa905f
Showing
11 changed files
with
348 additions
and
84 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.