When a new Phoenix project is created, these imports are in app.js
import "phoenix_html"
// Establish Phoenix Socket and LiveView configuration.
import {Socket} from "phoenix"
import {LiveSocket} from "phoenix_live_view"
import topbar from "../vendor/topbar"
I’m not a js export, but normally these imports are either relative, such as “topbar” (makes sense that the code is vendored right there in the directory), or they are listed in package.json and the code comes from node_modules folder.
But since a new Phoenix app has neither package.json or a node_modules folder, I’m confused how it knows where to import “phoenix_html”, “phoenix” and “phoenix_live_view” from?