Skip to content

Commit fcb9c6e

Browse files
committed
fixed indexes templates imports and exports
1 parent c2433f8 commit fcb9c6e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/templates/js/index.template.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ function generateIndexFile(COMPONENT_NAME, connected) {
2222
return generateReduxConnect(COMPONENT_NAME)
2323
}
2424

25-
return `import template from './${COMPONENT_NAME}.js'
26-
27-
const ${COMPONENT_NAME} = template
25+
return `import ${COMPONENT_NAME} from './${COMPONENT_NAME}.js'
2826
2927
export default ${COMPONENT_NAME}
3028
`

0 commit comments

Comments
 (0)