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

180
Vistas
Which configuration property will fix the default imports?

I am build my project using vite babel typescript and dynamic import

Dev build is working fine

But production build had some strange problem

I see that some function named _interopRequireWildcard calls the function _typeofB

_typeofB - not callable, but they have a default method

_typeofB = {
  default: ƒ _typeofA(obj)
  __esModule: true
}

What configuration property can affect this?

i.e. bundle code with error:

import {a7 as getAugmentedNamespace, a8 as _typeofA, ...} from './vendor.js';

var requireA = /*@__PURE__*/getAugmentedNamespace(_typeofA);

var _typeofB = requireA;

function _interopRequireWildcard(obj, nodeInterop) {
    if (obj === null || _typeofB(obj) !== "object" && typeof obj !== "function") {
                        ^^^^^^^^ - _typeofB is not a function
        return {
            "default": obj
        };
    }
   ...
}

That works if I manually add:

    if (obj === null || _typeofB["default"](obj) !== "object" && typeof obj !== "function") {
                                ^^^^^^^^^^^
about 4 years ago · Juan Pablo Isaza
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