Closed berti92 closed 3 months ago
Hey @berti92, thanks for opening this pull request!
Yeah, sadly this is because the different solutions/bundlers are using a different import syntaxes.
Instead of changing it in-place we can maybe say that import "controllers"
is for importmaps/webpack(er) and import "./controllers
for esbuild.
@marcoroth Thank you, I changed it.
We already have a section for importmaps that use the correct import syntax for that. We should default to ./controllers for that other section. It's an error that it hadn't been.
If I use
import controllers
as mentioned in the README I get the following error:I fixed the error by implementing the suggested
"./controllers"
.I don't know if the same error occurs with importmap, because I don't use it.