Import resolution

Looking at the JSX script:

import { ButtonBasic } from "./button.jsx";
import "./mystyles.css";

export default function MyButton(props) {
  return <ButtonBasic label={props.label} />;
}
  • mystyles.css is a resource bundled in this page.
  • button.jsx lives in assets/js/headlessui, but is mounted relative to this bundle using Resources.Mount in this shortcode: