Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

260
Views
¿Cómo agregar coffeescript en svelte en Rails 7?

Tengo una aplicación de Rails 7 con esbuild:

esbuild.config.js:

 #!/usr/bin/env node const watch = process.argv.includes("--watch"); const esbuild = require('esbuild') const coffeeScriptPlugin = require('esbuild-coffeescript'); const esbuildSvelte = require('esbuild-svelte'); const sveltePreprocess = require('svelte-preprocess'); esbuild .build({ entryPoints: ["app/javascript/all.js"], bundle: true, outfile: "app/assets/builds/all.js", // outdir: "app/assets/builds/", plugins: [ esbuildSvelte({ preprocess: sveltePreprocess({coffeescript: { bare: true }}), }), // coffeeScriptPlugin({bare: true}), I TRIED THIS TOO... ], logLevel: "debug", watch: watch }) .catch(() => process.exit(1));

mi.esbelto:

 <script lang="coffee"> test = -> console.log 'test coffee' test() </script>

obtuve un error:

nodo ./esbuild.config.js --reloj
04:08:17 js.1 | ✘ [ERROR] [complemento esbuild-svelte] falta </

paquete.json:

 { "name": "app", "private": "true", "dependencies": { "@hotwired/stimulus": "^3.0.1", "@hotwired/turbo-rails": "^7.1.3", "esbuild": "^0.14.43", "esbuild-coffeescript": "^2.0.0", "esbuild-svelte": "^0.7.1", "sass": "^1.52.3", "svelte": "^3.48.0", "svelte-preprocess": "^4.10.7" }, "scripts": { "build": "node ./esbuild.config.js" } }

¿Cómo agregar coffeescript en svelte con Rails?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!