Skip to content

Commit

Permalink
Teach Webpack where to lookup for @wordpress/babel-preset-default
Browse files Browse the repository at this point in the history
Starts in own @wordpress/scripts node_modules.
  • Loading branch information
oandregal committed Feb 28, 2019
1 parent 7b92a75 commit 738fc86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/scripts/config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const babelLoader = hasBabelConfig() ? {
use: {
loader: require.resolve( 'babel-loader' ),
options: {
presets: [ '@wordpress/babel-preset-default' ],
presets: [ require.resolve( '@wordpress/babel-preset-default' ) ],
},
},
};
Expand Down

0 comments on commit 738fc86

Please sign in to comment.