Skip to content

Commit

Permalink
Change babel config in the root to to be our preset
Browse files Browse the repository at this point in the history
  • Loading branch information
igorschoester committed Apr 11, 2022
1 parent 628b117 commit 100bf1e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
10 changes: 2 additions & 8 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
module.exports = ( api ) => {
api.cache( true );

return {
presets: [ "@wordpress/babel-preset-default" ],
plugins: [ "@babel/plugin-transform-runtime" ],
sourceType: "unambiguous",
};
module.exports = {
presets: [ "@yoast/babel-preset" ],
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@
},
"dependencies": {},
"devDependencies": {
"@babel/plugin-transform-runtime": "^7.13.10",
"@lodder/grunt-postcss": "^3.1.1",
"@slack/webhook": "^5.0.2",
"@typescript-eslint/eslint-plugin": "^4.24.0",
"@typescript-eslint/parser": "^4.24.0",
"@wordpress/dependency-extraction-webpack-plugin": "^3.1.0",
"@wordpress/scripts": "^14.1.1",
"@yoast/browserslist-config": "file:packages/browserslist-config",
"@yoast/babel-preset": "^1.0.0",
"@yoast/grunt-plugin-tasks": "^2.3",
"babel-plugin-dynamic-import-webpack": "^1.1.0",
"colors": "1.4.0",
Expand Down

0 comments on commit 100bf1e

Please sign in to comment.