diff --git a/load-config.js b/load-config.js index af768e3..02084d3 100644 --- a/load-config.js +++ b/load-config.js @@ -10,8 +10,8 @@ module.exports = function (configPath) { (item) => item === absoluteConfigPath, ], presets: [ - "@babel/preset-react", - ["@babel/preset-env", { targets: { node: "current" } }] + require.resolve("@babel/preset-react"), + [require.resolve("@babel/preset-env"), { targets: { node: "current" } }] ] });