Skip to content

Commit

Permalink
Update lib/colocated-babel-plugin.js
Browse files Browse the repository at this point in the history
Co-authored-by: Robert Jackson <[email protected]>
  • Loading branch information
dfreeman and rwjblue authored Mar 7, 2021
1 parent 845b986 commit fb6bb34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/colocated-babel-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module.exports = function (babel) {
ExportDefaultDeclaration(path, state) {
let defaultExportDeclarationPath = path.get('declaration');
let defaultExportIsExpressionOrClass =
defaultExportDeclarationPath.isClass() || defaultExportDeclarationPath.isExpression();
defaultExportDeclarationPath.isClass() || defaultExportDeclarationPath.isExpression() || defaultExportDeclarationPath.isFunction();

if (
state.colocatedTemplateFound !== true ||
Expand Down

0 comments on commit fb6bb34

Please sign in to comment.