diff --git a/packages/babel-core/src/config/config-descriptors.js b/packages/babel-core/src/config/config-descriptors.js index 6b31c640d2..a7ea427179 100644 --- a/packages/babel-core/src/config/config-descriptors.js +++ b/packages/babel-core/src/config/config-descriptors.js @@ -226,7 +226,7 @@ function createDescriptor( // config object, because it can be useful to define them in nested // configuration contexts. throw new Error( - "Plugin/Preset files are not allowed to export objects, only functions.", + `Plugin/Preset files are not allowed to export objects, only functions. In ${filepath}`, ); }