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

188
Views
Is it possible to transpile/bundle/transform code and resolve most of its references?

Given two input files, values.js and index.js, is it possible to resolve code references in order to obtain the code described in output.js?

Note that the desired output is not the evaluated code, but simply a string with resolved references.

// values.js

export const values = {
  aFunction: () => { },
  aDate: new Date(1644318966754),
}

// index.js

import { values } from './values'

const otherValues = {
  aSymbol: Symbol('foo'),
  aString: new String("A String object"),
}

const allValues = {
  ...values,
  ...otherValues,
}
// output.js

const allValues = {
  aFunction: () => { },
  aDate: new Date(1644318966754),
  aSymbol: Symbol('foo'),
  aString: new String("A String object"),
}
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!