Difference in application.js between 'rails _7.0.1_ new X' and 'rails _7.0.1_ new X --css bootstrap'

When creating a project with rails 7.0.1 new X the resulting application.js is

// Configure your import map in config/importmap.rb. Read more: https://github.com/rails/importmap-rails
import "@hotwired/turbo-rails"
import "controllers"

When creating a project with ‘rails 7.0.1 new X --css bootstrap’ the resulting application.js is

// Entry point for the build script in your package.json
import "@hotwired/turbo-rails"
import "./controllers"
import * as bootstrap from "bootstrap"

First one has

import "controllers"

second one has

import "./controllers

I guess it does not matter much which one it is, but do you think it should be consistent, or there is a reason for this differences?

Yes I noticed that, both work from what I have seen.

I does work indeed. I guess I will open an issue for this for consistency sake.

I found the code. Reading through the code it seems to be intendent

Stimulus_with_node has “./controllers”

Stimulus_with_importmap has “controllers”