mediamonks / muban

A backend-agnostic framework to enhance server-rendered HTML using a modern webpack development setup.
https://mediamonks.github.io/muban/
39 stars 15 forks source link

Generator produces incorrect code when the user specifies a nested path #110

Open skulptur opened 4 years ago

skulptur commented 4 years ago

When generating a component directly inside /block or /general, or even with another level of nesting, it will always produce incorrect code due to relative import of '../AbstractComponent'

I suggest we use 'app/component/AbstractComponent' for the sake of simplicity.

Alternatively we could generate the proper path dynamically. If seng-generator doesn't support that, we could consider moving on to a different tool. For example Plop.