It's pretty exciting for someone new to Rails to have to deal with so much trouble trying to use javascript! 🤕🤒 😂😂😂 Very good explanation Chris! thanks for share ❤
You can even use it in earlier versions but you'd have to manually copy over the rake task. That's another reason why I love this approach. So minimal!
@@GorailsTV so if I deploy to railway for example, it uses the Dockerfile to make the build. I don’t have to worry about modifying it or running post scripts to npm run build? As in development we have to run the build script.
that file is for his (excid3) plugin: esbuild-rails. (i can't link to that, as these comments get deleted.) he is showing how to add the package at 06:58 and creating the file by hand afterwards.
great video but i have an issue i am not able to use third party node_packages like perfect-scroller the methods do not work after bundling how to import js files from node_modules Thanks is advance.
Hello I am trying to use process.env .REACT_APP_SECRET_NAME_HERE. I tried adding dotenv via yarn but this information isn't being passed at build. Is there a best path to getting info from environmental variables without adding plugins to esbuild. And if not can a plugin be referenced in the standard "build": "esbuild app/javascript/*.* ... section of package.json or do you have to add a esbuild.config.js and add reference "build": "node esbuild.config.js". I hope that made sense.