marko-js / examples

55 stars 36 forks source link

Explicit file extensions in imports #30

Closed tigt closed 2 years ago

tigt commented 2 years ago

Without the .marko, the Try Online editor for components/dynamic-component.marko shows:

Error Unable to resolve "./components/hello" from "/components/dynamic-tagname/dynamic-component.marko". Open the dev tools to view the full error.

This fixes that, and adds a .js to components/import.marko for consistency.