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

173
Views
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
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!