Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

Update the wordpress/babel-preset to avoid crashes in WP5.8 beta2 #7202

Merged
merged 6 commits into from
Jun 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions bin/packages/get-babel-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ const babelConfigs = {
main: Object.assign( {}, babelDefaultConfig, {
plugins,
presets: [
[ '@babel/preset-typescript' ],
Copy link
Contributor Author

@samueljseay samueljseay Jun 17, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This preset is shipped with the latest wordpress preset now so duplicating it here causes warnings

...map( babelDefaultConfig.presets, ( preset ) =>
overrideOptions( preset, '@babel/preset-env', {
modules: 'commonjs',
Expand All @@ -40,7 +39,6 @@ const babelConfigs = {
} )
),
presets: [
[ '@babel/preset-typescript' ],
...map( babelDefaultConfig.presets, ( preset ) =>
overrideOptions( preset, '@babel/preset-env', {
modules: false,
Expand Down
Loading