Aleph.js requires a modern browser to support native ES module imports and dynamic imports:
Aleph.js uses esbuild to bundle modules at optimization time for production.
You can set the optimization.buildTarget
in the server config.
import { serve } from "aleph/server";
serve({
optimization: {
buildTarget: "es2020",
},
});