-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Use ~ for preset-env's @babel/compat-data dependency * Revert "Use ~ for preset-env's @babel/compat-data dependency" This reverts commit e7d57c7. * Allow using `preset-env` with newer versions of `compat-data`
- Loading branch information
1 parent
a12001a
commit 7127330
Showing
4 changed files
with
25 additions
and
2 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
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,13 @@ | ||
// @flow | ||
|
||
import plugins from "@babel/compat-data/plugins"; | ||
import availablePlugins from "./available-plugins"; | ||
|
||
const filtered = {}; | ||
for (const plugin of Object.keys(plugins)) { | ||
if (Object.hasOwnProperty.call(availablePlugins, plugin)) { | ||
filtered[plugin] = plugins[plugin]; | ||
} | ||
} | ||
|
||
export { filtered as default }; |
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