Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

292
Vistas
What is this style of import, that names no symbols and lacks the `from` keyword?
// file api_setup.js
import { ApiProxy } from "vendor-lib"

ApiProxy.configure({ /* ... */ })

export { ApiProxy }
// file service.js
import "./api_setup" // ?

/* ... */

I believe this is old code, so I looked at the NodeJS doc on import from a few years ago, and it doesn't cover anything like import "./api_setup".

What is this style of import called? What does it do?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

See the MDN documentation for import:

Import a module for its side effects only

Import an entire module for side effects only, without importing anything. This runs the module's global code, but doesn't actually import any values.

import '/modules/my-module.js';
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda