You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The vite-gleam plugin for site lets one write javascript code that can import relative gleam files directly, for example import { main } from './app.gleam'.
We should add similar support so that users could do both of the following:
Resolve relative gleam imports such as ./app.gleam to the compiled ./app.mjs path.
Resolve bare gleam imports such as lustre/element.gleam to the relative path to the compiled gleam package ../lustre/lustre/element.mjs (assuming the js file importing this module was in the root of the app's source, adjust accordingly for nested ffi files supported by Copy nested ffi files into build/ #55)
The text was updated successfully, but these errors were encountered:
The vite-gleam plugin for site lets one write javascript code that can import relative gleam files directly, for example
import { main } from './app.gleam'
.We should add similar support so that users could do both of the following:
./app.gleam
to the compiled./app.mjs
path.lustre/element.gleam
to the relative path to the compiled gleam package../lustre/lustre/element.mjs
(assuming the js file importing this module was in the root of the app's source, adjust accordingly for nested ffi files supported by Copy nested ffi files into build/ #55)The text was updated successfully, but these errors were encountered: