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

131
Views
📦 ¿Combinar solo las funciones requeridas del javascript del paquete npm?

No quiero el paquete completo de luxon ya que solo estoy importando algunas funciones de él.

 // index.js const luxon = require('luxon'); const end = luxon.DateTime.fromISO('2003-05-29'); const start = luxon.DateTime.fromISO('2022-05-03'); console.log(end.diff(start, ['years', 'months', 'days']).toObject());

¿Cómo puedo agrupar solo las funciones requeridas (por ejemplo, DateTime, fromISO, diff) en index.min.js


Edición 1:

esbuild , pero solo empaqueta todo el paquete

 npx esbuild index.js --bundle --outfile=index.min.js
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!