How to use ESBuild with JS Bundling in Rails

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

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 ❤

BraisonsCrece
Автор

Thanks for clarifying this new build system works on Rails 6+

drnicwilliams
Автор

Awesome! This is exactly what I've been looking for.

markhermano
Автор

Great video. Wish I'd seen it before today.

jmcbri
Автор

Thanks my friends, I realy love your videos!!

yeinercarvajalquina
Автор

how is this used in production so every time I deploy it uses the latest build?

GabrielMartinez-ezue
Автор

I have a question... I'm using Rails 7.0.4 with esbuild, why don't I have an esbluid.config.js file? 8:54

BraisonsCrece
Автор

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.

ZainJaffar-fyxd
Автор

If we use esbuild then we must to use "yarn build" not "rails assets: precompile" right?

Aluston
Автор

[ERROR] Could not resolve "./**/*_controller.js"

fugeeohu
Автор

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.

tbfromsd