Closed dvodvo closed 2 years ago
Hi @dvodvo, version control can be really helpful here. If your code base in question isn't versioned, you can run rails new
in a new directory, with options matching your main code base as close as you can remember. Then commit it to version control. Then run rails javascript:install:esbuild
again. Then run git diff
, or the equivalent for your version control system, to see what files were added or changed by esbuild and use that as your todo list to clean up your main code base.
Yes, that is effectively what I did. Sorry about the assumption on the versioning.
I found out that without installing esbuild, those two script tags are generated by a default new rails (7.0.3) installation .
@dvodvo OK great! No problem!
I made the mistake of running ./bin/rails javascript:install:esbuild
The repository has no suggestions as to uninstalling and seraching the code does not reveal anything in particular. Through prodding, most elements were captured and deleted, however the rendered HTML still returns:
which means somewhere, the es-module is being invoked. I see some odd behaviours with subsequently pinned packages, thus would like to eliminate this source of pollution.
What can be done?