Make Babel preset paths absolute

This fixes an issue where a "Cannot find module" error would occur when running the application with a working directory anywhere other than the project root.
master
Sven Slootweg 5 years ago
parent c89479bd68
commit b080ec883b

@ -10,8 +10,8 @@ module.exports = function (configPath) {
(item) => item === absoluteConfigPath, (item) => item === absoluteConfigPath,
], ],
presets: [ presets: [
"@babel/preset-react", require.resolve("@babel/preset-react"),
["@babel/preset-env", { targets: { node: "current" } }] [require.resolve("@babel/preset-env"), { targets: { node: "current" } }]
] ]
}); });

Loading…
Cancel
Save