We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 845b986 commit fb6bb34Copy full SHA for fb6bb34
lib/colocated-babel-plugin.js
@@ -24,7 +24,7 @@ module.exports = function (babel) {
24
ExportDefaultDeclaration(path, state) {
25
let defaultExportDeclarationPath = path.get('declaration');
26
let defaultExportIsExpressionOrClass =
27
- defaultExportDeclarationPath.isClass() || defaultExportDeclarationPath.isExpression();
+ defaultExportDeclarationPath.isClass() || defaultExportDeclarationPath.isExpression() || defaultExportDeclarationPath.isFunction();
28
29
if (
30
state.colocatedTemplateFound !== true ||
0 commit comments