Skip to content

Commit fb6bb34

Browse files
dfreemanrwjblue
andauthored
Update lib/colocated-babel-plugin.js
Co-authored-by: Robert Jackson <[email protected]>
1 parent 845b986 commit fb6bb34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/colocated-babel-plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ module.exports = function (babel) {
2424
ExportDefaultDeclaration(path, state) {
2525
let defaultExportDeclarationPath = path.get('declaration');
2626
let defaultExportIsExpressionOrClass =
27-
defaultExportDeclarationPath.isClass() || defaultExportDeclarationPath.isExpression();
27+
defaultExportDeclarationPath.isClass() || defaultExportDeclarationPath.isExpression() || defaultExportDeclarationPath.isFunction();
2828

2929
if (
3030
state.colocatedTemplateFound !== true ||

0 commit comments

Comments
 (0)